python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 583888 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4292725) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4292725) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837182 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4292725'] with mtr_portfolio_ids : ['29837182'] and first list_photo_ids : [] new path : /proc/583888/ Name: python3 Umask: 0002 State: R (running) Tgid: 583888 Ngid: 0 Pid: 583888 PPid: 583887 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 583888 NSpid: 583888 NSpgid: 582447 NSsid: 582447 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105092 kB VmRSS: 105092 kB RssAnon: 66304 kB RssFile: 38788 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '583888', 'Ngid': '0', 'Pid': '583888', 'PPid': '583887', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '583888', 'NSpid': '583888', 'NSpgid': '582447', 'NSsid': '582447', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105092 kB', 'VmRSS': '105092 kB', 'RssAnon': '66304 kB', 'RssFile': '38788 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '583888', '1113368', '0', '1113368', '872096', '105092', b'', 'marlene', '4292725') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29837182) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (4292725 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29837182) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401822839, 'portfolio_id': 29837182}, {'photo_id': 1401822811, 'portfolio_id': 29837182}, {'photo_id': 1401822806, 'portfolio_id': 29837182}, {'photo_id': 1401822804, 'portfolio_id': 29837182}, {'photo_id': 1401822801, 'portfolio_id': 29837182}, {'photo_id': 1401822793, 'portfolio_id': 29837182}, {'photo_id': 1401822782, 'portfolio_id': 29837182}, {'photo_id': 1401822779, 'portfolio_id': 29837182}, {'photo_id': 1401822770, 'portfolio_id': 29837182}, {'photo_id': 1401822764, 'portfolio_id': 29837182}, {'photo_id': 1401822758, 'portfolio_id': 29837182}, {'photo_id': 1401822753, 'portfolio_id': 29837182}, {'photo_id': 1401822724, 'portfolio_id': 29837182}, {'photo_id': 1401822722, 'portfolio_id': 29837182}, {'photo_id': 1401822721, 'portfolio_id': 29837182}, {'photo_id': 1401822719, 'portfolio_id': 29837182}, {'photo_id': 1401822681, 'portfolio_id': 29837182}, {'photo_id': 1401822677, 'portfolio_id': 29837182}, {'photo_id': 1401822674, 'portfolio_id': 29837182}, {'photo_id': 1401822671, 'portfolio_id': 29837182}, {'photo_id': 1401822654, 'portfolio_id': 29837182}, {'photo_id': 1401822649, 'portfolio_id': 29837182}, {'photo_id': 1401822647, 'portfolio_id': 29837182}, {'photo_id': 1401822645, 'portfolio_id': 29837182}, {'photo_id': 1401822644, 'portfolio_id': 29837182}, {'photo_id': 1401822606, 'portfolio_id': 29837182}, {'photo_id': 1401822604, 'portfolio_id': 29837182}, {'photo_id': 1401822602, 'portfolio_id': 29837182}, {'photo_id': 1401822595, 'portfolio_id': 29837182}, {'photo_id': 1401822556, 'portfolio_id': 29837182}, {'photo_id': 1401822554, 'portfolio_id': 29837182}, {'photo_id': 1401822552, 'portfolio_id': 29837182}, {'photo_id': 1401822520, 'portfolio_id': 29837182}, {'photo_id': 1401822516, 'portfolio_id': 29837182}, {'photo_id': 1401822512, 'portfolio_id': 29837182}, {'photo_id': 1401822509, 'portfolio_id': 29837182}, {'photo_id': 1401822508, 'portfolio_id': 29837182}, {'photo_id': 1401822474, 'portfolio_id': 29837182}, {'photo_id': 1401822473, 'portfolio_id': 29837182}, {'photo_id': 1401822446, 'portfolio_id': 29837182}, {'photo_id': 1401822442, 'portfolio_id': 29837182}, {'photo_id': 1401822438, 'portfolio_id': 29837182}, {'photo_id': 1401822435, 'portfolio_id': 29837182}, {'photo_id': 1401822432, 'portfolio_id': 29837182}, {'photo_id': 1401822415, 'portfolio_id': 29837182}, {'photo_id': 1401822411, 'portfolio_id': 29837182}, {'photo_id': 1401822408, 'portfolio_id': 29837182}, {'photo_id': 1401822405, 'portfolio_id': 29837182}, {'photo_id': 1401822399, 'portfolio_id': 29837182}, {'photo_id': 1401822398, 'portfolio_id': 29837182}, {'photo_id': 1401822397, 'portfolio_id': 29837182}, {'photo_id': 1401822381, 'portfolio_id': 29837182}, {'photo_id': 1401822377, 'portfolio_id': 29837182}, {'photo_id': 1401822373, 'portfolio_id': 29837182}, {'photo_id': 1401822369, 'portfolio_id': 29837182}, {'photo_id': 1401822367, 'portfolio_id': 29837182}, {'photo_id': 1401822366, 'portfolio_id': 29837182}, {'photo_id': 1401822339, 'portfolio_id': 29837182}, {'photo_id': 1401822336, 'portfolio_id': 29837182}, {'photo_id': 1401822333, 'portfolio_id': 29837182}, {'photo_id': 1401822331, 'portfolio_id': 29837182}, {'photo_id': 1401822321, 'portfolio_id': 29837182}, {'photo_id': 1401822259, 'portfolio_id': 29837182}, {'photo_id': 1401822256, 'portfolio_id': 29837182}, {'photo_id': 1401822254, 'portfolio_id': 29837182}, {'photo_id': 1401822230, 'portfolio_id': 29837182}, {'photo_id': 1401822227, 'portfolio_id': 29837182}, {'photo_id': 1401822225, 'portfolio_id': 29837182}, {'photo_id': 1401822224, 'portfolio_id': 29837182}] map_portfolio_id_photo_id: {29837182: [1401822839, 1401822811, 1401822806, 1401822804, 1401822801, 1401822793, 1401822782, 1401822779, 1401822770, 1401822764, 1401822758, 1401822753, 1401822724, 1401822722, 1401822721, 1401822719, 1401822681, 1401822677, 1401822674, 1401822671, 1401822654, 1401822649, 1401822647, 1401822645, 1401822644, 1401822606, 1401822604, 1401822602, 1401822595, 1401822556, 1401822554, 1401822552, 1401822520, 1401822516, 1401822512, 1401822509, 1401822508, 1401822474, 1401822473, 1401822446, 1401822442, 1401822438, 1401822435, 1401822432, 1401822415, 1401822411, 1401822408, 1401822405, 1401822399, 1401822398, 1401822397, 1401822381, 1401822377, 1401822373, 1401822369, 1401822367, 1401822366, 1401822339, 1401822336, 1401822333, 1401822331, 1401822321, 1401822259, 1401822256, 1401822254, 1401822230, 1401822227, 1401822225, 1401822224]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.019801616668701172 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Dec 31 03:32:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29837182) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 29837182 get user id for portfolio 29837182 get sub ptf for main ptf 29837182, type 3726 and hashtags ['flou', 'cartonnette', 'Carton_brun', 'metal', 'environnement', 'kraft', 'mal_croppe', 'papier', 'autre_refus', 'Carton_gris', 'Teint_Dans_La_Masse', 'plastique'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29837182 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','metal','environnement','kraft','mal_croppe','papier','autre_refus','Carton_gris','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29837182 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','metal','environnement','kraft','mal_croppe','papier','autre_refus','Carton_gris','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29837182, 'sub_port_id': 29837190, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405455, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}, 'autre_refus': {'main_port_id': 29837182, 'sub_port_id': 29837191, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405456, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}, 'Carton_gris': {'main_port_id': 29837182, 'sub_port_id': 29837192, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405457, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}, 'environnement': {'main_port_id': 29837182, 'sub_port_id': 29837193, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405458, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}, 'Carton_brun': {'main_port_id': 29837182, 'sub_port_id': 29837194, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405459, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}, 'metal': {'main_port_id': 29837182, 'sub_port_id': 29837195, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405460, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}, 'plastique': {'main_port_id': 29837182, 'sub_port_id': 29837196, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405461, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}, 'mal_croppe': {'main_port_id': 29837182, 'sub_port_id': 29837197, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405462, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}, 'flou': {'main_port_id': 29837182, 'sub_port_id': 29837198, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405463, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}, 'papier': {'main_port_id': 29837182, 'sub_port_id': 29837199, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405464, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}, 'kraft': {'main_port_id': 29837182, 'sub_port_id': 29837200, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405465, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 29837182, 'sub_port_id': 29837201, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405466, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837190 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837190) result : ((1401822463,), (1401822501,), (1401822502,), (1401822544,), (1401822624,), (1401822625,), (1401822861,), (1401822862,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837191 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837191) result : ((1401822500,), (1401822526,), (1401822527,), (1401822543,), (1401822583,), (1401822616,), (1401822617,), (1401822618,), (1401822744,), (1401822745,), (1401822773,), (1401822774,), (1401822786,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837192 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837192) result : ((1401822584,), (1401822621,), (1401822622,), (1401822623,), (1401822746,), (1401822747,), (1401822787,), (1401822788,), (1401822789,), (1401822840,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837193 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837193) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837194 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837194) result : ((1401822465,), (1401822466,), (1401822503,), (1401822504,), (1401822505,), (1401822507,), (1401822529,), (1401822586,), (1401822587,), (1401822588,), (1401822628,), (1401822629,), (1401822630,), (1401822631,), (1401822790,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837195 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837195) result : ((1401822531,), (1401822547,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837196 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837196) result : ((1401822453,), (1401822530,), (1401822545,), (1401822546,), (1401822590,), (1401822591,), (1401822592,), (1401822593,), (1401822594,), (1401822596,), (1401822597,), (1401822632,), (1401822633,), (1401822776,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837197 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837198 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837198) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837199 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837199) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837200 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837200) result : ((1401822600,), (1401822601,), (1401822748,), (1401822749,), (1401822791,), (1401822792,), (1401822842,), (1401822864,), (1401822865,), (1401822866,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29837201 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29837182 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837201) result : ((1401822451,), (1401822452,), (1401822462,), (1401822496,), (1401822498,), (1401822499,), (1401822523,), (1401822524,), (1401822525,), (1401822539,), (1401822540,), (1401822542,), (1401822581,), (1401822582,), (1401822615,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29837182) result : ((1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29837182 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','metal','environnement','kraft','mal_croppe','papier','autre_refus','Carton_gris','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29837182 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','metal','environnement','kraft','mal_croppe','papier','autre_refus','Carton_gris','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29837182, 'sub_port_id': 29837203, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405467, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}, 'autre_refus': {'main_port_id': 29837182, 'sub_port_id': 29837204, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405468, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}, 'Carton_gris': {'main_port_id': 29837182, 'sub_port_id': 29837205, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405469, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}, 'environnement': {'main_port_id': 29837182, 'sub_port_id': 29837206, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405470, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}, 'Carton_brun': {'main_port_id': 29837182, 'sub_port_id': 29837207, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405471, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}, 'metal': {'main_port_id': 29837182, 'sub_port_id': 29837208, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405472, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}, 'plastique': {'main_port_id': 29837182, 'sub_port_id': 29837209, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405473, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}, 'mal_croppe': {'main_port_id': 29837182, 'sub_port_id': 29837210, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405474, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}, 'flou': {'main_port_id': 29837182, 'sub_port_id': 29837211, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405475, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}, 'papier': {'main_port_id': 29837182, 'sub_port_id': 29837212, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405476, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}, 'kraft': {'main_port_id': 29837182, 'sub_port_id': 29837213, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405477, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 29837182, 'sub_port_id': 29837214, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20405478, 'last_updated_at': datetime.datetime(2025, 12, 31, 3, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 3, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 3, 19, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837203,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837190 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837191 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837192 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29837214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29837201 lien utilise dans velours : https://marlene.fotonower.com/velours/29837203,29837204,29837205,29837206,29837207,29837208,29837209,29837210,29837211,29837212,29837213,29837214?tags=cartonnette,autre_refus,Carton_gris,environnement,Carton_brun,metal,plastique,mal_croppe,flou,papier,kraft,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29837182]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401822839, 1401822811, 1401822806, 1401822804, 1401822801] map_info['map_portfolio_photo'] : {29837182: [1401822839, 1401822811, 1401822806, 1401822804, 1401822801, 1401822793, 1401822782, 1401822779, 1401822770, 1401822764, 1401822758, 1401822753, 1401822724, 1401822722, 1401822721, 1401822719, 1401822681, 1401822677, 1401822674, 1401822671, 1401822654, 1401822649, 1401822647, 1401822645, 1401822644, 1401822606, 1401822604, 1401822602, 1401822595, 1401822556, 1401822554, 1401822552, 1401822520, 1401822516, 1401822512, 1401822509, 1401822508, 1401822474, 1401822473, 1401822446, 1401822442, 1401822438, 1401822435, 1401822432, 1401822415, 1401822411, 1401822408, 1401822405, 1401822399, 1401822398, 1401822397, 1401822381, 1401822377, 1401822373, 1401822369, 1401822367, 1401822366, 1401822339, 1401822336, 1401822333, 1401822331, 1401822321, 1401822259, 1401822256, 1401822254, 1401822230, 1401822227, 1401822225, 1401822224]} final : False mtd_id 4302 list_pids : [1401822839, 1401822811, 1401822806, 1401822804, 1401822801] Looping around the photos to save general results len do output : 1 /29837182. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822839', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822811', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822806', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822804', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822801', None, None, None, None, None, '4292725') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29837182', "{'cartonnette': 29837190, 'autre_refus': 29837191, 'Carton_gris': 29837192, 'environnement': 29837193, 'Carton_brun': 29837194, 'metal': 29837195, 'plastique': 29837196, 'mal_croppe': 29837197, 'flou': 29837198, 'papier': 29837199, 'kraft': 29837200, 'Teint_Dans_La_Masse': 29837201}", None, None, None, None, '4292725'), ('4302', '29837182', '1401822839', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822811', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822806', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822804', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822801', None, None, None, None, None, '4292725')] time used for this insertion : 0.014360427856445312 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8007216453552246 time spend to save output : 0.014662027359008789 total time spend for step 1 : 1.8153836727142334 step2:final Wed Dec 31 03:33:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29837182) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 29837182 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401822230,1401822227,1401822225,1401822224,1401822259,1401822256,1401822254,1401822399,1401822339,1401822398,1401822336,1401822333,1401822397,1401822381,1401822331,1401822377,1401822321,1401822373,1401822369,1401822367,1401822366,1401822415,1401822411,1401822408,1401822405,1401822446,1401822442,1401822438,1401822435,1401822432,1401822474,1401822520,1401822473,1401822516,1401822512,1401822509,1401822508,1401822556,1401822554,1401822552,1401822606,1401822604,1401822602,1401822595,1401822654,1401822649,1401822647,1401822645,1401822681,1401822644,1401822677,1401822674,1401822671,1401822724,1401822793,1401822722,1401822782,1401822721,1401822779,1401822719,1401822770,1401822764,1401822758,1401822753,1401822811,1401822806,1401822804,1401822801,1401822839); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29837182]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ('0.0594840329926731',), 1401822804: ('0.0594840329926731',), 1401822801: ('0.0594840329926731',)} new output for save of step final : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ('0.0594840329926731',), 1401822804: ('0.0594840329926731',), 1401822801: ('0.0594840329926731',)} [1401822839, 1401822811, 1401822806, 1401822804, 1401822801] map_info['map_portfolio_photo'] : {29837182: [1401822839, 1401822811, 1401822806, 1401822804, 1401822801, 1401822793, 1401822782, 1401822779, 1401822770, 1401822764, 1401822758, 1401822753, 1401822724, 1401822722, 1401822721, 1401822719, 1401822681, 1401822677, 1401822674, 1401822671, 1401822654, 1401822649, 1401822647, 1401822645, 1401822644, 1401822606, 1401822604, 1401822602, 1401822595, 1401822556, 1401822554, 1401822552, 1401822520, 1401822516, 1401822512, 1401822509, 1401822508, 1401822474, 1401822473, 1401822446, 1401822442, 1401822438, 1401822435, 1401822432, 1401822415, 1401822411, 1401822408, 1401822405, 1401822399, 1401822398, 1401822397, 1401822381, 1401822377, 1401822373, 1401822369, 1401822367, 1401822366, 1401822339, 1401822336, 1401822333, 1401822331, 1401822321, 1401822259, 1401822256, 1401822254, 1401822230, 1401822227, 1401822225, 1401822224]} final : False mtd_id 4302 list_pids : [1401822839, 1401822811, 1401822806, 1401822804, 1401822801] Looping around the photos to save general results len do output : 5 /1401822839.Didn't retrieve data . /1401822811.Didn't retrieve data . /1401822806.Didn't retrieve data . /1401822804.Didn't retrieve data . /1401822801.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822839', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822811', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822806', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822804', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822801', None, None, None, None, None, '4292725') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29837182', '1401822839', '0.0594840329926731', None, None, None, None, '4292725'), ('4302', '29837182', '1401822811', '0.0594840329926731', None, None, None, None, '4292725'), ('4302', '29837182', '1401822806', '0.0594840329926731', None, None, None, None, '4292725'), ('4302', '29837182', '1401822804', '0.0594840329926731', None, None, None, None, '4292725'), ('4302', '29837182', '1401822801', '0.0594840329926731', None, None, None, None, '4292725')] time used for this insertion : 0.014186859130859375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0893259048461914 time spend to save output : 0.014531373977661133 total time spend for step 2 : 0.10385727882385254 step3:velours_tree Wed Dec 31 03:33:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29837182: [{'cartonnette': 29837190, 'autre_refus': 29837191, 'Carton_gris': 29837192, 'environnement': 29837193, 'Carton_brun': 29837194, 'metal': 29837195, 'plastique': 29837196, 'mal_croppe': 29837197, 'flou': 29837198, 'papier': 29837199, 'kraft': 29837200, 'Teint_Dans_La_Masse': 29837201}]} input_args_next_step : {29837182: ()} output_args : {29837182: [{'cartonnette': 29837190, 'autre_refus': 29837191, 'Carton_gris': 29837192, 'environnement': 29837193, 'Carton_brun': 29837194, 'metal': 29837195, 'plastique': 29837196, 'mal_croppe': 29837197, 'flou': 29837198, 'papier': 29837199, 'kraft': 29837200, 'Teint_Dans_La_Masse': 29837201}]} args : 29837182 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 29837190, 'autre_refus': 29837191, 'Carton_gris': 29837192, 'environnement': 29837193, 'Carton_brun': 29837194, 'metal': 29837195, 'plastique': 29837196, 'mal_croppe': 29837197, 'flou': 29837198, 'papier': 29837199, 'kraft': 29837200, 'Teint_Dans_La_Masse': 29837201},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29837182) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29837182]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.29477953910827637 time spend to save output : 4.2438507080078125e-05 total time spend for step 3 : 0.29482197761535645 step4:send_mail_cod Wed Dec 31 03:33:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ('0.0594840329926731',), 1401822804: ('0.0594840329926731',), 1401822801: ('0.0594840329926731',)} input_args_next_step : {1401822839: ()} output_args : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ('0.0594840329926731',), 1401822804: ('0.0594840329926731',), 1401822801: ('0.0594840329926731',)} args : 1401822839 depend.output_id : 0 input_args_next_step : {1401822839: ('0.0594840329926731',), 1401822811: ()} output_args : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ('0.0594840329926731',), 1401822804: ('0.0594840329926731',), 1401822801: ('0.0594840329926731',)} args : 1401822811 depend.output_id : 0 input_args_next_step : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ()} output_args : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ('0.0594840329926731',), 1401822804: ('0.0594840329926731',), 1401822801: ('0.0594840329926731',)} args : 1401822806 depend.output_id : 0 input_args_next_step : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ('0.0594840329926731',), 1401822804: ()} output_args : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ('0.0594840329926731',), 1401822804: ('0.0594840329926731',), 1401822801: ('0.0594840329926731',)} args : 1401822804 depend.output_id : 0 input_args_next_step : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ('0.0594840329926731',), 1401822804: ('0.0594840329926731',), 1401822801: ()} output_args : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ('0.0594840329926731',), 1401822804: ('0.0594840329926731',), 1401822801: ('0.0594840329926731',)} args : 1401822801 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {29837182: [{'cartonnette': 29837190, 'autre_refus': 29837191, 'Carton_gris': 29837192, 'environnement': 29837193, 'Carton_brun': 29837194, 'metal': 29837195, 'plastique': 29837196, 'mal_croppe': 29837197, 'flou': 29837198, 'papier': 29837199, 'kraft': 29837200, 'Teint_Dans_La_Masse': 29837201}]} input_args_next_step : {1401822839: ('0.0594840329926731',), 1401822811: ('0.0594840329926731',), 1401822806: ('0.0594840329926731',), 1401822804: ('0.0594840329926731',), 1401822801: ('0.0594840329926731',), 29837182: ()} output_args : {29837182: [{'cartonnette': 29837190, 'autre_refus': 29837191, 'Carton_gris': 29837192, 'environnement': 29837193, 'Carton_brun': 29837194, 'metal': 29837195, 'plastique': 29837196, 'mal_croppe': 29837197, 'flou': 29837198, 'papier': 29837199, 'kraft': 29837200, 'Teint_Dans_La_Masse': 29837201}]} args : 29837182 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :6, first value : ('0.0594840329926731',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29837182) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1401822839,1401822811,1401822806,1401822804,1401822801) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401822801 begin to download photo : 1401822806 begin to download photo : 1401822839 download finish for photo 1401822839 download finish for photo 1401822806 begin to download photo : 1401822811 download finish for photo 1401822801 begin to download photo : 1401822804 download finish for photo 1401822804 download finish for photo 1401822811 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P29837182_31-12-2025_03_33_02.pdf 29837190 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837190 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401822463: '1767147686_1479124_1401822331_d47f65128f421982a3150967cd724999_rle_crop_4086518909_0.png', 1401822501: '1767147747_1482108_1401822381_c13884704df5d0df149bde9c465945e0_rle_crop_4086519193_0.png', 1401822502: '1767147747_1482108_1401822331_d47f65128f421982a3150967cd724999_rle_crop_4086518909_0.png', 1401822544: '1767147806_1483837_1401822225_104894f893b45e98370428cc76fe082c_rle_crop_4086519516_0.png', 1401822624: '1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519901_0.png', 1401822625: '1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519906_0.png', 1401822861: '1767148285_1510984_1401822516_1e45a80b060825254cd399018b031a40_rle_crop_4086520931_0.png', 1401822862: '1767148285_1510984_1401822473_b013eabeea3d53e8a2de6ffd893dd6aa_rle_crop_4086520959_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/be2364a7cf305f1fc4c76098447503f2_77480849.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/be2364a7cf305f1fc4c76098447503f2_64930051.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/be2364a7cf305f1fc4c76098447503f2_77695834.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/b367e9926cfd3e94d7320475b74e962d_37330537.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8ccfb5a168cc797611add7410eb5d197_45656824.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/f7a3f2264e6984cca51dbb0763ed4ccf_64637874.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/b74d16b6545e78097072fffaf9ffcbf5_28087430.png change filename to text .imagette298371901767148382/ imagette298371901767148382/1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519901_0.png.png imagette298371901767148382/1767147806_1483837_1401822225_104894f893b45e98370428cc76fe082c_rle_crop_4086519516_0.png.png imagette298371901767148382/1767147686_1479124_1401822331_d47f65128f421982a3150967cd724999_rle_crop_4086518909_0.png.png imagette298371901767148382/1767147747_1482108_1401822331_d47f65128f421982a3150967cd724999_rle_crop_4086518909_0.png.png imagette298371901767148382/1767148285_1510984_1401822473_b013eabeea3d53e8a2de6ffd893dd6aa_rle_crop_4086520959_0.png.png imagette298371901767148382/1767147747_1482108_1401822381_c13884704df5d0df149bde9c465945e0_rle_crop_4086519193_0.png.png imagette298371901767148382/1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519906_0.png.png imagette298371901767148382/1767148285_1510984_1401822516_1e45a80b060825254cd399018b031a40_rle_crop_4086520931_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/b74d16b6545e78097072fffaf9ffcbf5_12590262.png imagette298371901767148382 29837191 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837191 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401822500: '1767147747_1482108_1401822373_0d2133ee11e392bbc15bd82ca03654a7_rle_crop_4086519222_0.png', 1401822526: '1767147785_1483326_1401822367_2ad39d9d33fb647c81a422f272a576f2_rle_crop_4086519370_0.png', 1401822527: '1767147785_1483326_1401822366_b4c34fa903761587de3e7a7ea326e4dd_rle_crop_4086519379_0.png', 1401822543: '1767147806_1483837_1401822227_26a3e286be795b8dd24ec47051b3eec7_rle_crop_4086519503_0.png', 1401822583: '1767147865_1487714_1401822438_c37555b90ab02f53514a9df1fdff90e8_rle_crop_4086519730_0.png', 1401822616: '1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519900_0.png', 1401822617: '1767147905_1489271_1401822408_0cea46d72022e23e9be2f09f0a5be070_rle_crop_4086519920_0.png', 1401822618: '1767147905_1489271_1401822405_0bf68834a0b2d5f668e5c7b839e68563_rle_crop_4086519935_0.png', 1401822744: '1767148106_1500835_1401822554_53fcde9dcda4b784ae0f22b08b96964d_rle_crop_4086520573_0.png', 1401822745: '1767148106_1500835_1401822552_1cb760b93a9439e0c05882e26a64aed7_rle_crop_4086520589_0.png', 1401822773: '1767148145_1502823_1401822604_4cbe45535ed46a8813428a2c788847dd_rle_crop_4086520660_0.png', 1401822774: '1767148145_1502823_1401822602_aa83b38ba036556d7722e312cdb9f265_rle_crop_4086520676_0.png', 1401822786: '1767148166_1504578_1401822556_f0361f85aa6d012c295d15bb9381b2ad_rle_crop_4086520758_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/f78303075b438d57a136f2b9d872c603_28759900.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/08c14d593ee26d5a6db5283d19bbcd5d_21722315.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/4d77946a07c2b14621a6af9d2963a84c_60047698.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/2a8a7ee127280c4652742801fc855768_59535070.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/389a80eaee43f921fd2f5382a30ce955_91270304.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/1e4217c76e0599178bcefd2d9ff05080_42473870.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/509758825ae3194e78d64dc6c5224206_65543386.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/bc94190fd10f18028221ea00a42ad1e4_34149019.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/dc28e052585d82fd7382dacc81d42717_58078157.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/757b43c9b77b47e75706cc45690327d1_24298198.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/6dba66615db9b597150052bbb0f2168e_55835940.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/64867071b43a63f1ce985ff70efe5a15_30928927.png change filename to text .imagette298371911767148382/ imagette298371911767148382/1767148166_1504578_1401822556_f0361f85aa6d012c295d15bb9381b2ad_rle_crop_4086520758_0.png.png imagette298371911767148382/1767148145_1502823_1401822604_4cbe45535ed46a8813428a2c788847dd_rle_crop_4086520660_0.png.png imagette298371911767148382/1767148145_1502823_1401822602_aa83b38ba036556d7722e312cdb9f265_rle_crop_4086520676_0.png.png imagette298371911767148382/1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519900_0.png.png imagette298371911767148382/1767147865_1487714_1401822438_c37555b90ab02f53514a9df1fdff90e8_rle_crop_4086519730_0.png.png imagette298371911767148382/1767147785_1483326_1401822367_2ad39d9d33fb647c81a422f272a576f2_rle_crop_4086519370_0.png.png imagette298371911767148382/1767148106_1500835_1401822554_53fcde9dcda4b784ae0f22b08b96964d_rle_crop_4086520573_0.png.png imagette298371911767148382/1767147747_1482108_1401822373_0d2133ee11e392bbc15bd82ca03654a7_rle_crop_4086519222_0.png.png imagette298371911767148382/1767147806_1483837_1401822227_26a3e286be795b8dd24ec47051b3eec7_rle_crop_4086519503_0.png.png imagette298371911767148382/1767147905_1489271_1401822405_0bf68834a0b2d5f668e5c7b839e68563_rle_crop_4086519935_0.png.png imagette298371911767148382/1767147905_1489271_1401822408_0cea46d72022e23e9be2f09f0a5be070_rle_crop_4086519920_0.png.png imagette298371911767148382/1767148106_1500835_1401822552_1cb760b93a9439e0c05882e26a64aed7_rle_crop_4086520589_0.png.png imagette298371911767148382/1767147785_1483326_1401822366_b4c34fa903761587de3e7a7ea326e4dd_rle_crop_4086519379_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8a4c4c6736ea410c33a7cd77a701307f_55451103.png imagette298371911767148382 29837195 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837195 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401822531: '1767147785_1483326_1401822369_ef535a32f29e2ca4bb084825b5934bf5_rle_crop_4086519359_0.png', 1401822547: '1767147806_1483837_1401822225_104894f893b45e98370428cc76fe082c_rle_crop_4086519518_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/136ed26344e262a55da2c20de5d9694d_36534440.png change filename to text .imagette298371951767148383/ imagette298371951767148383/1767147806_1483837_1401822225_104894f893b45e98370428cc76fe082c_rle_crop_4086519518_0.png.png imagette298371951767148383/1767147785_1483326_1401822369_ef535a32f29e2ca4bb084825b5934bf5_rle_crop_4086519359_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/032636d5e6a30143f23c2c7e12bd27f1_30067893.png imagette298371951767148383 29837196 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401822453: '1767147667_1477337_1401822339_d4ea5c04e63ad493c9658391a743067c_rle_crop_4086518754_0.png', 1401822530: '1767147785_1483326_1401822366_b4c34fa903761587de3e7a7ea326e4dd_rle_crop_4086519378_0.png', 1401822545: '1767147806_1483837_1401822227_26a3e286be795b8dd24ec47051b3eec7_rle_crop_4086519507_0.png', 1401822546: '1767147806_1483837_1401822225_104894f893b45e98370428cc76fe082c_rle_crop_4086519522_0.png', 1401822590: '1767147865_1487714_1401822442_ca8a2b5f1ebbdc70845e1f20d45bc0f6_rle_crop_4086519718_0.png', 1401822591: '1767147865_1487714_1401822442_ca8a2b5f1ebbdc70845e1f20d45bc0f6_rle_crop_4086519719_0.png', 1401822592: '1767147865_1487714_1401822438_c37555b90ab02f53514a9df1fdff90e8_rle_crop_4086519737_0.png', 1401822593: '1767147865_1487714_1401822438_c37555b90ab02f53514a9df1fdff90e8_rle_crop_4086519732_0.png', 1401822594: '1767147865_1487714_1401822435_6239c4a94280699d15d3a45558fe3f7c_rle_crop_4086519760_0.png', 1401822596: '1767147865_1487714_1401822435_6239c4a94280699d15d3a45558fe3f7c_rle_crop_4086519757_0.png', 1401822597: '1767147865_1487714_1401822435_6239c4a94280699d15d3a45558fe3f7c_rle_crop_4086519752_0.png', 1401822632: '1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519914_0.png', 1401822633: '1767147905_1489271_1401822408_0cea46d72022e23e9be2f09f0a5be070_rle_crop_4086519927_0.png', 1401822776: '1767148145_1502823_1401822604_4cbe45535ed46a8813428a2c788847dd_rle_crop_4086520661_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/7ff91a450989edfe34e81aa9404a161d_34872975.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/17a9a5bcaef9e3c716a64e28abefc1a7_84251435.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/21736343ade7cd8942845c3a42864d1e_80261502.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/d9689d9e68367142d509eda23be4e18c_72619466.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/284f5a360bb303d1ad6096ec24ff698d_73943801.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/9f6cb8ff24fc795979a8e3983ef2313e_88740028.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/a1c0f996b61793ca7673dae99325f160_45902347.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/c35ab8d9bb1d457c3282f423db9702b9_39370790.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/e1e5e30d9338fc842bd2f99f485e991a_41262075.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/81e22503328f4c0e7580cf36a2b65a69_96516271.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/237a2c265282e3df377fc995f3445776_86017444.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/65eb0eccae70fc57ef3024cbc3a34851_34106046.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/a078fe665e9bcc10ac51276e7eadd53a_72785435.png change filename to text .imagette298371961767148383/ imagette298371961767148383/1767147865_1487714_1401822435_6239c4a94280699d15d3a45558fe3f7c_rle_crop_4086519757_0.png.png imagette298371961767148383/1767147785_1483326_1401822366_b4c34fa903761587de3e7a7ea326e4dd_rle_crop_4086519378_0.png.png imagette298371961767148383/1767147667_1477337_1401822339_d4ea5c04e63ad493c9658391a743067c_rle_crop_4086518754_0.png.png imagette298371961767148383/1767147865_1487714_1401822438_c37555b90ab02f53514a9df1fdff90e8_rle_crop_4086519732_0.png.png imagette298371961767148383/1767147806_1483837_1401822227_26a3e286be795b8dd24ec47051b3eec7_rle_crop_4086519507_0.png.png imagette298371961767148383/1767147865_1487714_1401822438_c37555b90ab02f53514a9df1fdff90e8_rle_crop_4086519737_0.png.png imagette298371961767148383/1767147806_1483837_1401822225_104894f893b45e98370428cc76fe082c_rle_crop_4086519522_0.png.png imagette298371961767148383/1767148145_1502823_1401822604_4cbe45535ed46a8813428a2c788847dd_rle_crop_4086520661_0.png.png imagette298371961767148383/1767147865_1487714_1401822442_ca8a2b5f1ebbdc70845e1f20d45bc0f6_rle_crop_4086519719_0.png.png imagette298371961767148383/1767147865_1487714_1401822442_ca8a2b5f1ebbdc70845e1f20d45bc0f6_rle_crop_4086519718_0.png.png imagette298371961767148383/1767147865_1487714_1401822435_6239c4a94280699d15d3a45558fe3f7c_rle_crop_4086519752_0.png.png imagette298371961767148383/1767147905_1489271_1401822408_0cea46d72022e23e9be2f09f0a5be070_rle_crop_4086519927_0.png.png imagette298371961767148383/1767147865_1487714_1401822435_6239c4a94280699d15d3a45558fe3f7c_rle_crop_4086519760_0.png.png imagette298371961767148383/1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519914_0.png.png imagette298371971767148385/ imagette298371981767148385/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/d2238815b8e55c52a589f9d6194028d6_11091309.png imagette298371961767148383 29837197 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298371971767148385 29837198 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298371981767148385 29837200 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401822600: '1767147865_1487714_1401822474_a535ee5eda34eea743358dfa32d3e429_rle_crop_4086519703_0.png', 1401822601: '1767147865_1487714_1401822432_7e60a192572ccdf9f7350c32dcb21c04_rle_crop_4086519764_0.png', 1401822748: '1767148106_1500835_1401822606_c0c663f2e5c02cdf49f823665663ad4f_rle_crop_4086520558_0.png', 1401822749: '1767148106_1500835_1401822552_1cb760b93a9439e0c05882e26a64aed7_rle_crop_4086520592_0.png', 1401822791: '1767148166_1504578_1401822509_d33bf6a676227120ed0d53efac7ffb0b_rle_crop_4086520772_0.png', 1401822792: '1767148166_1504578_1401822508_4b5e38df54b6e8b4ce730c2fc923e9f7_rle_crop_4086520786_0.png', 1401822842: '1767148264_1510370_1401822520_3bda9e0b44861474994c5a1757622b21_rle_crop_4086520833_0.png', 1401822864: '1767148285_1510984_1401822516_1e45a80b060825254cd399018b031a40_rle_crop_4086520935_0.png', 1401822865: '1767148285_1510984_1401822512_c7d562c635e2b06bc0239d555a6d35d4_rle_crop_4086520949_0.png', 1401822866: '1767148285_1510984_1401822473_b013eabeea3d53e8a2de6ffd893dd6aa_rle_crop_4086520963_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/f4c2ae06fa6f60a72035e042bccc8e1f_18769243.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/329ddc16e0531d7aba1375d6bc1706f3_83986208.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/50135d63c5c66cf9a42b4c817e137227_5281855.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/ec2b2885d06ae643e568556a9abdcc7f_37913596.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/67d33dc2db4341b07c854adf2b41985b_16551803.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/05fab283b165fa57fd82b576bf247a8f_62217645.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/f4c2ae06fa6f60a72035e042bccc8e1f_74420666.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/a991eca153873794fd0927f69c5182e6_33476093.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/6ebbdebe89e08ca8dab9fca9f14afca6_51530918.png change filename to text .imagette298372001767148385/ imagette298372001767148385/1767148106_1500835_1401822552_1cb760b93a9439e0c05882e26a64aed7_rle_crop_4086520592_0.png.png imagette298372001767148385/1767148285_1510984_1401822516_1e45a80b060825254cd399018b031a40_rle_crop_4086520935_0.png.png imagette298372001767148385/1767147865_1487714_1401822432_7e60a192572ccdf9f7350c32dcb21c04_rle_crop_4086519764_0.png.png imagette298372001767148385/1767147865_1487714_1401822474_a535ee5eda34eea743358dfa32d3e429_rle_crop_4086519703_0.png.png imagette298372001767148385/1767148166_1504578_1401822508_4b5e38df54b6e8b4ce730c2fc923e9f7_rle_crop_4086520786_0.png.png imagette298372001767148385/1767148166_1504578_1401822509_d33bf6a676227120ed0d53efac7ffb0b_rle_crop_4086520772_0.png.png imagette298372001767148385/1767148285_1510984_1401822473_b013eabeea3d53e8a2de6ffd893dd6aa_rle_crop_4086520963_0.png.png imagette298372001767148385/1767148285_1510984_1401822512_c7d562c635e2b06bc0239d555a6d35d4_rle_crop_4086520949_0.png.png imagette298372001767148385/1767148264_1510370_1401822520_3bda9e0b44861474994c5a1757622b21_rle_crop_4086520833_0.png.png imagette298372001767148385/1767148106_1500835_1401822606_c0c663f2e5c02cdf49f823665663ad4f_rle_crop_4086520558_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/a991eca153873794fd0927f69c5182e6_13618750.png imagette298372001767148385 29837192 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837192 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401822584: '1767147865_1487714_1401822474_a535ee5eda34eea743358dfa32d3e429_rle_crop_4086519707_0.png', 1401822621: '1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519899_0.png', 1401822622: '1767147905_1489271_1401822408_0cea46d72022e23e9be2f09f0a5be070_rle_crop_4086519919_0.png', 1401822623: '1767147905_1489271_1401822408_0cea46d72022e23e9be2f09f0a5be070_rle_crop_4086519922_0.png', 1401822746: '1767148106_1500835_1401822606_c0c663f2e5c02cdf49f823665663ad4f_rle_crop_4086520559_0.png', 1401822747: '1767148106_1500835_1401822552_1cb760b93a9439e0c05882e26a64aed7_rle_crop_4086520586_0.png', 1401822787: '1767148166_1504578_1401822556_f0361f85aa6d012c295d15bb9381b2ad_rle_crop_4086520757_0.png', 1401822788: '1767148166_1504578_1401822509_d33bf6a676227120ed0d53efac7ffb0b_rle_crop_4086520766_0.png', 1401822789: '1767148166_1504578_1401822508_4b5e38df54b6e8b4ce730c2fc923e9f7_rle_crop_4086520777_0.png', 1401822840: '1767148264_1510370_1401822520_3bda9e0b44861474994c5a1757622b21_rle_crop_4086520837_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/a975352c1d54918dbf5d6406a371ce0d_89288307.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/d9c0c178b9b2068e15c65b642afab2e9_91000118.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/ada257d344bd8619468de351ef905fd6_78043414.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/170253a90e83dd9b2cd02036d8788f83_63969249.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/9c37d7ea60a838f3b8d78c49c1248b1e_88475262.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/7f854525fbac56845b15e0b8c72da05e_23289266.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/1f27598f01b5f760ecbb95ce909553a1_44885442.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/6db2ba739b0ae86abe8065a5a9fee641_65580055.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/12520d8b35cfc0e2ff7c22c6d4effcc5_69582500.png change filename to text .imagette298371921767148385/ imagette298371921767148385/1767147865_1487714_1401822474_a535ee5eda34eea743358dfa32d3e429_rle_crop_4086519707_0.png.png imagette298371921767148385/1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519899_0.png.png imagette298371921767148385/1767148264_1510370_1401822520_3bda9e0b44861474994c5a1757622b21_rle_crop_4086520837_0.png.png imagette298371921767148385/1767148166_1504578_1401822509_d33bf6a676227120ed0d53efac7ffb0b_rle_crop_4086520766_0.png.png imagette298371921767148385/1767148166_1504578_1401822556_f0361f85aa6d012c295d15bb9381b2ad_rle_crop_4086520757_0.png.png imagette298371921767148385/1767148106_1500835_1401822606_c0c663f2e5c02cdf49f823665663ad4f_rle_crop_4086520559_0.png.png imagette298371921767148385/1767148106_1500835_1401822552_1cb760b93a9439e0c05882e26a64aed7_rle_crop_4086520586_0.png.png imagette298371921767148385/1767147905_1489271_1401822408_0cea46d72022e23e9be2f09f0a5be070_rle_crop_4086519919_0.png.png imagette298371921767148385/1767148166_1504578_1401822508_4b5e38df54b6e8b4ce730c2fc923e9f7_rle_crop_4086520777_0.png.png imagette298371921767148385/1767147905_1489271_1401822408_0cea46d72022e23e9be2f09f0a5be070_rle_crop_4086519922_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/a975352c1d54918dbf5d6406a371ce0d_12290271.png imagette298371921767148385 29837194 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401822465: '1767147686_1479124_1401822336_6e94d02a271c8a4fbadb397571e09535_rle_crop_4086518881_0.png', 1401822466: '1767147686_1479124_1401822333_8514b08a0368e918edaf28ecf3ec2d70_rle_crop_4086518900_0.png', 1401822503: '1767147747_1482108_1401822398_4bb3778c382adf78a2d6f94f4698a2b8_rle_crop_4086519165_0.png', 1401822504: '1767147747_1482108_1401822397_4a7150402abb72e441d0427261071701_rle_crop_4086519184_0.png', 1401822505: '1767147747_1482108_1401822336_6e94d02a271c8a4fbadb397571e09535_rle_crop_4086518881_0.png', 1401822507: '1767147747_1482108_1401822333_8514b08a0368e918edaf28ecf3ec2d70_rle_crop_4086518900_0.png', 1401822529: '1767147785_1483326_1401822366_b4c34fa903761587de3e7a7ea326e4dd_rle_crop_4086519377_0.png', 1401822586: '1767147865_1487714_1401822438_c37555b90ab02f53514a9df1fdff90e8_rle_crop_4086519729_0.png', 1401822587: '1767147865_1487714_1401822435_6239c4a94280699d15d3a45558fe3f7c_rle_crop_4086519747_0.png', 1401822588: '1767147865_1487714_1401822432_7e60a192572ccdf9f7350c32dcb21c04_rle_crop_4086519773_0.png', 1401822628: '1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519910_0.png', 1401822629: '1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519911_0.png', 1401822630: '1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519902_0.png', 1401822631: '1767147905_1489271_1401822408_0cea46d72022e23e9be2f09f0a5be070_rle_crop_4086519925_0.png', 1401822790: '1767148166_1504578_1401822508_4b5e38df54b6e8b4ce730c2fc923e9f7_rle_crop_4086520780_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/67e8525da8f652136296a48928ccc515_71184916.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/67ebb3cd4aeb3fe33a739f76df0bfc8a_80849576.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/67e8525da8f652136296a48928ccc515_870036.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/67ebb3cd4aeb3fe33a739f76df0bfc8a_74748750.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/67e8525da8f652136296a48928ccc515_26489438.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/67ebb3cd4aeb3fe33a739f76df0bfc8a_70723401.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/5aba35f6be627b3196ab2096c935eb92_97617853.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/ae0ad6e5eede3f8d6cbc8df9d06cddf6_53836290.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/cca820d4a9926b7660d2937a2229f8cf_29003143.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/5910d66510ec56509e97180798bf6aab_37619666.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/34b30565b3e361cd2c0ef9675055aceb_41320559.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/617034c95f461df66650ec5dc072ba68_40450943.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/11d5687a61a54654ca9c0efbc5538176_61864401.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/900070d0412e6b47021a56814e10efc2_9796681.png change filename to text .imagette298371941767148386/ imagette298371941767148386/1767147785_1483326_1401822366_b4c34fa903761587de3e7a7ea326e4dd_rle_crop_4086519377_0.png.png imagette298371941767148386/1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519911_0.png.png imagette298371941767148386/1767147865_1487714_1401822438_c37555b90ab02f53514a9df1fdff90e8_rle_crop_4086519729_0.png.png imagette298371941767148386/1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519902_0.png.png imagette298371941767148386/1767147747_1482108_1401822397_4a7150402abb72e441d0427261071701_rle_crop_4086519184_0.png.png imagette298371941767148386/1767147747_1482108_1401822333_8514b08a0368e918edaf28ecf3ec2d70_rle_crop_4086518900_0.png.png imagette298371941767148386/1767147905_1489271_1401822411_093f67319ff6976702745056fc1830b2_rle_crop_4086519910_0.png.png imagette298371941767148386/1767147686_1479124_1401822336_6e94d02a271c8a4fbadb397571e09535_rle_crop_4086518881_0.png.png imagette298371941767148386/1767147865_1487714_1401822432_7e60a192572ccdf9f7350c32dcb21c04_rle_crop_4086519773_0.png.png imagette298371941767148386/1767147686_1479124_1401822333_8514b08a0368e918edaf28ecf3ec2d70_rle_crop_4086518900_0.png.png imagette298371941767148386/1767147747_1482108_1401822398_4bb3778c382adf78a2d6f94f4698a2b8_rle_crop_4086519165_0.png.png imagette298371941767148386/1767147905_1489271_1401822408_0cea46d72022e23e9be2f09f0a5be070_rle_crop_4086519925_0.png.png imagette298371941767148386/1767147747_1482108_1401822336_6e94d02a271c8a4fbadb397571e09535_rle_crop_4086518881_0.png.png imagette298371941767148386/1767148166_1504578_1401822508_4b5e38df54b6e8b4ce730c2fc923e9f7_rle_crop_4086520780_0.png.png imagette298371941767148386/1767147865_1487714_1401822435_6239c4a94280699d15d3a45558fe3f7c_rle_crop_4086519747_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/92a5ab0f9c81626acee91a6c0538313d_75445783.png imagette298371941767148386 29837201 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401822451: '1767147667_1477337_1401822339_d4ea5c04e63ad493c9658391a743067c_rle_crop_4086518757_0.png', 1401822452: '1767147667_1477337_1401822254_de3fbd22fde9f29434fe1cd3685e27ce_rle_crop_4086518765_0.png', 1401822462: '1767147686_1479124_1401822336_6e94d02a271c8a4fbadb397571e09535_rle_crop_4086518882_0.png', 1401822496: '1767147747_1482108_1401822398_4bb3778c382adf78a2d6f94f4698a2b8_rle_crop_4086519166_0.png', 1401822498: '1767147747_1482108_1401822373_0d2133ee11e392bbc15bd82ca03654a7_rle_crop_4086519223_0.png', 1401822499: '1767147747_1482108_1401822336_6e94d02a271c8a4fbadb397571e09535_rle_crop_4086518882_0.png', 1401822523: '1767147785_1483326_1401822367_2ad39d9d33fb647c81a422f272a576f2_rle_crop_4086519369_0.png', 1401822524: '1767147785_1483326_1401822366_b4c34fa903761587de3e7a7ea326e4dd_rle_crop_4086519383_0.png', 1401822525: '1767147785_1483326_1401822366_b4c34fa903761587de3e7a7ea326e4dd_rle_crop_4086519382_0.png', 1401822539: '1767147806_1483837_1401822227_26a3e286be795b8dd24ec47051b3eec7_rle_crop_4086519510_0.png', 1401822540: '1767147806_1483837_1401822225_104894f893b45e98370428cc76fe082c_rle_crop_4086519517_0.png', 1401822542: '1767147806_1483837_1401822225_104894f893b45e98370428cc76fe082c_rle_crop_4086519521_0.png', 1401822581: '1767147865_1487714_1401822438_c37555b90ab02f53514a9df1fdff90e8_rle_crop_4086519731_0.png', 1401822582: '1767147865_1487714_1401822435_6239c4a94280699d15d3a45558fe3f7c_rle_crop_4086519748_0.png', 1401822615: '1767147905_1489271_1401822405_0bf68834a0b2d5f668e5c7b839e68563_rle_crop_4086519939_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/23ac3a8fd97a1b2f3fc6308079aed517_34675987.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/a3eb6cea7bb178df76b632d85a8424cd_3695764.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/95a8aff84b2ec81074cb71bdbcabdf01_27109864.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/95a8aff84b2ec81074cb71bdbcabdf01_93380413.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/43dff85a60a302cca448ab8a14cc9d74_31506010.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/95a8aff84b2ec81074cb71bdbcabdf01_86197552.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/66d5486105df17a0cbb7f9a1a53c98a2_45437944.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/54017479dcebf90d5250f48e138cabbb_34061422.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/40fb31ca338cf68f6735e8390408c293_48812868.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8e9fdf36669115e0baf9c3778507e499_78821720.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/3a3a72b75925a3e60b0e9795b31e1557_99053092.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/cb532ac46edfdf73f5471f04d131de17_57225552.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/54eca3b0d77cfdc5c0a3a6fb75170e33_10206311.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/2b379377140d2856c1370112a7864412_55654393.png change filename to text .imagette298372011767148387/ imagette298372011767148387/1767147905_1489271_1401822405_0bf68834a0b2d5f668e5c7b839e68563_rle_crop_4086519939_0.png.png imagette298372011767148387/1767147747_1482108_1401822336_6e94d02a271c8a4fbadb397571e09535_rle_crop_4086518882_0.png.png imagette298372011767148387/1767147785_1483326_1401822366_b4c34fa903761587de3e7a7ea326e4dd_rle_crop_4086519382_0.png.png imagette298372011767148387/1767147806_1483837_1401822225_104894f893b45e98370428cc76fe082c_rle_crop_4086519517_0.png.png imagette298372011767148387/1767147747_1482108_1401822398_4bb3778c382adf78a2d6f94f4698a2b8_rle_crop_4086519166_0.png.png imagette298372011767148387/1767147806_1483837_1401822225_104894f893b45e98370428cc76fe082c_rle_crop_4086519521_0.png.png imagette298372011767148387/1767147806_1483837_1401822227_26a3e286be795b8dd24ec47051b3eec7_rle_crop_4086519510_0.png.png imagette298372011767148387/1767147686_1479124_1401822336_6e94d02a271c8a4fbadb397571e09535_rle_crop_4086518882_0.png.png imagette298372011767148387/1767147865_1487714_1401822435_6239c4a94280699d15d3a45558fe3f7c_rle_crop_4086519748_0.png.png imagette298372011767148387/1767147667_1477337_1401822254_de3fbd22fde9f29434fe1cd3685e27ce_rle_crop_4086518765_0.png.png imagette298372011767148387/1767147785_1483326_1401822366_b4c34fa903761587de3e7a7ea326e4dd_rle_crop_4086519383_0.png.png imagette298372011767148387/1767147747_1482108_1401822373_0d2133ee11e392bbc15bd82ca03654a7_rle_crop_4086519223_0.png.png imagette298372011767148387/1767147865_1487714_1401822438_c37555b90ab02f53514a9df1fdff90e8_rle_crop_4086519731_0.png.png imagette298372011767148387/1767147667_1477337_1401822339_d4ea5c04e63ad493c9658391a743067c_rle_crop_4086518757_0.png.png imagette298372011767148387/1767147785_1483326_1401822367_2ad39d9d33fb647c81a422f272a576f2_rle_crop_4086519369_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/f55aa960007b159ce49b6dc53bae2cea_67041497.png imagette298372011767148387 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29837182 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29837203,29837204,29837205,29837206,29837207,29837208,29837209,29837210,29837211,29837212,29837213,29837214?tags=cartonnette,autre_refus,Carton_gris,environnement,Carton_brun,metal,plastique,mal_croppe,flou,papier,kraft,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1401822839] : ('0.0594840329926731',) no score found for photo 1401822839 We are sending mail with results at report@fotonower.com args[1401822811] : ('0.0594840329926731',) no score found for photo 1401822811 We are sending mail with results at report@fotonower.com args[1401822806] : ('0.0594840329926731',) no score found for photo 1401822806 We are sending mail with results at report@fotonower.com args[1401822804] : ('0.0594840329926731',) no score found for photo 1401822804 We are sending mail with results at report@fotonower.com args[1401822801] : ('0.0594840329926731',) no score found for photo 1401822801 We are sending mail with results at report@fotonower.com refus_total : 0.0594840329926731 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837182 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29837182_31-12-2025_03_33_02.pdf results_Auto_P29837182_31-12-2025_03_33_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29837182_31-12-2025_03_33_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29837182','results_Auto_P29837182_31-12-2025_03_33_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29837182_31-12-2025_03_33_02.pdf','pdf','','0.29','0.0594840329926731') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29837182]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401822839, 1401822811, 1401822806, 1401822804, 1401822801] map_info['map_portfolio_photo'] : {29837182: [1401822839, 1401822811, 1401822806, 1401822804, 1401822801, 1401822793, 1401822782, 1401822779, 1401822770, 1401822764, 1401822758, 1401822753, 1401822724, 1401822722, 1401822721, 1401822719, 1401822681, 1401822677, 1401822674, 1401822671, 1401822654, 1401822649, 1401822647, 1401822645, 1401822644, 1401822606, 1401822604, 1401822602, 1401822595, 1401822556, 1401822554, 1401822552, 1401822520, 1401822516, 1401822512, 1401822509, 1401822508, 1401822474, 1401822473, 1401822446, 1401822442, 1401822438, 1401822435, 1401822432, 1401822415, 1401822411, 1401822408, 1401822405, 1401822399, 1401822398, 1401822397, 1401822381, 1401822377, 1401822373, 1401822369, 1401822367, 1401822366, 1401822339, 1401822336, 1401822333, 1401822331, 1401822321, 1401822259, 1401822256, 1401822254, 1401822230, 1401822227, 1401822225, 1401822224]} final : False mtd_id 4302 list_pids : [1401822839, 1401822811, 1401822806, 1401822804, 1401822801] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822839', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822811', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822806', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822804', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822801', None, None, None, None, None, '4292725') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29837182', '1401822839', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822811', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822806', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822804', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822801', None, None, None, None, None, '4292725')] time used for this insertion : 0.014095067977905273 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.994558095932007 time spend to save output : 0.014277935028076172 total time spend for step 4 : 8.008836030960083 step5:split_time_score Wed Dec 31 03:33:09 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29837182'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('29837182',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29837182) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401822839: {'path': 'temp/1767148381_583888_1401822839_17fdd40c06dffb6fbfa96f7393b526c8.jpg', 'extension': 'jpg'}, 1401822801: {'path': 'temp/1767148381_583888_1401822801_e68867186d2779f4f8729ed026ec7986.jpg', 'extension': 'jpg'}, 1401822804: {'path': 'temp/1767148381_583888_1401822804_5b4c79cbf47c1dd74e31700e9a666b2e.jpg', 'extension': 'jpg'}, 1401822806: {'path': 'temp/1767148381_583888_1401822806_63dfa8a61833f60831be0a1bdc07bae8.jpg', 'extension': 'jpg'}, 1401822811: {'path': 'temp/1767148381_583888_1401822811_6534bf6b1828e9798934e2fb4960fd45.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 29837182; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29837182 group by h (('03', 69),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29837182 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (29837182) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (29837182) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31122025 29837182 Nombre de photos uploadées : 69 / 23040 (0%) 31122025 29837182 Nombre de photos taguées (types de déchets): 0 / 69 (0%) 31122025 29837182 Nombre de photos taguées (volume) : 0 / 69 (0%) [{'photo_id': 1401822230, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/94d4d7f8f811854d9bcba35b73bf20ed.jpg', 'username': None, 'uploaded_at': 1767147368, 'text': 'image_31122025_03_15_04_010159m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401822227, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/26a3e286be795b8dd24ec47051b3eec7.jpg', 'username': None, 'uploaded_at': 1767147368, 'text': 'image_31122025_03_15_24_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401822225, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/104894f893b45e98370428cc76fe082c.jpg', 'username': None, 'uploaded_at': 1767147368, 'text': 'image_31122025_03_15_34_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1401822224, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/aea88b20cafcb25384db0b2fe64010ca.jpg', 'username': None, 'uploaded_at': 1767147368, 'text': 'image_31122025_03_15_44_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029249191284179688 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29837182, '2025-12-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-31' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2816377,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2575559616088867 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 2816377 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29831337, 'dashboard_result_id': 18874700, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29831337_31-12-2025_00_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29831343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29831344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29831345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29831346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29831347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29831348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29831349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29831350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29831351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29831352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29831353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29831354, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29832073, 'dashboard_result_id': 18874701, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832073_31-12-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29832079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832090, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29832543, 'dashboard_result_id': 18874702, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832543_31-12-2025_00_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29832546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832557, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29832896, 'dashboard_result_id': 18874703, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832896_31-12-2025_01_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832914, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29833935, 'dashboard_result_id': 18874704, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29833935_31-12-2025_01_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29833938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29833939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29833940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29833941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29833942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29833943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29833944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29833945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29833946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29833947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29833948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29833949, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29834250, 'dashboard_result_id': 18874705, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834250_31-12-2025_02_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29834261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834267, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29834686, 'dashboard_result_id': 18874706, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834686_31-12-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29834694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834705, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29835254, 'dashboard_result_id': 18874707, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835254_31-12-2025_02_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835274, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29835728, 'dashboard_result_id': 18874708, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835728_31-12-2025_02_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835748, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29836084, 'dashboard_result_id': 18874709, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836084_31-12-2025_03_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836120, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29836539, 'dashboard_result_id': 18874710, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836539_31-12-2025_03_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836581, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823574, 'mtr_portfolio_id': 29837182, 'dashboard_result_id': 18874711, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29837182_31-12-2025_03_29_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29837190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29837191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29837192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29837193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29837194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29837195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29837196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29837197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29837198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29837199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29837200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29837201, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29831337 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4291932, 'mtr_portfolio_id': 29831337, 'created_at': datetime.datetime(2025, 12, 31, 0, 16, 58), 'result': '0.052198134150091356', 'result_long': None, 'result_double': None}] Qualite : 0.052198134150091356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29831337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29831337_31-12-2025_00_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29831337 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29831337_31-12-2025_00_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29831343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29831344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29831345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29831346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29831347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29831348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29831349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29831350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29831351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29831352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29831353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29831354, 'pht': 3726}}" where mtr_portfolio_id = 29831337 and dashboard_run_id = 2823574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29831337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874700, 0.052198134150091356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29831337_31-12-2025_00_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29831343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29831344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29831345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29831346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29831347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29831348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29831349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29831350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29831351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29831352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29831353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29831354, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29832073 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4291987, 'mtr_portfolio_id': 29832073, 'created_at': datetime.datetime(2025, 12, 31, 0, 32, 58), 'result': '0.061503784814258215', 'result_long': None, 'result_double': None}] Qualite : 0.061503784814258215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29832073 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832073_31-12-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29832073 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832073_31-12-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29832079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832090, 'pht': 3726}}" where mtr_portfolio_id = 29832073 and dashboard_run_id = 2823574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29832073 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874701, 0.061503784814258215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832073_31-12-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29832079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832090, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29832543 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4292070, 'mtr_portfolio_id': 29832543, 'created_at': datetime.datetime(2025, 12, 31, 0, 48, 59), 'result': '0.06506854906988552', 'result_long': None, 'result_double': None}] Qualite : 0.06506854906988552 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29832543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832543_31-12-2025_00_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29832543 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832543_31-12-2025_00_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29832546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832557, 'pht': 3726}}" where mtr_portfolio_id = 29832543 and dashboard_run_id = 2823574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29832543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874702, 0.06506854906988552, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832543_31-12-2025_00_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29832546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832557, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29832896 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4292114, 'mtr_portfolio_id': 29832896, 'created_at': datetime.datetime(2025, 12, 31, 1, 34, 59), 'result': '0.07329693927573656', 'result_long': None, 'result_double': None}] Qualite : 0.07329693927573656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29832896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832896_31-12-2025_01_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29832896 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832896_31-12-2025_01_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832914, 'pht': 3726}}" where mtr_portfolio_id = 29832896 and dashboard_run_id = 2823574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29832896 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874703, 0.07329693927573656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832896_31-12-2025_01_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832914, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29833935 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4292261, 'mtr_portfolio_id': 29833935, 'created_at': datetime.datetime(2025, 12, 31, 1, 48, 58), 'result': '0.05884767244317096', 'result_long': None, 'result_double': None}] Qualite : 0.05884767244317096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29833935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29833935_31-12-2025_01_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29833935 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29833935_31-12-2025_01_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29833938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29833939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29833940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29833941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29833942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29833943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29833944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29833945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29833946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29833947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29833948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29833949, 'pht': 3726}}" where mtr_portfolio_id = 29833935 and dashboard_run_id = 2823574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29833935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874704, 0.05884767244317096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29833935_31-12-2025_01_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29833938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29833939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29833940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29833941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29833942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29833943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29833944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29833945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29833946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29833947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29833948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29833949, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29834250 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4292301, 'mtr_portfolio_id': 29834250, 'created_at': datetime.datetime(2025, 12, 31, 2, 2, 57), 'result': '0.06313558316031297', 'result_long': None, 'result_double': None}] Qualite : 0.06313558316031297 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29834250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834250_31-12-2025_02_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29834250 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834250_31-12-2025_02_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29834261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834267, 'pht': 3726}}" where mtr_portfolio_id = 29834250 and dashboard_run_id = 2823574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29834250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874705, 0.06313558316031297, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834250_31-12-2025_02_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29834261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834267, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29834686 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4292375, 'mtr_portfolio_id': 29834686, 'created_at': datetime.datetime(2025, 12, 31, 2, 16, 59), 'result': '0.044650996866048724', 'result_long': None, 'result_double': None}] Qualite : 0.044650996866048724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29834686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834686_31-12-2025_02_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29834686 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834686_31-12-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29834694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834705, 'pht': 3726}}" where mtr_portfolio_id = 29834686 and dashboard_run_id = 2823574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29834686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874706, 0.044650996866048724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834686_31-12-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29834694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834705, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29835254 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4292445, 'mtr_portfolio_id': 29835254, 'created_at': datetime.datetime(2025, 12, 31, 2, 32, 58), 'result': '0.07455178033029718', 'result_long': None, 'result_double': None}] Qualite : 0.07455178033029718 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29835254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835254_31-12-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29835254 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835254_31-12-2025_02_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835274, 'pht': 3726}}" where mtr_portfolio_id = 29835254 and dashboard_run_id = 2823574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29835254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874707, 0.07455178033029718, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835254_31-12-2025_02_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835274, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29835728 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4292526, 'mtr_portfolio_id': 29835728, 'created_at': datetime.datetime(2025, 12, 31, 2, 46, 58), 'result': '0.07713505857679008', 'result_long': None, 'result_double': None}] Qualite : 0.07713505857679008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29835728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835728_31-12-2025_02_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29835728 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835728_31-12-2025_02_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835748, 'pht': 3726}}" where mtr_portfolio_id = 29835728 and dashboard_run_id = 2823574 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29835728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874708, 0.07713505857679008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835728_31-12-2025_02_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835748, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29836084 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4292580, 'mtr_portfolio_id': 29836084, 'created_at': datetime.datetime(2025, 12, 31, 3, 2, 58), 'result': '0.055701996931025455', 'result_long': None, 'result_double': None}] Qualite : 0.055701996931025455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29836084 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836084_31-12-2025_03_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29836084 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836084_31-12-2025_03_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836120, 'pht': 3726}}" where mtr_portfolio_id = 29836084 and dashboard_run_id = 2823576 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29836084 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874709, 0.055701996931025455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836084_31-12-2025_03_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836120, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29836539 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4292662, 'mtr_portfolio_id': 29836539, 'created_at': datetime.datetime(2025, 12, 31, 3, 18, 59), 'result': '0.0531442300284953', 'result_long': None, 'result_double': None}] Qualite : 0.0531442300284953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29836539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836539_31-12-2025_03_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29836539 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836539_31-12-2025_03_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836581, 'pht': 3726}}" where mtr_portfolio_id = 29836539 and dashboard_run_id = 2823576 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29836539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874710, 0.0531442300284953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836539_31-12-2025_03_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836581, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29837182 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4292725, 'mtr_portfolio_id': 29837182, 'created_at': datetime.datetime(2025, 12, 31, 3, 33, 1), 'result': '0.0594840329926731', 'result_long': None, 'result_double': None}] Qualite : 0.0594840329926731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29837182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29837182_31-12-2025_03_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29837182 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29837182_31-12-2025_03_33_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29837190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29837191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29837192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29837193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29837194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29837195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29837196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29837197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29837198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29837199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29837200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29837201, 'pht': 3726}}" where mtr_portfolio_id = 29837182 and dashboard_run_id = 2823576 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29837182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18874711, 0.0594840329926731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29837182_31-12-2025_03_33_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29837190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29837191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29837192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29837193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29837194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29837195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29837196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29837197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29837198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29837199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29837200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29837201, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29831337,29832073,29832543,29832896,29833935,29834250,29834686,29835254,29835728,29836084,29836539,29837182) result : ((1401800738,), (1401800779,), (1401800818,), (1401800857,), (1401801320,), (1401801377,), (1401801417,), (1401801452,), (1401801488,), (1401802080,), (1401802112,), (1401802149,), (1401802219,), (1401802273,), (1401802307,), (1401802494,), (1401802552,), (1401802627,), (1401802789,), (1401802823,), (1401802865,), (1401803140,), (1401803145,), (1401803165,), (1401803197,), (1401803814,), (1401803821,), (1401803825,), (1401803847,), (1401803892,), (1401804300,), (1401804333,), (1401804367,), (1401804398,), (1401804429,), (1401804432,), (1401804558,), (1401804589,), (1401804615,), (1401804623,), (1401804991,), (1401805024,), (1401805026,), (1401805034,), (1401805156,), (1401805166,), (1401805172,), (1401805175,), (1401805178,), (1401805182,), (1401805201,), (1401805204,), (1401805206,), (1401805209,), (1401805393,), (1401805397,), (1401805516,), (1401805517,), (1401805520,), (1401805526,), (1401805531,), (1401805553,), (1401805562,), (1401805569,), (1401805577,), (1401805580,), (1401805607,), (1401805613,), (1401805615,), (1401805618,), (1401805621,), (1401805668,), (1401805664,), (1401805666,), (1401805693,), (1401805695,), (1401805698,), (1401805701,), (1401805738,), (1401805740,), (1401805742,), (1401805745,), (1401805749,), (1401805767,), (1401805770,), (1401805775,), (1401805780,), (1401805784,), (1401805817,), (1401805819,), (1401805823,), (1401805826,), (1401805848,), (1401805851,), (1401805852,), (1401805854,), (1401805856,), (1401805887,), (1401805888,), (1401805891,), (1401805894,), (1401805916,), (1401805919,), (1401805922,), (1401805926,), (1401805928,), (1401805931,), (1401805936,), (1401805939,), (1401805955,), (1401805957,), (1401805959,), (1401805961,), (1401805986,), (1401805989,), (1401805991,), (1401805994,), (1401806035,), (1401806036,), (1401806037,), (1401806040,), (1401806045,), (1401806049,), (1401806063,), (1401806066,), (1401806069,), (1401806129,), (1401806131,), (1401806133,), (1401806135,), (1401806138,), (1401806141,), (1401806180,), (1401806181,), (1401806182,), (1401806185,), (1401806191,), (1401806218,), (1401806221,), (1401806224,), (1401806226,), (1401806228,), (1401806233,), (1401806215,), (1401806283,), (1401806433,), (1401806485,), (1401806515,), (1401806517,), (1401806584,), (1401806586,), (1401806589,), (1401806612,), (1401806614,), (1401806617,), (1401806621,), (1401806625,), (1401806629,), (1401806650,), (1401806653,), (1401806656,), (1401806659,), (1401806662,), (1401806666,), (1401806671,), (1401806675,), (1401806690,), (1401806700,), (1401806703,), (1401806705,), (1401806750,), (1401806752,), (1401806754,), (1401806758,), (1401806782,), (1401806784,), (1401806786,), (1401806790,), (1401806793,), (1401806799,), (1401806807,), (1401806820,), (1401806821,), (1401806823,), (1401806825,), (1401806853,), (1401806854,), (1401806855,), (1401806910,), (1401806897,), (1401806899,), (1401806901,), (1401806905,), (1401806909,), (1401806934,), (1401806936,), (1401806940,), (1401806943,), (1401806946,), (1401806949,), (1401806990,), (1401806992,), (1401806994,), (1401806997,), (1401807001,), (1401807021,), (1401807022,), (1401807048,), (1401807084,), (1401807119,), (1401807152,), (1401807284,), (1401807315,), (1401807445,), (1401807478,), (1401807819,), (1401807820,), (1401807830,), (1401807860,), (1401807894,), (1401808075,), (1401808082,), (1401808089,), (1401808116,), (1401808118,), (1401808120,), (1401808124,), (1401808127,), (1401808130,), (1401808148,), (1401808154,), (1401808156,), (1401808158,), (1401808161,), (1401808164,), (1401808188,), (1401808189,), (1401808190,), (1401808192,), (1401808195,), (1401808217,), (1401808219,), (1401808221,), (1401808251,), (1401808253,), (1401808255,), (1401808291,), (1401808299,), (1401808304,), (1401808307,), (1401808310,), (1401808348,), (1401808355,), (1401808357,), (1401808363,), (1401808364,), (1401808368,), (1401808379,), (1401808406,), (1401811854,), (1401811850,), (1401811882,), (1401811884,), (1401811885,), (1401811887,), (1401811918,), (1401811919,), (1401811922,), (1401811925,), (1401811943,), (1401811946,), (1401811948,), (1401811994,), (1401811996,), (1401811997,), (1401812017,), (1401812019,), (1401812022,), (1401812027,), (1401812031,), (1401812035,), (1401812052,), (1401812061,), (1401812063,), (1401812065,), (1401812091,), (1401812093,), (1401812096,), (1401812129,), (1401812130,), (1401812132,), (1401812154,), (1401812156,), (1401812158,), (1401812162,), (1401812166,), (1401812173,), (1401812181,), (1401812182,), (1401812191,), (1401812194,), (1401812227,), (1401812228,), (1401812230,), (1401812290,), (1401812277,), (1401812279,), (1401812281,), (1401812285,), (1401812308,), (1401812310,), (1401812312,), (1401812341,), (1401812344,), (1401812346,), (1401812371,), (1401812373,), (1401812375,), (1401812379,), (1401812383,), (1401812387,), (1401812396,), (1401812398,), (1401812425,), (1401812454,), (1401812457,), (1401812484,), (1401812485,), (1401812486,), (1401812487,), (1401812532,), (1401812536,), (1401812538,), (1401812542,), (1401812565,), (1401812566,), (1401812568,), (1401812573,), (1401812576,), (1401812579,), (1401812586,), (1401812597,), (1401812600,), (1401812602,), (1401812604,), (1401812631,), (1401812632,), (1401812633,), (1401812668,), (1401812670,), (1401812672,), (1401812676,), (1401812699,), (1401812701,), (1401812703,), (1401812741,), (1401812744,), (1401812747,), (1401812751,), (1401812782,), (1401812786,), (1401812790,), (1401812794,), (1401812798,), (1401812807,), (1401812808,), (1401812809,), (1401812939,), (1401812873,), (1401812906,), (1401813309,), (1401813363,), (1401813427,), (1401814278,), (1401814311,), (1401814345,), (1401814377,), (1401814410,), (1401814475,), (1401815025,), (1401815145,), (1401815179,), (1401816086,), (1401816151,), (1401816203,), (1401816572,), (1401816584,), (1401816620,), (1401817164,), (1401817166,), (1401817167,), (1401817384,), (1401817424,), (1401817427,), (1401817466,), (1401817469,), (1401817471,), (1401817491,), (1401817493,), (1401817495,), (1401817499,), (1401817504,), (1401817533,), (1401817535,), (1401817538,), (1401817561,), (1401817563,), (1401817565,), (1401817568,), (1401817571,), (1401817596,), (1401817597,), (1401817598,), (1401817600,), (1401817626,), (1401817629,), (1401817632,), (1401817635,), (1401817639,), (1401817641,), (1401817675,), (1401817671,), (1401817674,), (1401817697,), (1401817699,), (1401817732,), (1401817734,), (1401817737,), (1401817739,), (1401817770,), (1401817773,), (1401817776,), (1401817779,), (1401817782,), (1401817820,), (1401817822,), (1401817824,), (1401817828,), (1401817833,), (1401817837,), (1401817853,), (1401817855,), (1401817857,), (1401817860,), (1401817884,), (1401817887,), (1401817890,), (1401817913,), (1401817914,), (1401817916,), (1401817920,), (1401817924,), (1401817955,), (1401817958,), (1401817961,), (1401817964,), (1401817967,), (1401817999,), (1401818002,), (1401818004,), (1401818006,), (1401818038,), (1401818048,), (1401818049,), (1401818076,), (1401818080,), (1401818084,), (1401818110,), (1401818113,), (1401818115,), (1401818118,), (1401818122,), (1401818150,), (1401818182,), (1401818186,), (1401818191,), (1401818194,), (1401818198,), (1401818200,), (1401818229,), (1401818220,), (1401818222,), (1401818223,), (1401818225,), (1401818228,), (1401818248,), (1401818251,), (1401818253,), (1401818256,), (1401818261,), (1401818283,), (1401818285,), (1401818288,), (1401818292,), (1401818296,), (1401818298,), (1401818318,), (1401818321,), (1401818330,), (1401818334,), (1401818337,), (1401818340,), (1401818364,), (1401818367,), (1401818370,), (1401818374,), (1401818379,), (1401818382,), (1401818421,), (1401818432,), (1401818434,), (1401818437,), (1401818441,), (1401818460,), (1401818461,), (1401818462,), (1401818502,), (1401818505,), (1401818508,), (1401818512,), (1401818550,), (1401818552,), (1401818554,), (1401818557,), (1401818560,), (1401818563,), (1401818588,), (1401818595,), (1401818597,), (1401818599,), (1401818603,), (1401818608,), (1401818627,), (1401818629,), (1401818661,), (1401818663,), (1401818665,), (1401818667,), (1401818670,), (1401818697,), (1401818698,), (1401818700,), (1401818704,), (1401818708,), (1401818713,), (1401818724,), (1401818726,), (1401818730,), (1401818740,), (1401818742,), (1401818745,), (1401818748,), (1401818751,), (1401818753,), (1401818769,), (1401818771,), (1401818772,), (1401818806,), (1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,), (1401819262,), (1401819267,), (1401819272,), (1401819278,), (1401819282,), (1401819286,), (1401819435,), (1401819470,), (1401819508,), (1401819570,), (1401819641,), (1401819708,), (1401819994,), (1401819936,), (1401820505,), (1401820538,), (1401820572,), (1401820644,), (1401820677,), (1401820711,), (1401820747,), (1401820785,), (1401820821,), (1401821199,), (1401821428,), (1401821444,), (1401821459,), (1401821464,), (1401821468,), (1401821759,), (1401821762,), (1401821764,), (1401821767,), (1401821771,), (1401821814,), (1401821816,), (1401821817,), (1401821852,), (1401821856,), (1401821860,), (1401821866,), (1401821895,), (1401821898,), (1401821899,), (1401821901,), (1401821905,), (1401821908,), (1401821926,), (1401821930,), (1401821934,), (1401821939,), (1401821944,), (1401821966,), (1401821968,), (1401821970,), (1401821998,), (1401822001,), (1401822003,), (1401822004,), (1401822044,), (1401822046,), (1401822047,), (1401822048,), (1401822052,), (1401822054,), (1401822083,), (1401822085,), (1401822088,), (1401822092,), (1401822096,), (1401822100,), (1401822117,), (1401822118,), (1401822119,), (1401822120,), (1401822141,), (1401822143,), (1401822147,), (1401822150,), (1401822152,), (1401822173,), (1401822176,), (1401822177,), (1401822178,), (1401822180,), (1401822183,), (1401822233,), (1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31122025': {'nb_upload': 69, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29837182]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401822839, 1401822811, 1401822806, 1401822804, 1401822801] map_info['map_portfolio_photo'] : {29837182: [1401822839, 1401822811, 1401822806, 1401822804, 1401822801, 1401822793, 1401822782, 1401822779, 1401822770, 1401822764, 1401822758, 1401822753, 1401822724, 1401822722, 1401822721, 1401822719, 1401822681, 1401822677, 1401822674, 1401822671, 1401822654, 1401822649, 1401822647, 1401822645, 1401822644, 1401822606, 1401822604, 1401822602, 1401822595, 1401822556, 1401822554, 1401822552, 1401822520, 1401822516, 1401822512, 1401822509, 1401822508, 1401822474, 1401822473, 1401822446, 1401822442, 1401822438, 1401822435, 1401822432, 1401822415, 1401822411, 1401822408, 1401822405, 1401822399, 1401822398, 1401822397, 1401822381, 1401822377, 1401822373, 1401822369, 1401822367, 1401822366, 1401822339, 1401822336, 1401822333, 1401822331, 1401822321, 1401822259, 1401822256, 1401822254, 1401822230, 1401822227, 1401822225, 1401822224]} final : True mtd_id 4302 list_pids : [1401822839, 1401822811, 1401822806, 1401822804, 1401822801] Looping around the photos to save general results len do output : 1 /29837182Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822839', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822811', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822806', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822804', None, None, None, None, None, '4292725') ('4302', None, None, None, None, None, None, None, '4292725') ('4302', '29837182', '1401822801', None, None, None, None, None, '4292725') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29837182', 'None', None, None, None, None, '4292725'), ('4302', '29837182', '1401822839', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822811', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822806', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822804', None, None, None, None, None, '4292725'), ('4302', '29837182', '1401822801', None, None, None, None, None, '4292725')] time used for this insertion : 0.01414942741394043 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1692943572998047 time spend to save output : 0.014330148696899414 total time spend for step 5 : 1.183624505996704 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (4292725) 2.05user 1.59system 0:15.26elapsed 23%CPU (0avgtext+0avgdata 165916maxresident)k 168inputs+16784outputs (1major+77279minor)pagefaults 0swaps