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 : 3570203 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 (4313749) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4313749) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967529 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4313749'] with mtr_portfolio_ids : ['29967529'] and first list_photo_ids : [] new path : /proc/3570203/ Name: python3 Umask: 0002 State: R (running) Tgid: 3570203 Ngid: 0 Pid: 3570203 PPid: 3570202 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3570203 NSpid: 3570203 NSpgid: 3568569 NSsid: 3568569 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104996 kB VmRSS: 104996 kB RssAnon: 66300 kB RssFile: 38696 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 632 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: 90 nonvoluntary_ctxt_switches: 150 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3570203', 'Ngid': '0', 'Pid': '3570203', 'PPid': '3570202', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3570203', 'NSpid': '3570203', 'NSpgid': '3568569', 'NSsid': '3568569', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104996 kB', 'VmRSS': '104996 kB', 'RssAnon': '66300 kB', 'RssFile': '38696 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '632 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': '90', 'nonvoluntary_ctxt_switches': '150'} ('datou_batch_current', '3570203', '1113368', '0', '1113368', '872096', '104996', b'', 'marlene', '4313749') 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 (29967529) 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 (4313749 ) ) 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 (29967529) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402554692, 'portfolio_id': 29967529}, {'photo_id': 1402554688, 'portfolio_id': 29967529}, {'photo_id': 1402554668, 'portfolio_id': 29967529}, {'photo_id': 1402554665, 'portfolio_id': 29967529}, {'photo_id': 1402554662, 'portfolio_id': 29967529}, {'photo_id': 1402554659, 'portfolio_id': 29967529}, {'photo_id': 1402554657, 'portfolio_id': 29967529}, {'photo_id': 1402554655, 'portfolio_id': 29967529}, {'photo_id': 1402554592, 'portfolio_id': 29967529}, {'photo_id': 1402554580, 'portfolio_id': 29967529}, {'photo_id': 1402554573, 'portfolio_id': 29967529}, {'photo_id': 1402554519, 'portfolio_id': 29967529}, {'photo_id': 1402554510, 'portfolio_id': 29967529}, {'photo_id': 1402554502, 'portfolio_id': 29967529}, {'photo_id': 1402554499, 'portfolio_id': 29967529}, {'photo_id': 1402554495, 'portfolio_id': 29967529}, {'photo_id': 1402554293, 'portfolio_id': 29967529}, {'photo_id': 1402554253, 'portfolio_id': 29967529}, {'photo_id': 1402554222, 'portfolio_id': 29967529}, {'photo_id': 1402554189, 'portfolio_id': 29967529}, {'photo_id': 1402554157, 'portfolio_id': 29967529}, {'photo_id': 1402554088, 'portfolio_id': 29967529}, {'photo_id': 1402554086, 'portfolio_id': 29967529}, {'photo_id': 1402554085, 'portfolio_id': 29967529}, {'photo_id': 1402554084, 'portfolio_id': 29967529}, {'photo_id': 1402554049, 'portfolio_id': 29967529}, {'photo_id': 1402554046, 'portfolio_id': 29967529}, {'photo_id': 1402554044, 'portfolio_id': 29967529}, {'photo_id': 1402553988, 'portfolio_id': 29967529}, {'photo_id': 1402553982, 'portfolio_id': 29967529}, {'photo_id': 1402553974, 'portfolio_id': 29967529}, {'photo_id': 1402553970, 'portfolio_id': 29967529}, {'photo_id': 1402553968, 'portfolio_id': 29967529}, {'photo_id': 1402553847, 'portfolio_id': 29967529}, {'photo_id': 1402553845, 'portfolio_id': 29967529}, {'photo_id': 1402553843, 'portfolio_id': 29967529}, {'photo_id': 1402553841, 'portfolio_id': 29967529}, {'photo_id': 1402553839, 'portfolio_id': 29967529}, {'photo_id': 1402553821, 'portfolio_id': 29967529}, {'photo_id': 1402553820, 'portfolio_id': 29967529}, {'photo_id': 1402553819, 'portfolio_id': 29967529}, {'photo_id': 1402553805, 'portfolio_id': 29967529}, {'photo_id': 1402553803, 'portfolio_id': 29967529}, {'photo_id': 1402553801, 'portfolio_id': 29967529}, {'photo_id': 1402553797, 'portfolio_id': 29967529}, {'photo_id': 1402553795, 'portfolio_id': 29967529}, {'photo_id': 1402553794, 'portfolio_id': 29967529}, {'photo_id': 1402553727, 'portfolio_id': 29967529}, {'photo_id': 1402553694, 'portfolio_id': 29967529}, {'photo_id': 1402553657, 'portfolio_id': 29967529}, {'photo_id': 1402553492, 'portfolio_id': 29967529}, {'photo_id': 1402553490, 'portfolio_id': 29967529}, {'photo_id': 1402553488, 'portfolio_id': 29967529}, {'photo_id': 1402553485, 'portfolio_id': 29967529}, {'photo_id': 1402553484, 'portfolio_id': 29967529}, {'photo_id': 1402553482, 'portfolio_id': 29967529}, {'photo_id': 1402553463, 'portfolio_id': 29967529}, {'photo_id': 1402553461, 'portfolio_id': 29967529}, {'photo_id': 1402553459, 'portfolio_id': 29967529}, {'photo_id': 1402553451, 'portfolio_id': 29967529}, {'photo_id': 1402553446, 'portfolio_id': 29967529}, {'photo_id': 1402553437, 'portfolio_id': 29967529}, {'photo_id': 1402553398, 'portfolio_id': 29967529}, {'photo_id': 1402553397, 'portfolio_id': 29967529}, {'photo_id': 1402553341, 'portfolio_id': 29967529}, {'photo_id': 1402553300, 'portfolio_id': 29967529}, {'photo_id': 1402553262, 'portfolio_id': 29967529}, {'photo_id': 1402553250, 'portfolio_id': 29967529}, {'photo_id': 1402553249, 'portfolio_id': 29967529}] map_portfolio_id_photo_id: {29967529: [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655, 1402554592, 1402554580, 1402554573, 1402554519, 1402554510, 1402554502, 1402554499, 1402554495, 1402554293, 1402554253, 1402554222, 1402554189, 1402554157, 1402554088, 1402554086, 1402554085, 1402554084, 1402554049, 1402554046, 1402554044, 1402553988, 1402553982, 1402553974, 1402553970, 1402553968, 1402553847, 1402553845, 1402553843, 1402553841, 1402553839, 1402553821, 1402553820, 1402553819, 1402553805, 1402553803, 1402553801, 1402553797, 1402553795, 1402553794, 1402553727, 1402553694, 1402553657, 1402553492, 1402553490, 1402553488, 1402553485, 1402553484, 1402553482, 1402553463, 1402553461, 1402553459, 1402553451, 1402553446, 1402553437, 1402553398, 1402553397, 1402553341, 1402553300, 1402553262, 1402553250, 1402553249]} ##### 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.020143747329711914 #### 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 Mon Jan 5 17:30:58 2026 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 (29967529) 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 : 29967529 get user id for portfolio 29967529 get sub ptf for main ptf 29967529, type 3726 and hashtags ['kraft', 'metal', 'Carton_brun', 'mal_croppe', 'Teint_Dans_La_Masse', 'cartonnette', 'Carton_gris', 'environnement', 'plastique', 'flou', 'autre_refus', 'papier'] 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`=29967529 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Carton_brun','mal_croppe','Teint_Dans_La_Masse','cartonnette','Carton_gris','environnement','plastique','flou','autre_refus','papier')) 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`=29967529 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Carton_brun','mal_croppe','Teint_Dans_La_Masse','cartonnette','Carton_gris','environnement','plastique','flou','autre_refus','papier')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 29967529, 'sub_port_id': 29967543, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506979, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}, 'papier': {'main_port_id': 29967529, 'sub_port_id': 29967544, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506980, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}, 'plastique': {'main_port_id': 29967529, 'sub_port_id': 29967545, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506981, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}, 'environnement': {'main_port_id': 29967529, 'sub_port_id': 29967546, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506982, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}, 'Carton_brun': {'main_port_id': 29967529, 'sub_port_id': 29967547, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506983, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}, 'mal_croppe': {'main_port_id': 29967529, 'sub_port_id': 29967548, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506984, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}, 'cartonnette': {'main_port_id': 29967529, 'sub_port_id': 29967549, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506985, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}, 'autre_refus': {'main_port_id': 29967529, 'sub_port_id': 29967550, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506986, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}, 'metal': {'main_port_id': 29967529, 'sub_port_id': 29967551, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506987, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}, 'Carton_gris': {'main_port_id': 29967529, 'sub_port_id': 29967552, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506988, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}, 'flou': {'main_port_id': 29967529, 'sub_port_id': 29967553, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506989, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 29967529, 'sub_port_id': 29967554, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506990, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967543 , 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=29967529 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 (29967543) result : ((1402553793,), (1402554110,), (1402554683,), (1402554684,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967544 , 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=29967529 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 (29967544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967545 , 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=29967529 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 (29967545) result : ((1402553792,), (1402554083,), (1402554109,), (1402554557,), (1402554558,), (1402554559,), (1402554560,), (1402554561,), (1402554577,), (1402554578,), (1402554579,), (1402554681,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967546 , 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=29967529 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 (29967546) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967547 , 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=29967529 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 (29967547) result : ((1402553790,), (1402553791,), (1402554107,), (1402554108,), (1402554576,), (1402554680,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967548 , 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=29967529 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 (29967548) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967549 , 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=29967529 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 (29967549) result : ((1402553788,), (1402553789,), (1402554082,), (1402554552,), (1402554553,), (1402554554,), (1402554555,), (1402554556,), (1402554574,), (1402554575,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967550 , 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=29967529 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 (29967550) result : ((1402553786,), (1402554080,), (1402554098,), (1402554550,), (1402554551,), (1402554565,), (1402554566,), (1402554676,), (1402554677,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967551 , 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=29967529 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 (29967551) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967552 , 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=29967529 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 (29967552) result : ((1402553787,), (1402554081,), (1402554099,), (1402554100,), (1402554102,), (1402554103,), (1402554104,), (1402554105,), (1402554568,), (1402554569,), (1402554570,), (1402554571,), (1402554572,), (1402554678,), (1402554679,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967553 , 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=29967529 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 (29967553) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29967554 , 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=29967529 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 (29967554) result : ((1402553783,), (1402553784,), (1402553785,), (1402554079,), (1402554096,), (1402554097,), (1402554539,), (1402554541,), (1402554543,), (1402554545,), (1402554563,), (1402554564,), (1402554669,), (1402554670,), (1402554671,), (1402554672,), (1402554673,), (1402554674,), (1402554744,), (1402554745,), (1402554746,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29967529) result : ((1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) 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 (1402553300) and cspi.crop_hashtag_id = chi.id; 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`=29967529 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Carton_brun','mal_croppe','Teint_Dans_La_Masse','cartonnette','Carton_gris','environnement','plastique','flou','autre_refus','papier')) 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`=29967529 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Carton_brun','mal_croppe','Teint_Dans_La_Masse','cartonnette','Carton_gris','environnement','plastique','flou','autre_refus','papier')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 29967529, 'sub_port_id': 29967556, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506991, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}, 'papier': {'main_port_id': 29967529, 'sub_port_id': 29967557, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506992, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}, 'plastique': {'main_port_id': 29967529, 'sub_port_id': 29967558, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506993, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}, 'environnement': {'main_port_id': 29967529, 'sub_port_id': 29967559, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506994, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}, 'Carton_brun': {'main_port_id': 29967529, 'sub_port_id': 29967560, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506995, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}, 'mal_croppe': {'main_port_id': 29967529, 'sub_port_id': 29967561, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506996, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}, 'cartonnette': {'main_port_id': 29967529, 'sub_port_id': 29967563, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506997, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}, 'autre_refus': {'main_port_id': 29967529, 'sub_port_id': 29967564, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506998, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}, 'metal': {'main_port_id': 29967529, 'sub_port_id': 29967565, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20506999, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}, 'Carton_gris': {'main_port_id': 29967529, 'sub_port_id': 29967566, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20507000, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}, 'flou': {'main_port_id': 29967529, 'sub_port_id': 29967567, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20507001, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 19, 28), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29967529, 'sub_port_id': 29967568, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20507002, 'last_updated_at': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 17, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29967568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29967554 lien utilise dans velours : https://marlene.fotonower.com/velours/29967556,29967557,29967558,29967559,29967560,29967561,29967563,29967564,29967565,29967566,29967567,29967568?tags=kraft,papier,plastique,environnement,Carton_brun,mal_croppe,cartonnette,autre_refus,metal,Carton_gris,flou,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29967529]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655] map_info['map_portfolio_photo'] : {29967529: [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655, 1402554592, 1402554580, 1402554573, 1402554519, 1402554510, 1402554502, 1402554499, 1402554495, 1402554293, 1402554253, 1402554222, 1402554189, 1402554157, 1402554088, 1402554086, 1402554085, 1402554084, 1402554049, 1402554046, 1402554044, 1402553988, 1402553982, 1402553974, 1402553970, 1402553968, 1402553847, 1402553845, 1402553843, 1402553841, 1402553839, 1402553821, 1402553820, 1402553819, 1402553805, 1402553803, 1402553801, 1402553797, 1402553795, 1402553794, 1402553727, 1402553694, 1402553657, 1402553492, 1402553490, 1402553488, 1402553485, 1402553484, 1402553482, 1402553463, 1402553461, 1402553459, 1402553451, 1402553446, 1402553437, 1402553398, 1402553397, 1402553341, 1402553300, 1402553262, 1402553250, 1402553249]} final : False mtd_id 4302 list_pids : [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655] Looping around the photos to save general results len do output : 1 /29967529. 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, '4313749') ('4302', '29967529', '1402554692', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554688', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554668', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554665', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554662', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554659', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554657', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554655', None, None, None, None, None, '4313749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '29967529', "{'kraft': 29967543, 'papier': 29967544, 'plastique': 29967545, 'environnement': 29967546, 'Carton_brun': 29967547, 'mal_croppe': 29967548, 'cartonnette': 29967549, 'autre_refus': 29967550, 'metal': 29967551, 'Carton_gris': 29967552, 'flou': 29967553, 'Teint_Dans_La_Masse': 29967554}", None, None, None, None, '4313749'), ('4302', '29967529', '1402554692', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554688', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554668', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554665', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554662', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554659', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554657', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554655', None, None, None, None, None, '4313749')] time used for this insertion : 0.01574850082397461 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.611605167388916 time spend to save output : 0.01607966423034668 total time spend for step 1 : 0.6276848316192627 step2:final Mon Jan 5 17:30:58 2026 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 (29967529) 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 29967529 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402553341,1402553300,1402553262,1402553250,1402553249,1402553398,1402553397,1402553463,1402553461,1402553459,1402553451,1402553446,1402553437,1402553492,1402553490,1402553488,1402553485,1402553484,1402553482,1402553727,1402553821,1402553694,1402553820,1402553657,1402553819,1402553805,1402553803,1402553801,1402553797,1402553795,1402553794,1402553847,1402553845,1402553843,1402553841,1402553839,1402553988,1402553982,1402553974,1402553970,1402553968,1402554049,1402554046,1402554044,1402554088,1402554086,1402554085,1402554084,1402554293,1402554253,1402554222,1402554189,1402554157,1402554519,1402554510,1402554502,1402554499,1402554495,1402554592,1402554580,1402554573,1402554668,1402554665,1402554662,1402554659,1402554657,1402554655,1402554692,1402554688); 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([29967529]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',)} new output for save of step final : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',)} [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655] map_info['map_portfolio_photo'] : {29967529: [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655, 1402554592, 1402554580, 1402554573, 1402554519, 1402554510, 1402554502, 1402554499, 1402554495, 1402554293, 1402554253, 1402554222, 1402554189, 1402554157, 1402554088, 1402554086, 1402554085, 1402554084, 1402554049, 1402554046, 1402554044, 1402553988, 1402553982, 1402553974, 1402553970, 1402553968, 1402553847, 1402553845, 1402553843, 1402553841, 1402553839, 1402553821, 1402553820, 1402553819, 1402553805, 1402553803, 1402553801, 1402553797, 1402553795, 1402553794, 1402553727, 1402553694, 1402553657, 1402553492, 1402553490, 1402553488, 1402553485, 1402553484, 1402553482, 1402553463, 1402553461, 1402553459, 1402553451, 1402553446, 1402553437, 1402553398, 1402553397, 1402553341, 1402553300, 1402553262, 1402553250, 1402553249]} final : False mtd_id 4302 list_pids : [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655] Looping around the photos to save general results len do output : 8 /1402554692.Didn't retrieve data . /1402554688.Didn't retrieve data . /1402554668.Didn't retrieve data . /1402554665.Didn't retrieve data . /1402554662.Didn't retrieve data . /1402554659.Didn't retrieve data . /1402554657.Didn't retrieve data . /1402554655.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, '4313749') ('4302', '29967529', '1402554692', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554688', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554668', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554665', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554662', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554659', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554657', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554655', None, None, None, None, None, '4313749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '29967529', '1402554692', '0.05011321927710472', None, None, None, None, '4313749'), ('4302', '29967529', '1402554688', '0.05011321927710472', None, None, None, None, '4313749'), ('4302', '29967529', '1402554668', '0.05011321927710472', None, None, None, None, '4313749'), ('4302', '29967529', '1402554665', '0.05011321927710472', None, None, None, None, '4313749'), ('4302', '29967529', '1402554662', '0.05011321927710472', None, None, None, None, '4313749'), ('4302', '29967529', '1402554659', '0.05011321927710472', None, None, None, None, '4313749'), ('4302', '29967529', '1402554657', '0.05011321927710472', None, None, None, None, '4313749'), ('4302', '29967529', '1402554655', '0.05011321927710472', None, None, None, None, '4313749')] time used for this insertion : 0.015711307525634766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08356761932373047 time spend to save output : 0.016245365142822266 total time spend for step 2 : 0.09981298446655273 step3:velours_tree Mon Jan 5 17:30:58 2026 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 : {29967529: [{'kraft': 29967543, 'papier': 29967544, 'plastique': 29967545, 'environnement': 29967546, 'Carton_brun': 29967547, 'mal_croppe': 29967548, 'cartonnette': 29967549, 'autre_refus': 29967550, 'metal': 29967551, 'Carton_gris': 29967552, 'flou': 29967553, 'Teint_Dans_La_Masse': 29967554}]} input_args_next_step : {29967529: ()} output_args : {29967529: [{'kraft': 29967543, 'papier': 29967544, 'plastique': 29967545, 'environnement': 29967546, 'Carton_brun': 29967547, 'mal_croppe': 29967548, 'cartonnette': 29967549, 'autre_refus': 29967550, 'metal': 29967551, 'Carton_gris': 29967552, 'flou': 29967553, 'Teint_Dans_La_Masse': 29967554}]} args : 29967529 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 : ({'kraft': 29967543, 'papier': 29967544, 'plastique': 29967545, 'environnement': 29967546, 'Carton_brun': 29967547, 'mal_croppe': 29967548, 'cartonnette': 29967549, 'autre_refus': 29967550, 'metal': 29967551, 'Carton_gris': 29967552, 'flou': 29967553, 'Teint_Dans_La_Masse': 29967554},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29967529) 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([29967529]) 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.33013439178466797 time spend to save output : 8.034706115722656e-05 total time spend for step 3 : 0.3302147388458252 step4:send_mail_cod Mon Jan 5 17:30:59 2026 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 : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',)} input_args_next_step : {1402554692: ()} output_args : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',)} args : 1402554692 depend.output_id : 0 input_args_next_step : {1402554692: ('0.05011321927710472',), 1402554688: ()} output_args : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',)} args : 1402554688 depend.output_id : 0 input_args_next_step : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ()} output_args : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',)} args : 1402554668 depend.output_id : 0 input_args_next_step : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ()} output_args : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',)} args : 1402554665 depend.output_id : 0 input_args_next_step : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ()} output_args : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',)} args : 1402554662 depend.output_id : 0 input_args_next_step : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ()} output_args : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',)} args : 1402554659 depend.output_id : 0 input_args_next_step : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ()} output_args : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',)} args : 1402554657 depend.output_id : 0 input_args_next_step : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ()} output_args : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',)} args : 1402554655 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 : {29967529: [{'kraft': 29967543, 'papier': 29967544, 'plastique': 29967545, 'environnement': 29967546, 'Carton_brun': 29967547, 'mal_croppe': 29967548, 'cartonnette': 29967549, 'autre_refus': 29967550, 'metal': 29967551, 'Carton_gris': 29967552, 'flou': 29967553, 'Teint_Dans_La_Masse': 29967554}]} input_args_next_step : {1402554692: ('0.05011321927710472',), 1402554688: ('0.05011321927710472',), 1402554668: ('0.05011321927710472',), 1402554665: ('0.05011321927710472',), 1402554662: ('0.05011321927710472',), 1402554659: ('0.05011321927710472',), 1402554657: ('0.05011321927710472',), 1402554655: ('0.05011321927710472',), 29967529: ()} output_args : {29967529: [{'kraft': 29967543, 'papier': 29967544, 'plastique': 29967545, 'environnement': 29967546, 'Carton_brun': 29967547, 'mal_croppe': 29967548, 'cartonnette': 29967549, 'autre_refus': 29967550, 'metal': 29967551, 'Carton_gris': 29967552, 'flou': 29967553, 'Teint_Dans_La_Masse': 29967554}]} args : 29967529 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 :9, first value : ('0.05011321927710472',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29967529) 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 (1402554692,1402554688,1402554668,1402554665,1402554662,1402554659,1402554657,1402554655) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402554655 begin to download photo : 1402554659 begin to download photo : 1402554665 begin to download photo : 1402554688 download finish for photo 1402554688 begin to download photo : 1402554692 download finish for photo 1402554659 begin to download photo : 1402554662 download finish for photo 1402554665 begin to download photo : 1402554668 download finish for photo 1402554655 begin to download photo : 1402554657 download finish for photo 1402554668 download finish for photo 1402554692 download finish for photo 1402554662 download finish for photo 1402554657 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 : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P29967529_05-01-2026_17_30_59.pdf 29967543 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=29967543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402553793: '1767630027_2649326_1402553250_5b5109f462d799e36bb1de7c88d9e2ac_rle_crop_4091115346_0.png', 1402554110: '1767630305_2663361_1402553801_be64c92af3221073325de606d36fe263_rle_crop_4091119185_0.png', 1402554683: '1767630545_2675531_1402554086_1a7906dc5a8193633960d47154019204_rle_crop_4091120365_0.png', 1402554684: '1767630545_2675531_1402554085_4ad13b2cf99880460081243198bf40d1_rle_crop_4091120382_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/50746de9fa674b05f31df00fbe0e7c44_44247072.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/6db7060f5fdd97a5be9572b0a0eac2e7_22667423.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/2d9780ea3ba625fda2f95682863762a5_3926064.png change filename to text .imagette299675431767630659/ imagette299675431767630659/1767630545_2675531_1402554086_1a7906dc5a8193633960d47154019204_rle_crop_4091120365_0.png.png imagette299675431767630659/1767630545_2675531_1402554085_4ad13b2cf99880460081243198bf40d1_rle_crop_4091120382_0.png.png imagette299675431767630659/1767630027_2649326_1402553250_5b5109f462d799e36bb1de7c88d9e2ac_rle_crop_4091115346_0.png.png imagette299675431767630659/1767630305_2663361_1402553801_be64c92af3221073325de606d36fe263_rle_crop_4091119185_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/cdf87c99cff1e8520a3380f492de8211_66923201.png imagette299675431767630659 29967545 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=29967545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402553792: '1767630027_2649326_1402553300_230a3ee0cab16ed859d4ddfb3c967e94_rle_crop_4091115257_0.png', 1402554083: '1767630266_2662210_1402553805_75dda76e8172a5eb7571d55fb58d79cc_rle_crop_4091118587_0.png', 1402554109: '1767630305_2663361_1402553803_05a8963020816fe343d7249c67846135_rle_crop_4091119114_0.png', 1402554557: '1767630426_2669428_1402553490_387651fd1ecb4485415480f33112bd34_rle_crop_4091119633_0.png', 1402554558: '1767630426_2669428_1402553488_fa5d8b49c81ae104e7ba906b9a017463_rle_crop_4091119817_0.png', 1402554559: '1767630426_2669428_1402553485_563d8d0b02a63b429860f71c8cac0e01_rle_crop_4091119852_0.png', 1402554560: '1767630426_2669428_1402553485_563d8d0b02a63b429860f71c8cac0e01_rle_crop_4091119848_0.png', 1402554561: '1767630426_2669428_1402553484_caaeb139b7e159d05189af168cc21b8c_rle_crop_4091119866_0.png', 1402554577: '1767630446_2669767_1402553492_9bb96f2d4b440583f64410f0f8ee3f22_rle_crop_4091119900_0.png', 1402554578: '1767630446_2669767_1402553461_117293d8ddec1ddffa117c05742d84ab_rle_crop_4091119918_0.png', 1402554579: '1767630446_2669767_1402553461_117293d8ddec1ddffa117c05742d84ab_rle_crop_4091119919_0.png', 1402554681: '1767630545_2675531_1402554084_c60f88a837219419bf41e7bbafec0199_rle_crop_4091120410_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/552e94d855687b8e4c5acccb5e27ba1d_19987291.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/531d6d7bc7d7ff4782e51d0bca3fa6be_33372659.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/a0ada5af296ae8b898f56640525c4044_26747031.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/2fca287f385b2b9e5abaaf987bf6a0fc_54207608.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/a0c0b53809c209117a7eae29b41e0f29_69818536.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/4c079cb557845b87202213b694cfc720_73169747.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/1c4073a1d2bb71a9283c6a720bae8f38_25289279.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/0afa7b7bb483a7d5b5891477c4bd8fbc_85022914.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/caa7746151a39790ec25d92a1d258e6f_95078708.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/19d64475b45c292a0e47ddcc89ed3813_1192892.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/34e1f26b9ce8e46b2eb6e1827200676a_11665427.png change filename to text .imagette299675451767630659/ imagette299675451767630659/1767630426_2669428_1402553490_387651fd1ecb4485415480f33112bd34_rle_crop_4091119633_0.png.png imagette299675451767630659/1767630305_2663361_1402553803_05a8963020816fe343d7249c67846135_rle_crop_4091119114_0.png.png imagette299675451767630659/1767630426_2669428_1402553488_fa5d8b49c81ae104e7ba906b9a017463_rle_crop_4091119817_0.png.png imagette299675451767630659/1767630426_2669428_1402553485_563d8d0b02a63b429860f71c8cac0e01_rle_crop_4091119852_0.png.png imagette299675451767630659/1767630426_2669428_1402553484_caaeb139b7e159d05189af168cc21b8c_rle_crop_4091119866_0.png.png imagette299675451767630659/1767630446_2669767_1402553461_117293d8ddec1ddffa117c05742d84ab_rle_crop_4091119918_0.png.png imagette299675451767630659/1767630027_2649326_1402553300_230a3ee0cab16ed859d4ddfb3c967e94_rle_crop_4091115257_0.png.png imagette299675451767630659/1767630266_2662210_1402553805_75dda76e8172a5eb7571d55fb58d79cc_rle_crop_4091118587_0.png.png imagette299675451767630659/1767630446_2669767_1402553492_9bb96f2d4b440583f64410f0f8ee3f22_rle_crop_4091119900_0.png.png imagette299675451767630659/1767630446_2669767_1402553461_117293d8ddec1ddffa117c05742d84ab_rle_crop_4091119919_0.png.png imagette299675451767630659/1767630545_2675531_1402554084_c60f88a837219419bf41e7bbafec0199_rle_crop_4091120410_0.png.png imagette299675451767630659/1767630426_2669428_1402553485_563d8d0b02a63b429860f71c8cac0e01_rle_crop_4091119848_0.png.png imagette299675481767630660/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/29c94f618b845e234065fb876f87dc4b_55247539.png imagette299675451767630659 29967548 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=29967548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299675481767630660 29967549 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=29967549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402553788: '1767630027_2649326_1402553262_cc272f913507b3a7556be98aec58fed6_rle_crop_4091115270_0.png', 1402553789: '1767630027_2649326_1402553249_e3039b25eb7320a988bccf47d845d469_rle_crop_4091115367_0.png', 1402554082: '1767630266_2662210_1402553805_75dda76e8172a5eb7571d55fb58d79cc_rle_crop_4091118596_0.png', 1402554552: '1767630426_2669428_1402553485_563d8d0b02a63b429860f71c8cac0e01_rle_crop_4091119849_0.png', 1402554553: '1767630426_2669428_1402553485_563d8d0b02a63b429860f71c8cac0e01_rle_crop_4091119856_0.png', 1402554554: '1767630426_2669428_1402553484_caaeb139b7e159d05189af168cc21b8c_rle_crop_4091119870_0.png', 1402554555: '1767630426_2669428_1402553484_caaeb139b7e159d05189af168cc21b8c_rle_crop_4091119864_0.png', 1402554556: '1767630426_2669428_1402553482_c8e6cb9468dc86aa1684091779a30529_rle_crop_4091119885_0.png', 1402554574: '1767630446_2669767_1402553446_f17235d5e7043094ecfe9d59792de78f_rle_crop_4091119955_0.png', 1402554575: '1767630446_2669767_1402553446_f17235d5e7043094ecfe9d59792de78f_rle_crop_4091119961_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/7ee6810a980c98dfca335ab3893e02f1_82196391.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/937efb00c1d7c00525d355a55c0119bd_69478239.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/77a158281a141d36fbd6d02a58dea0c4_92057119.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/15c8debf7d4dd73103701b6eb37f2052_27923251.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/24cff585c3ebfb042709d6e71157e5b1_88615919.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/1f2aaeb0c89a34ec845865dbc6a2b97b_40673849.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/1e92fa573b9a3db28b331ae61900fa02_33212829.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/cc85ef07a024be25c7ed71e30d6ecd40_18770596.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/6a0208eefdb61f1cc3a84c3367525f74_68669746.png change filename to text .imagette299675491767630660/ imagette299675491767630660/1767630446_2669767_1402553446_f17235d5e7043094ecfe9d59792de78f_rle_crop_4091119955_0.png.png imagette299675491767630660/1767630426_2669428_1402553485_563d8d0b02a63b429860f71c8cac0e01_rle_crop_4091119849_0.png.png imagette299675491767630660/1767630027_2649326_1402553262_cc272f913507b3a7556be98aec58fed6_rle_crop_4091115270_0.png.png imagette299675491767630660/1767630426_2669428_1402553484_caaeb139b7e159d05189af168cc21b8c_rle_crop_4091119870_0.png.png imagette299675491767630660/1767630266_2662210_1402553805_75dda76e8172a5eb7571d55fb58d79cc_rle_crop_4091118596_0.png.png imagette299675491767630660/1767630426_2669428_1402553482_c8e6cb9468dc86aa1684091779a30529_rle_crop_4091119885_0.png.png imagette299675491767630660/1767630426_2669428_1402553484_caaeb139b7e159d05189af168cc21b8c_rle_crop_4091119864_0.png.png imagette299675491767630660/1767630426_2669428_1402553485_563d8d0b02a63b429860f71c8cac0e01_rle_crop_4091119856_0.png.png imagette299675491767630660/1767630446_2669767_1402553446_f17235d5e7043094ecfe9d59792de78f_rle_crop_4091119961_0.png.png imagette299675491767630660/1767630027_2649326_1402553249_e3039b25eb7320a988bccf47d845d469_rle_crop_4091115367_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/f46d62d20d1ba3dd20772764e63079e2_81316477.png imagette299675491767630660 29967550 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=29967550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402553786: '1767630027_2649326_1402553262_cc272f913507b3a7556be98aec58fed6_rle_crop_4091115271_0.png', 1402554080: '1767630266_2662210_1402553805_75dda76e8172a5eb7571d55fb58d79cc_rle_crop_4091118592_0.png', 1402554098: '1767630305_2663361_1402553803_05a8963020816fe343d7249c67846135_rle_crop_4091119110_0.png', 1402554550: '1767630426_2669428_1402553821_07630a4b4f659219817ea2e596d3a77b_rle_crop_4091119596_0.png', 1402554551: '1767630426_2669428_1402553727_ce9fcadef34cb00cc20075f0998da9e0_rle_crop_4091119612_0.png', 1402554565: '1767630446_2669767_1402553492_9bb96f2d4b440583f64410f0f8ee3f22_rle_crop_4091119899_0.png', 1402554566: '1767630446_2669767_1402553451_1ca84a93eb9437a4a43a3a399897094d_rle_crop_4091119941_0.png', 1402554676: '1767630545_2675531_1402554086_1a7906dc5a8193633960d47154019204_rle_crop_4091120371_0.png', 1402554677: '1767630545_2675531_1402554085_4ad13b2cf99880460081243198bf40d1_rle_crop_4091120387_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/ac296b179e465201ce84645ca4c034ac_57887559.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/2980c6f51bae3d08670e26ddb76d2b63_215420.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/029252785cce8972dd486d1b1d5b817e_36029894.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/ed6d15b5e64e485790660ee32e3d8e78_83123671.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/ed6d15b5e64e485790660ee32e3d8e78_40226216.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/3d312eff95e868ea85bd9c916909fbdc_21977061.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/f8dba0a4ab607a3a235f93a05c611346_82568288.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/91476c916235faa0541f61b62d42a259_1988419.png change filename to text .imagette299675501767630661/ imagette299675501767630661/1767630545_2675531_1402554085_4ad13b2cf99880460081243198bf40d1_rle_crop_4091120387_0.png.png imagette299675501767630661/1767630446_2669767_1402553451_1ca84a93eb9437a4a43a3a399897094d_rle_crop_4091119941_0.png.png imagette299675501767630661/1767630446_2669767_1402553492_9bb96f2d4b440583f64410f0f8ee3f22_rle_crop_4091119899_0.png.png imagette299675501767630661/1767630426_2669428_1402553727_ce9fcadef34cb00cc20075f0998da9e0_rle_crop_4091119612_0.png.png imagette299675501767630661/1767630266_2662210_1402553805_75dda76e8172a5eb7571d55fb58d79cc_rle_crop_4091118592_0.png.png imagette299675501767630661/1767630545_2675531_1402554086_1a7906dc5a8193633960d47154019204_rle_crop_4091120371_0.png.png imagette299675501767630661/1767630027_2649326_1402553262_cc272f913507b3a7556be98aec58fed6_rle_crop_4091115271_0.png.png imagette299675501767630661/1767630426_2669428_1402553821_07630a4b4f659219817ea2e596d3a77b_rle_crop_4091119596_0.png.png imagette299675501767630661/1767630305_2663361_1402553803_05a8963020816fe343d7249c67846135_rle_crop_4091119110_0.png.png imagette299675511767630662/ imagette299675531767630662/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/9dc0697d34b0f8a63c0f397bb2edec2f_71178074.png imagette299675501767630661 29967551 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=29967551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299675511767630662 29967553 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=29967553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299675531767630662 29967547 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=29967547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402553790: '1767630027_2649326_1402553300_230a3ee0cab16ed859d4ddfb3c967e94_rle_crop_4091115262_0.png', 1402553791: '1767630027_2649326_1402553262_cc272f913507b3a7556be98aec58fed6_rle_crop_4091115275_0.png', 1402554107: '1767630305_2663361_1402553795_30dd019e678b0de1fb3f0e0f64f6e3d7_rle_crop_4091119219_0.png', 1402554108: '1767630305_2663361_1402553794_9b474000f21ecc4c1b0a15bf93d0c3fb_rle_crop_4091119236_0.png', 1402554576: '1767630446_2669767_1402553451_1ca84a93eb9437a4a43a3a399897094d_rle_crop_4091119940_0.png', 1402554680: '1767630545_2675531_1402554086_1a7906dc5a8193633960d47154019204_rle_crop_4091120375_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/8baa85d77097c888b57dea1d5b9acc23_86861071.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/e239a8a7aaf71972adb2d5178b056441_62727644.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/b594da0181dc4bad080ed6ffaa61654e_31345386.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/d056d578745b5bd351db536ecb364a90_60280516.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/f6be89c794ea2e3acda9bbaf8dbe8d82_73045722.png change filename to text .imagette299675471767630662/ imagette299675471767630662/1767630027_2649326_1402553300_230a3ee0cab16ed859d4ddfb3c967e94_rle_crop_4091115262_0.png.png imagette299675471767630662/1767630027_2649326_1402553262_cc272f913507b3a7556be98aec58fed6_rle_crop_4091115275_0.png.png imagette299675471767630662/1767630305_2663361_1402553794_9b474000f21ecc4c1b0a15bf93d0c3fb_rle_crop_4091119236_0.png.png imagette299675471767630662/1767630446_2669767_1402553451_1ca84a93eb9437a4a43a3a399897094d_rle_crop_4091119940_0.png.png imagette299675471767630662/1767630545_2675531_1402554086_1a7906dc5a8193633960d47154019204_rle_crop_4091120375_0.png.png imagette299675471767630662/1767630305_2663361_1402553795_30dd019e678b0de1fb3f0e0f64f6e3d7_rle_crop_4091119219_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/e4c9073bd2295c78bac69b3ce419e0c2_65906495.png imagette299675471767630662 29967552 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=29967552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402553787: '1767630027_2649326_1402553262_cc272f913507b3a7556be98aec58fed6_rle_crop_4091115272_0.png', 1402554081: '1767630266_2662210_1402553805_75dda76e8172a5eb7571d55fb58d79cc_rle_crop_4091118584_0.png', 1402554099: '1767630305_2663361_1402553803_05a8963020816fe343d7249c67846135_rle_crop_4091119122_0.png', 1402554100: '1767630305_2663361_1402553801_be64c92af3221073325de606d36fe263_rle_crop_4091119192_0.png', 1402554102: '1767630305_2663361_1402553797_d9ce72912c4f6f6047ad84b2e2ee4d4d_rle_crop_4091119210_0.png', 1402554103: '1767630305_2663361_1402553795_30dd019e678b0de1fb3f0e0f64f6e3d7_rle_crop_4091119222_0.png', 1402554104: '1767630305_2663361_1402553794_9b474000f21ecc4c1b0a15bf93d0c3fb_rle_crop_4091119234_0.png', 1402554105: '1767630305_2663361_1402553794_9b474000f21ecc4c1b0a15bf93d0c3fb_rle_crop_4091119231_0.png', 1402554568: '1767630446_2669767_1402553492_9bb96f2d4b440583f64410f0f8ee3f22_rle_crop_4091119907_0.png', 1402554569: '1767630446_2669767_1402553492_9bb96f2d4b440583f64410f0f8ee3f22_rle_crop_4091119901_0.png', 1402554570: '1767630446_2669767_1402553461_117293d8ddec1ddffa117c05742d84ab_rle_crop_4091119917_0.png', 1402554571: '1767630446_2669767_1402553437_05055dc08406bfa92ded6943d69bbd67_rle_crop_4091119973_0.png', 1402554572: '1767630446_2669767_1402553437_05055dc08406bfa92ded6943d69bbd67_rle_crop_4091119972_0.png', 1402554678: '1767630545_2675531_1402554085_4ad13b2cf99880460081243198bf40d1_rle_crop_4091120389_0.png', 1402554679: '1767630545_2675531_1402554084_c60f88a837219419bf41e7bbafec0199_rle_crop_4091120403_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/b9d961f569cb5988ba0e7fc77905be0a_48568031.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/e9a7bfe16bfc2a6a85db6a3b899768a8_17759774.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/db8041273e599a98108fdcf747ff0a96_43821760.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/5dee9fd2680a626141b55bc11c998b0e_52227532.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/d3b47a5027d06393e647e82aa486b72d_51801428.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/887c09d98b4e443ec345892885fdddeb_73493882.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/d19817e1b0fd9a8a98511cf9cb7b61f3_92351184.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/374cd6bf519717ace72c2e0536ba5614_35234414.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/b95893f34f86cf251c671b473b72f7d5_56209552.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/85b935984db8aa414cfebb29f35df170_13557908.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/4c8c2cd0e44d624fdd96dcae3479026e_60515.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/c60197c42a17b76ed177b2f1d3acc18f_71585911.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/6b8d1aa06c321b5eb1631c4c059d71c1_13469664.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/cc513ed2a3ad52c8ba3c0e6d2690131f_64478089.png change filename to text .imagette299675521767630662/ imagette299675521767630662/1767630446_2669767_1402553437_05055dc08406bfa92ded6943d69bbd67_rle_crop_4091119973_0.png.png imagette299675521767630662/1767630446_2669767_1402553492_9bb96f2d4b440583f64410f0f8ee3f22_rle_crop_4091119907_0.png.png imagette299675521767630662/1767630446_2669767_1402553492_9bb96f2d4b440583f64410f0f8ee3f22_rle_crop_4091119901_0.png.png imagette299675521767630662/1767630305_2663361_1402553797_d9ce72912c4f6f6047ad84b2e2ee4d4d_rle_crop_4091119210_0.png.png imagette299675521767630662/1767630305_2663361_1402553794_9b474000f21ecc4c1b0a15bf93d0c3fb_rle_crop_4091119234_0.png.png imagette299675521767630662/1767630545_2675531_1402554085_4ad13b2cf99880460081243198bf40d1_rle_crop_4091120389_0.png.png imagette299675521767630662/1767630305_2663361_1402553801_be64c92af3221073325de606d36fe263_rle_crop_4091119192_0.png.png imagette299675521767630662/1767630305_2663361_1402553795_30dd019e678b0de1fb3f0e0f64f6e3d7_rle_crop_4091119222_0.png.png imagette299675521767630662/1767630305_2663361_1402553794_9b474000f21ecc4c1b0a15bf93d0c3fb_rle_crop_4091119231_0.png.png imagette299675521767630662/1767630027_2649326_1402553262_cc272f913507b3a7556be98aec58fed6_rle_crop_4091115272_0.png.png imagette299675521767630662/1767630266_2662210_1402553805_75dda76e8172a5eb7571d55fb58d79cc_rle_crop_4091118584_0.png.png imagette299675521767630662/1767630305_2663361_1402553803_05a8963020816fe343d7249c67846135_rle_crop_4091119122_0.png.png imagette299675521767630662/1767630446_2669767_1402553437_05055dc08406bfa92ded6943d69bbd67_rle_crop_4091119972_0.png.png imagette299675521767630662/1767630446_2669767_1402553461_117293d8ddec1ddffa117c05742d84ab_rle_crop_4091119917_0.png.png imagette299675521767630662/1767630545_2675531_1402554084_c60f88a837219419bf41e7bbafec0199_rle_crop_4091120403_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/598346405cf349bcee9842b935e6d932_92995340.png imagette299675521767630662 29967554 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=29967554 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402554563: '1767630446_2669767_1402553492_9bb96f2d4b440583f64410f0f8ee3f22_rle_crop_4091119913_0.png', 1402554746: '1767630626_2678302_1402553841_88c0b582af7fff758c8b023e504424ce_rle_crop_4091120675_0.png', 1402554745: '1767630626_2678302_1402553841_88c0b582af7fff758c8b023e504424ce_rle_crop_4091120681_0.png', 1402554744: '1767630626_2678302_1402553843_3340cc657347f772c2b8c420ecbdd670_rle_crop_4091120663_0.png', 1402554674: '1767630545_2675531_1402554084_c60f88a837219419bf41e7bbafec0199_rle_crop_4091120407_0.png', 1402554673: '1767630545_2675531_1402554084_c60f88a837219419bf41e7bbafec0199_rle_crop_4091120406_0.png', 1402554672: '1767630545_2675531_1402554085_4ad13b2cf99880460081243198bf40d1_rle_crop_4091120388_0.png', 1402554671: '1767630545_2675531_1402554085_4ad13b2cf99880460081243198bf40d1_rle_crop_4091120390_0.png', 1402554670: '1767630545_2675531_1402554086_1a7906dc5a8193633960d47154019204_rle_crop_4091120373_0.png', 1402554669: '1767630545_2675531_1402554086_1a7906dc5a8193633960d47154019204_rle_crop_4091120374_0.png', 1402554564: '1767630446_2669767_1402553437_05055dc08406bfa92ded6943d69bbd67_rle_crop_4091119976_0.png', 1402553783: '1767630027_2649326_1402553250_5b5109f462d799e36bb1de7c88d9e2ac_rle_crop_4091115352_0.png', 1402554545: '1767630426_2669428_1402553490_387651fd1ecb4485415480f33112bd34_rle_crop_4091119631_0.png', 1402554543: '1767630426_2669428_1402553490_387651fd1ecb4485415480f33112bd34_rle_crop_4091119626_0.png', 1402554541: '1767630426_2669428_1402553727_ce9fcadef34cb00cc20075f0998da9e0_rle_crop_4091119611_0.png', 1402554539: '1767630426_2669428_1402553821_07630a4b4f659219817ea2e596d3a77b_rle_crop_4091119595_0.png', 1402554097: '1767630305_2663361_1402553794_9b474000f21ecc4c1b0a15bf93d0c3fb_rle_crop_4091119237_0.png', 1402554096: '1767630305_2663361_1402553803_05a8963020816fe343d7249c67846135_rle_crop_4091119111_0.png', 1402554079: '1767630266_2662210_1402553805_75dda76e8172a5eb7571d55fb58d79cc_rle_crop_4091118598_0.png', 1402553785: '1767630027_2649326_1402553249_e3039b25eb7320a988bccf47d845d469_rle_crop_4091115363_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/a77a2cd8b782e4b0961b795b8eeab58b_8885147.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/4be2513bf230c029bd9bcffed3cc8969_4242940.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/b23ff0bfcb283d12d0ce54cbaf03772a_7547568.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/90ecebdb212854365c2cb72be4a3a241_89277112.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/5de7a0099131532876a55529dc531a3a_22287010.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/e3c3ac28da28a86a4ec0a72c639ff47a_82692466.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/bde1af672ff1b9d1706801547eb7419f_99226193.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/03fa6ab8a611cf569aad0399df8dab65_80497969.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/09d939c28da217fb1f283f009d63a2aa_1409037.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/e015eed9b4e7188134c8ebc44bac8c3e_52854246.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/10703b37e461e6e9e8be4caf00287522_37066493.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/348e674b301c05589fa6fd3818ccb76a_89312476.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/0148906ee3f9dd416f3b8e3a83911d4b_77139212.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/31b781cf85e5682b55b0428a90dddcf6_3653136.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/53633fdebd2078f0ad59db28fb4939ad_71396724.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/53633fdebd2078f0ad59db28fb4939ad_76502852.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/ebfb2e592f8abe957e7f5951f63bdfbe_78947119.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/62bdb58d15f4c063e9c7229e505fea79_32160346.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/14b7d2348aaf01374e1f1b3c2b61d799_18791201.png change filename to text .imagette299675541767630664/ imagette299675541767630664/1767630545_2675531_1402554085_4ad13b2cf99880460081243198bf40d1_rle_crop_4091120390_0.png.png imagette299675541767630664/1767630545_2675531_1402554084_c60f88a837219419bf41e7bbafec0199_rle_crop_4091120407_0.png.png imagette299675541767630664/1767630266_2662210_1402553805_75dda76e8172a5eb7571d55fb58d79cc_rle_crop_4091118598_0.png.png imagette299675541767630664/1767630545_2675531_1402554086_1a7906dc5a8193633960d47154019204_rle_crop_4091120374_0.png.png imagette299675541767630664/1767630626_2678302_1402553841_88c0b582af7fff758c8b023e504424ce_rle_crop_4091120681_0.png.png imagette299675541767630664/1767630027_2649326_1402553249_e3039b25eb7320a988bccf47d845d469_rle_crop_4091115363_0.png.png imagette299675541767630664/1767630426_2669428_1402553490_387651fd1ecb4485415480f33112bd34_rle_crop_4091119626_0.png.png imagette299675541767630664/1767630027_2649326_1402553250_5b5109f462d799e36bb1de7c88d9e2ac_rle_crop_4091115352_0.png.png imagette299675541767630664/1767630305_2663361_1402553794_9b474000f21ecc4c1b0a15bf93d0c3fb_rle_crop_4091119237_0.png.png imagette299675541767630664/1767630545_2675531_1402554084_c60f88a837219419bf41e7bbafec0199_rle_crop_4091120406_0.png.png imagette299675541767630664/1767630446_2669767_1402553437_05055dc08406bfa92ded6943d69bbd67_rle_crop_4091119976_0.png.png imagette299675541767630664/1767630426_2669428_1402553490_387651fd1ecb4485415480f33112bd34_rle_crop_4091119631_0.png.png imagette299675541767630664/1767630545_2675531_1402554086_1a7906dc5a8193633960d47154019204_rle_crop_4091120373_0.png.png imagette299675541767630664/1767630545_2675531_1402554085_4ad13b2cf99880460081243198bf40d1_rle_crop_4091120388_0.png.png imagette299675541767630664/1767630446_2669767_1402553492_9bb96f2d4b440583f64410f0f8ee3f22_rle_crop_4091119913_0.png.png imagette299675541767630664/1767630626_2678302_1402553843_3340cc657347f772c2b8c420ecbdd670_rle_crop_4091120663_0.png.png imagette299675541767630664/1767630305_2663361_1402553803_05a8963020816fe343d7249c67846135_rle_crop_4091119111_0.png.png imagette299675541767630664/1767630426_2669428_1402553821_07630a4b4f659219817ea2e596d3a77b_rle_crop_4091119595_0.png.png imagette299675541767630664/1767630626_2678302_1402553841_88c0b582af7fff758c8b023e504424ce_rle_crop_4091120675_0.png.png imagette299675541767630664/1767630426_2669428_1402553727_ce9fcadef34cb00cc20075f0998da9e0_rle_crop_4091119611_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/79faa91405df27de09200cbe3ca2af24_76614401.png imagette299675541767630664 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29967529 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29967556,29967557,29967558,29967559,29967560,29967561,29967563,29967564,29967565,29967566,29967567,29967568?tags=kraft,papier,plastique,environnement,Carton_brun,mal_croppe,cartonnette,autre_refus,metal,Carton_gris,flou,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1402554692] : ('0.05011321927710472',) no score found for photo 1402554692 We are sending mail with results at report@fotonower.com args[1402554688] : ('0.05011321927710472',) no score found for photo 1402554688 We are sending mail with results at report@fotonower.com args[1402554668] : ('0.05011321927710472',) no score found for photo 1402554668 We are sending mail with results at report@fotonower.com args[1402554665] : ('0.05011321927710472',) no score found for photo 1402554665 We are sending mail with results at report@fotonower.com args[1402554662] : ('0.05011321927710472',) no score found for photo 1402554662 We are sending mail with results at report@fotonower.com args[1402554659] : ('0.05011321927710472',) no score found for photo 1402554659 We are sending mail with results at report@fotonower.com args[1402554657] : ('0.05011321927710472',) no score found for photo 1402554657 We are sending mail with results at report@fotonower.com args[1402554655] : ('0.05011321927710472',) no score found for photo 1402554655 We are sending mail with results at report@fotonower.com refus_total : 0.05011321927710472 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=29967529 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_P29967529_05-01-2026_17_30_59.pdf results_Auto_P29967529_05-01-2026_17_30_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29967529_05-01-2026_17_30_59.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','29967529','results_Auto_P29967529_05-01-2026_17_30_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29967529_05-01-2026_17_30_59.pdf','pdf','','0.28','0.05011321927710472') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29967529]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655] map_info['map_portfolio_photo'] : {29967529: [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655, 1402554592, 1402554580, 1402554573, 1402554519, 1402554510, 1402554502, 1402554499, 1402554495, 1402554293, 1402554253, 1402554222, 1402554189, 1402554157, 1402554088, 1402554086, 1402554085, 1402554084, 1402554049, 1402554046, 1402554044, 1402553988, 1402553982, 1402553974, 1402553970, 1402553968, 1402553847, 1402553845, 1402553843, 1402553841, 1402553839, 1402553821, 1402553820, 1402553819, 1402553805, 1402553803, 1402553801, 1402553797, 1402553795, 1402553794, 1402553727, 1402553694, 1402553657, 1402553492, 1402553490, 1402553488, 1402553485, 1402553484, 1402553482, 1402553463, 1402553461, 1402553459, 1402553451, 1402553446, 1402553437, 1402553398, 1402553397, 1402553341, 1402553300, 1402553262, 1402553250, 1402553249]} final : False mtd_id 4302 list_pids : [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655] 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, '4313749') ('4302', '29967529', '1402554692', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554688', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554668', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554665', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554662', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554659', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554657', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554655', None, None, None, None, None, '4313749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '29967529', '1402554692', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554688', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554668', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554665', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554662', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554659', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554657', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554655', None, None, None, None, None, '4313749')] time used for this insertion : 0.01791214942932129 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.428051710128784 time spend to save output : 0.018164873123168945 total time spend for step 4 : 7.446216583251953 step5:split_time_score Mon Jan 5 17:31:06 2026 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 : ['29967529'] 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 : [('29967529',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29967529) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402554665: {'path': 'temp/1767630659_3570203_1402554665_5a1624a0593d36a5b7e0858347468ea3.jpg', 'extension': 'jpg'}, 1402554668: {'path': 'temp/1767630659_3570203_1402554668_ff2568a588d2a344f9fb2ced05a62f5f.jpg', 'extension': 'jpg'}, 1402554688: {'path': 'temp/1767630659_3570203_1402554688_50340ae3f60a5f9ab57c12bda74f5ea0.jpg', 'extension': 'jpg'}, 1402554692: {'path': 'temp/1767630659_3570203_1402554692_3c0e50ba2010f2e9b13c9c3ac3684e62.jpg', 'extension': 'jpg'}, 1402554659: {'path': 'temp/1767630659_3570203_1402554659_7e294542e703e25f8c9079eede354fd5.jpg', 'extension': 'jpg'}, 1402554662: {'path': 'temp/1767630659_3570203_1402554662_ca15f01edfae3421916c6855c8a4587f.jpg', 'extension': 'jpg'}, 1402554655: {'path': 'temp/1767630659_3570203_1402554655_2a9a9f925cb85fc39358af29ed742d64.jpg', 'extension': 'jpg'}, 1402554657: {'path': 'temp/1767630659_3570203_1402554657_5f24e1fb14110c1092b6ce6e44281d31.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 = 29967529; (('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 = 29967529 group by h (('17', 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=29967529 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 (29967529) 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 (29967529) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05012026 29967529 Nombre de photos uploadées : 69 / 23040 (0%) 05012026 29967529 Nombre de photos taguées (types de déchets): 0 / 69 (0%) 05012026 29967529 Nombre de photos taguées (volume) : 0 / 69 (0%) [{'photo_id': 1402553341, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/1c2c46e05d7294e4e05c9d0cefa774fa.jpg', 'username': None, 'uploaded_at': 1767629767, 'text': 'image_05012026_17_15_04_010153m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402553300, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/230a3ee0cab16ed859d4ddfb3c967e94.jpg', 'username': None, 'uploaded_at': 1767629767, 'text': 'image_05012026_17_15_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402553262, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/cc272f913507b3a7556be98aec58fed6.jpg', 'username': None, 'uploaded_at': 1767629767, 'text': 'image_05012026_17_15_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402553250, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/5b5109f462d799e36bb1de7c88d9e2ac.jpg', 'username': None, 'uploaded_at': 1767629767, 'text': 'image_05012026_17_15_34_010134m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.2874603271484375e-05 ????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032198429107666016 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29967529, '2026-01-05' ) 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 = '2026-01-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2841756,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2724297046661377 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= 2841756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29943959, 'dashboard_result_id': 19042690, '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_P29943959_05-01-2026_05_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29943961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29943962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29943963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29943964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29943965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29943966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29943967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29943968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29943969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29943970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29943971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29943972, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29944115, 'dashboard_result_id': 19042691, '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_P29944115_05-01-2026_05_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29944119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29944120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29944121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29944122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29944123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29944124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29944125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29944126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29944127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29944128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29944129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29944130, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29944510, 'dashboard_result_id': 19042692, '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_P29944510_05-01-2026_05_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29944515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29944516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29944517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29944518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29944519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29944520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29944521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29944522, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29944523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29944524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29944525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29944526, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29944916, 'dashboard_result_id': 19042693, '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_P29944916_05-01-2026_06_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29944923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29944924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29944925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29944926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29944927, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29944928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29944929, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29944930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29944931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29944932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29944933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29944934, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29945305, 'dashboard_result_id': 19042694, '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_P29945305_05-01-2026_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29945313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29945314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29945315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29945316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29945317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29945318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29945319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29945320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29945321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29945322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29945323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29945324, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29945724, 'dashboard_result_id': 19042695, '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_P29945724_05-01-2026_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29945750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29945751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29945752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29945753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29945754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29945755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29945756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29945757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29945758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29945759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29945760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29945761, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29946229, 'dashboard_result_id': 19042696, '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_P29946229_05-01-2026_06_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29946255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29946256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29946257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29946258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29946259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29946260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29946261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29946262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29946263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29946264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29946265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29946266, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29946669, 'dashboard_result_id': 19042697, '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_P29946669_05-01-2026_07_05_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29946670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29946671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29946672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29946673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29946674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29946676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29946677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29946678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29946680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29946681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29946683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29946684, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29947066, 'dashboard_result_id': 19042698, '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_P29947066_05-01-2026_07_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29947098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29947099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29947100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29947101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29947102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29947103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29947104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29947105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29947106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29947107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29947108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29947109, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29947777, 'dashboard_result_id': 19042699, '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_P29947777_05-01-2026_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29947829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29947830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29947831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29947832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29947833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29947834, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29947835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29947836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29947837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29947838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29947839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29947840, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29948502, 'dashboard_result_id': 19042700, '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_P29948502_05-01-2026_07_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29948513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29948514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29948515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29948516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29948517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29948518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29948519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29948520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29948521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29948522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29948523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29948524, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29949018, 'dashboard_result_id': 19042701, '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_P29949018_05-01-2026_08_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29949033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29949034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29949035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29949036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29949037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29949038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29949039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29949040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29949041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29949042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29949043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29949044, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29949468, 'dashboard_result_id': 19042702, '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_P29949468_05-01-2026_08_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29949508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29949509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29949510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29949511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29949512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29949513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29949514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29949515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29949516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29949517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29949518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29949519, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29950325, 'dashboard_result_id': 19042703, '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_P29950325_05-01-2026_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29950347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29950348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29950349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29950350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29950351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29950352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29950353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29950354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29950355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29950356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29950357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29950358, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29950757, 'dashboard_result_id': 19042704, '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_P29950757_05-01-2026_08_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29950823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29950824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29950825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29950826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29950827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29950828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29950829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29950830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29950831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29950832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29950833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29950834, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29951361, 'dashboard_result_id': 19042705, '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_P29951361_05-01-2026_09_04_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29951375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29951376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29951377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29951378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29951379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29951380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29951381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29951382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29951383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29951384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29951385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29951386, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29952807, 'dashboard_result_id': 19042706, '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_P29952807_05-01-2026_09_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29952813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29952814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29952815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29952816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29952817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29952818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29952819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29952820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29952821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29952822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29952823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29952824, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29953273, 'dashboard_result_id': 19042707, '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_P29953273_05-01-2026_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29953279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29953280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29953281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29953282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29953283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29953284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29953285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29953286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29953287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29953288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29953289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29953290, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29953685, 'dashboard_result_id': 19042708, '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_P29953685_05-01-2026_10_23_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29953701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29953702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29953703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29953704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29953705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29953706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29953707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29953708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29953709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29953710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29953711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29953712, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29954426, 'dashboard_result_id': 19042709, '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_P29954426_05-01-2026_10_42_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29954432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29954433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29954434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29954435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29954436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29954437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29954438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29954439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29954440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29954441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29954442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29954443, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29954814, 'dashboard_result_id': 19042710, '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_P29954814_05-01-2026_10_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29954816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29954817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29954818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29954819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29954820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29954821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29954822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29954823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29954824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29954825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29954826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29954827, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29954934, 'dashboard_result_id': 19042711, '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_P29954934_05-01-2026_11_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29954981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29954982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29954983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29954984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29954985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29954986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29954987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29954988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29954989, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29954990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29954991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29954992, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29955397, 'dashboard_result_id': 19042712, '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_P29955397_05-01-2026_11_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29955446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29955447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29955448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29955449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29955450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29955451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29955452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29955453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29955454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29955455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29955456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29955457, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29956118, 'dashboard_result_id': 19042713, '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_P29956118_05-01-2026_11_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29956147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29956148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29956149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29956150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29956151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29956152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29956153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29956154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29956155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29956156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29956157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29956158, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29956847, 'dashboard_result_id': 19042714, '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_P29956847_05-01-2026_11_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29956885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29956886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29956887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29956889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29956890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29956891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29956892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29956893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29956894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29956895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29956896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29956897, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29957432, 'dashboard_result_id': 19042715, '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_P29957432_05-01-2026_12_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29957495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29957496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29957497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29957499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29957500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29957501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29957503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29957504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29957506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29957507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29957508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29957510, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29958094, 'dashboard_result_id': 19042716, '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_P29958094_05-01-2026_13_59_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29958136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29958137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29958138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29958139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29958140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29958141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29958142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29958143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29958144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29958145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29958146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29958147, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29960855, 'dashboard_result_id': 19042717, '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_P29960855_05-01-2026_14_33_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29960858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29960859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29960860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29960861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29960862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29960863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29960864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29960865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29960866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29960867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29960868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29960869, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29960983, 'dashboard_result_id': 19042718, '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_P29960983_05-01-2026_14_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29960991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29960992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29960993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29960994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29960995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29960996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29960997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29960998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29960999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29961000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29961001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29961002, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29961530, 'dashboard_result_id': 19042719, '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_P29961530_05-01-2026_15_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29961562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29961563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29961564, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29961565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29961566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29961567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29961568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29961569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29961570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29961571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29961572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29961573, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29962056, 'dashboard_result_id': 19042720, '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_P29962056_05-01-2026_15_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29962063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29962064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29962065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29962066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29962067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29962068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29962069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29962070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29962071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29962072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29962073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29962074, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29962633, 'dashboard_result_id': 19042721, '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_P29962633_05-01-2026_15_33_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29962673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29962675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29962676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29962677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29962678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29962679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29962680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29962681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29962682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29962683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29962684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29962685, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29963242, 'dashboard_result_id': 19042722, '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_P29963242_05-01-2026_15_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29963250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29963251, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29963252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29963253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29963254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29963255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29963256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29963257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29963258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29963260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29963261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29963262, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29963903, 'dashboard_result_id': 19042723, '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_P29963903_05-01-2026_16_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29963971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29963972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29963973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29963974, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29963975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29963976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29963977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29963978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29963979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29963980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29963981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29963982, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29964465, 'dashboard_result_id': 19042724, '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_P29964465_05-01-2026_16_20_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29964498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29964499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29964500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29964501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29964503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29964504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29964505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29964507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29964508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29964509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29964510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29964511, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29965338, 'dashboard_result_id': 19042725, '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_P29965338_05-01-2026_16_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29965345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29965346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29965347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29965348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29965349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29965350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29965351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29965352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29965353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29965354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29965355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29965356, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29965614, 'dashboard_result_id': 19042726, '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_P29965614_05-01-2026_16_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29965632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29965633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29965634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29965635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29965636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29965637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29965638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29965639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29965640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29965641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29965642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29965644, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29966302, 'dashboard_result_id': 19042727, '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_P29966302_05-01-2026_17_04_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29966309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29966310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29966311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29966312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29966313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29966314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29966315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29966316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29966317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29966318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29966319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29966320, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29966600, 'dashboard_result_id': 19042728, '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_P29966600_05-01-2026_17_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29966620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29966621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29966622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29966623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29966624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29966625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29966626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29966627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29966628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29966629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29966630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29966631, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2851926, 'mtr_portfolio_id': 29967529, 'dashboard_result_id': 19042729, '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_P29967529_05-01-2026_17_29_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29967543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29967544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29967545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29967546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29967547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29967548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29967549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29967550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29967551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29967552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29967553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29967554, '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 = 29943959 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': 4310300, 'mtr_portfolio_id': 29943959, 'created_at': datetime.datetime(2026, 1, 5, 5, 16, 58), 'result': '0.05584307095042764', 'result_long': None, 'result_double': None}] Qualite : 0.05584307095042764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29943959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29943959_05-01-2026_05_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29943959 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_P29943959_05-01-2026_05_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29943961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29943962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29943963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29943964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29943965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29943966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29943967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29943968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29943969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29943970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29943971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29943972, 'pht': 3726}}" where mtr_portfolio_id = 29943959 and dashboard_run_id = 2851926 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`=29943959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042690, 0.05584307095042764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29943959_05-01-2026_05_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29943961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29943962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29943963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29943964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29943965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29943966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29943967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29943968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29943969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29943970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29943971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29943972, '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 = 29944115 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': 4310320, 'mtr_portfolio_id': 29944115, 'created_at': datetime.datetime(2026, 1, 5, 5, 32, 58), 'result': '0.0843515128079324', 'result_long': None, 'result_double': None}] Qualite : 0.0843515128079324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29944115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29944115_05-01-2026_05_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29944115 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_P29944115_05-01-2026_05_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29944119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29944120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29944121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29944122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29944123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29944124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29944125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29944126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29944127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29944128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29944129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29944130, 'pht': 3726}}" where mtr_portfolio_id = 29944115 and dashboard_run_id = 2851926 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`=29944115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042691, 0.0843515128079324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29944115_05-01-2026_05_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29944119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29944120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29944121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29944122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29944123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29944124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29944125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29944126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29944127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29944128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29944129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29944130, '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 = 29944510 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': 4310377, 'mtr_portfolio_id': 29944510, 'created_at': datetime.datetime(2026, 1, 5, 5, 48, 59), 'result': '0.050137888976629796', 'result_long': None, 'result_double': None}] Qualite : 0.050137888976629796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29944510 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29944510_05-01-2026_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29944510 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_P29944510_05-01-2026_05_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29944515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29944516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29944517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29944518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29944519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29944520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29944521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29944522, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29944523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29944524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29944525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29944526, 'pht': 3726}}" where mtr_portfolio_id = 29944510 and dashboard_run_id = 2851926 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`=29944510 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042692, 0.050137888976629796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29944510_05-01-2026_05_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29944515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29944516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29944517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29944518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29944519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29944520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29944521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29944522, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29944523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29944524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29944525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29944526, '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 = 29944916 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': 4310550, 'mtr_portfolio_id': 29944916, 'created_at': datetime.datetime(2026, 1, 5, 6, 3, 1), 'result': '0.043262271647210845', 'result_long': None, 'result_double': None}] Qualite : 0.043262271647210845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29944916 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29944916_05-01-2026_06_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29944916 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_P29944916_05-01-2026_06_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29944923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29944924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29944925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29944926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29944927, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29944928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29944929, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29944930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29944931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29944932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29944933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29944934, 'pht': 3726}}" where mtr_portfolio_id = 29944916 and dashboard_run_id = 2851926 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`=29944916 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042693, 0.043262271647210845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29944916_05-01-2026_06_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29944923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29944924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29944925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29944926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29944927, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29944928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29944929, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29944930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29944931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29944932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29944933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29944934, '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 = 29945305 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': 4310623, 'mtr_portfolio_id': 29945305, 'created_at': datetime.datetime(2026, 1, 5, 6, 16, 59), 'result': '0.04846174494036705', 'result_long': None, 'result_double': None}] Qualite : 0.04846174494036705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29945305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29945305_05-01-2026_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29945305 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_P29945305_05-01-2026_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29945313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29945314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29945315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29945316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29945317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29945318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29945319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29945320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29945321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29945322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29945323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29945324, 'pht': 3726}}" where mtr_portfolio_id = 29945305 and dashboard_run_id = 2851926 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`=29945305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042694, 0.04846174494036705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29945305_05-01-2026_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29945313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29945314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29945315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29945316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29945317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29945318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29945319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29945320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29945321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29945322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29945323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29945324, '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 = 29945724 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': 4310682, 'mtr_portfolio_id': 29945724, 'created_at': datetime.datetime(2026, 1, 5, 6, 32, 59), 'result': '0.05111697065488731', 'result_long': None, 'result_double': None}] Qualite : 0.05111697065488731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29945724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29945724_05-01-2026_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29945724 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_P29945724_05-01-2026_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29945750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29945751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29945752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29945753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29945754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29945755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29945756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29945757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29945758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29945759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29945760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29945761, 'pht': 3726}}" where mtr_portfolio_id = 29945724 and dashboard_run_id = 2851926 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`=29945724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042695, 0.05111697065488731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29945724_05-01-2026_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29945750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29945751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29945752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29945753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29945754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29945755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29945756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29945757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29945758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29945759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29945760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29945761, '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 = 29946229 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': 4310769, 'mtr_portfolio_id': 29946229, 'created_at': datetime.datetime(2026, 1, 5, 6, 46, 58), 'result': '0.04533792421898797', 'result_long': None, 'result_double': None}] Qualite : 0.04533792421898797 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29946229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29946229_05-01-2026_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29946229 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_P29946229_05-01-2026_06_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29946255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29946256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29946257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29946258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29946259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29946260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29946261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29946262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29946263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29946264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29946265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29946266, 'pht': 3726}}" where mtr_portfolio_id = 29946229 and dashboard_run_id = 2851926 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`=29946229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042696, 0.04533792421898797, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29946229_05-01-2026_06_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29946255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29946256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29946257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29946258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29946259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29946260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29946261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29946262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29946263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29946264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29946265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29946266, '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 = 29946669 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': 4310837, 'mtr_portfolio_id': 29946669, 'created_at': datetime.datetime(2026, 1, 5, 7, 5), 'result': '0.04606458331418779', 'result_long': None, 'result_double': None}] Qualite : 0.04606458331418779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29946669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29946669_05-01-2026_07_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29946669 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_P29946669_05-01-2026_07_05_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29946670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29946671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29946672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29946673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29946674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29946676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29946677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29946678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29946680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29946681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29946683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29946684, 'pht': 3726}}" where mtr_portfolio_id = 29946669 and dashboard_run_id = 2851926 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`=29946669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042697, 0.04606458331418779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29946669_05-01-2026_07_05_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29946670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29946671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29946672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29946673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29946674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29946676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29946677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29946678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29946680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29946681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29946683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29946684, '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 = 29947066 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': 4310904, 'mtr_portfolio_id': 29947066, 'created_at': datetime.datetime(2026, 1, 5, 7, 16, 57), 'result': '0.06499040591203736', 'result_long': None, 'result_double': None}] Qualite : 0.06499040591203736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29947066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29947066_05-01-2026_07_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29947066 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_P29947066_05-01-2026_07_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29947098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29947099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29947100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29947101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29947102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29947103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29947104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29947105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29947106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29947107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29947108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29947109, 'pht': 3726}}" where mtr_portfolio_id = 29947066 and dashboard_run_id = 2851926 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`=29947066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042698, 0.06499040591203736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29947066_05-01-2026_07_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29947098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29947099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29947100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29947101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29947102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29947103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29947104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29947105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29947106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29947107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29947108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29947109, '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 = 29947777 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': 4310995, 'mtr_portfolio_id': 29947777, 'created_at': datetime.datetime(2026, 1, 5, 7, 33), 'result': '0.0514469632968614', 'result_long': None, 'result_double': None}] Qualite : 0.0514469632968614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29947777 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29947777_05-01-2026_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29947777 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_P29947777_05-01-2026_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29947829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29947830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29947831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29947832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29947833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29947834, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29947835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29947836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29947837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29947838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29947839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29947840, 'pht': 3726}}" where mtr_portfolio_id = 29947777 and dashboard_run_id = 2851926 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`=29947777 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042699, 0.0514469632968614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29947777_05-01-2026_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29947829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29947830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29947831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29947832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29947833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29947834, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29947835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29947836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29947837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29947838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29947839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29947840, '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 = 29948502 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': 4311081, 'mtr_portfolio_id': 29948502, 'created_at': datetime.datetime(2026, 1, 5, 7, 48, 57), 'result': '0.05922426196368682', 'result_long': None, 'result_double': None}] Qualite : 0.05922426196368682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29948502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29948502_05-01-2026_07_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29948502 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_P29948502_05-01-2026_07_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29948513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29948514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29948515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29948516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29948517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29948518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29948519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29948520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29948521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29948522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29948523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29948524, 'pht': 3726}}" where mtr_portfolio_id = 29948502 and dashboard_run_id = 2851926 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`=29948502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042700, 0.05922426196368682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29948502_05-01-2026_07_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29948513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29948514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29948515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29948516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29948517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29948518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29948519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29948520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29948521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29948522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29948523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29948524, '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 = 29949018 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': 4311144, 'mtr_portfolio_id': 29949018, 'created_at': datetime.datetime(2026, 1, 5, 8, 2, 59), 'result': '0.07859955402706653', 'result_long': None, 'result_double': None}] Qualite : 0.07859955402706653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29949018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29949018_05-01-2026_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29949018 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_P29949018_05-01-2026_08_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29949033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29949034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29949035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29949036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29949037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29949038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29949039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29949040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29949041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29949042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29949043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29949044, 'pht': 3726}}" where mtr_portfolio_id = 29949018 and dashboard_run_id = 2851926 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`=29949018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042701, 0.07859955402706653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29949018_05-01-2026_08_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29949033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29949034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29949035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29949036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29949037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29949038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29949039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29949040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29949041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29949042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29949043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29949044, '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 = 29949468 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': 4311226, 'mtr_portfolio_id': 29949468, 'created_at': datetime.datetime(2026, 1, 5, 8, 19, 2), 'result': '0.09116677988664726', 'result_long': None, 'result_double': None}] Qualite : 0.09116677988664726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29949468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29949468_05-01-2026_08_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29949468 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_P29949468_05-01-2026_08_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29949508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29949509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29949510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29949511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29949512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29949513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29949514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29949515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29949516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29949517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29949518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29949519, 'pht': 3726}}" where mtr_portfolio_id = 29949468 and dashboard_run_id = 2851926 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`=29949468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042702, 0.09116677988664726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29949468_05-01-2026_08_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29949508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29949509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29949510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29949511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29949512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29949513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29949514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29949515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29949516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29949517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29949518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29949519, '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 = 29950325 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': 4311331, 'mtr_portfolio_id': 29950325, 'created_at': datetime.datetime(2026, 1, 5, 8, 33), 'result': '0.04653106942541076', 'result_long': None, 'result_double': None}] Qualite : 0.04653106942541076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29950325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29950325_05-01-2026_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29950325 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_P29950325_05-01-2026_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29950347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29950348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29950349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29950350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29950351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29950352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29950353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29950354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29950355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29950356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29950357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29950358, 'pht': 3726}}" where mtr_portfolio_id = 29950325 and dashboard_run_id = 2851926 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`=29950325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042703, 0.04653106942541076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29950325_05-01-2026_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29950347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29950348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29950349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29950350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29950351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29950352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29950353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29950354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29950355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29950356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29950357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29950358, '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 = 29950757 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': 4311392, 'mtr_portfolio_id': 29950757, 'created_at': datetime.datetime(2026, 1, 5, 8, 47, 1), 'result': '0.043373108390970305', 'result_long': None, 'result_double': None}] Qualite : 0.043373108390970305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29950757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29950757_05-01-2026_08_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29950757 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_P29950757_05-01-2026_08_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29950823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29950824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29950825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29950826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29950827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29950828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29950829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29950830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29950831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29950832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29950833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29950834, 'pht': 3726}}" where mtr_portfolio_id = 29950757 and dashboard_run_id = 2851926 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`=29950757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042704, 0.043373108390970305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29950757_05-01-2026_08_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29950823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29950824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29950825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29950826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29950827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29950828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29950829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29950830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29950831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29950832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29950833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29950834, '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 = 29951361 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': 4311457, 'mtr_portfolio_id': 29951361, 'created_at': datetime.datetime(2026, 1, 5, 9, 4, 58), 'result': '0.0386307863035533', 'result_long': None, 'result_double': None}] Qualite : 0.0386307863035533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29951361 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29951361_05-01-2026_09_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29951361 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_P29951361_05-01-2026_09_04_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29951375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29951376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29951377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29951378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29951379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29951380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29951381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29951382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29951383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29951384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29951385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29951386, 'pht': 3726}}" where mtr_portfolio_id = 29951361 and dashboard_run_id = 2851926 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`=29951361 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042705, 0.0386307863035533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29951361_05-01-2026_09_04_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29951375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29951376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29951377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29951378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29951379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29951380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29951381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29951382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29951383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29951384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29951385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29951386, '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 = 29952807 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': 4311658, 'mtr_portfolio_id': 29952807, 'created_at': datetime.datetime(2026, 1, 5, 9, 48, 58), 'result': '0.06468573672836482', 'result_long': None, 'result_double': None}] Qualite : 0.06468573672836482 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29952807 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29952807_05-01-2026_09_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29952807 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_P29952807_05-01-2026_09_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29952813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29952814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29952815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29952816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29952817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29952818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29952819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29952820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29952821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29952822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29952823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29952824, 'pht': 3726}}" where mtr_portfolio_id = 29952807 and dashboard_run_id = 2851926 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`=29952807 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042706, 0.06468573672836482, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29952807_05-01-2026_09_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29952813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29952814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29952815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29952816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29952817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29952818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29952819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29952820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29952821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29952822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29952823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29952824, '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 = 29953273 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': 4311724, 'mtr_portfolio_id': 29953273, 'created_at': datetime.datetime(2026, 1, 5, 10, 2, 59), 'result': '0.07982134297555156', 'result_long': None, 'result_double': None}] Qualite : 0.07982134297555156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29953273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29953273_05-01-2026_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29953273 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_P29953273_05-01-2026_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29953279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29953280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29953281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29953282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29953283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29953284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29953285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29953286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29953287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29953288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29953289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29953290, 'pht': 3726}}" where mtr_portfolio_id = 29953273 and dashboard_run_id = 2851926 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`=29953273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042707, 0.07982134297555156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29953273_05-01-2026_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29953279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29953280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29953281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29953282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29953283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29953284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29953285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29953286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29953287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29953288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29953289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29953290, '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 = 29953685 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': 4311809, 'mtr_portfolio_id': 29953685, 'created_at': datetime.datetime(2026, 1, 5, 10, 23, 30), 'result': '0.05405124228547581', 'result_long': None, 'result_double': None}] Qualite : 0.05405124228547581 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29953685 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29953685_05-01-2026_10_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29953685 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_P29953685_05-01-2026_10_23_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29953701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29953702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29953703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29953704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29953705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29953706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29953707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29953708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29953709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29953710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29953711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29953712, 'pht': 3726}}" where mtr_portfolio_id = 29953685 and dashboard_run_id = 2851926 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`=29953685 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042708, 0.05405124228547581, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29953685_05-01-2026_10_23_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29953701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29953702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29953703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29953704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29953705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29953706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29953707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29953708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29953709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29953710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29953711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29953712, '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 = 29954426 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': 4311901, 'mtr_portfolio_id': 29954426, 'created_at': datetime.datetime(2026, 1, 5, 10, 42, 58), 'result': '0.01918446194793869', 'result_long': None, 'result_double': None}] Qualite : 0.01918446194793869 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29954426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29954426_05-01-2026_10_42_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29954426 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_P29954426_05-01-2026_10_42_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29954432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29954433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29954434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29954435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29954436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29954437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29954438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29954439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29954440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29954441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29954442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29954443, 'pht': 3726}}" where mtr_portfolio_id = 29954426 and dashboard_run_id = 2851926 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`=29954426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042709, 0.01918446194793869, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29954426_05-01-2026_10_42_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29954432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29954433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29954434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29954435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29954436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29954437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29954438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29954439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29954440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29954441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29954442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29954443, '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 = 29954814 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': 4311955, 'mtr_portfolio_id': 29954814, 'created_at': datetime.datetime(2026, 1, 5, 10, 49), 'result': '0.09890785260505598', 'result_long': None, 'result_double': None}] Qualite : 0.09890785260505598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29954814 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29954814_05-01-2026_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29954814 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_P29954814_05-01-2026_10_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29954816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29954817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29954818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29954819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29954820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29954821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29954822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29954823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29954824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29954825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29954826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29954827, 'pht': 3726}}" where mtr_portfolio_id = 29954814 and dashboard_run_id = 2851926 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`=29954814 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042710, 0.09890785260505598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29954814_05-01-2026_10_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29954816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29954817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29954818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29954819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29954820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29954821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29954822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29954823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29954824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29954825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29954826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29954827, '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 = 29954934 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': 4311967, 'mtr_portfolio_id': 29954934, 'created_at': datetime.datetime(2026, 1, 5, 11, 4, 59), 'result': '0.05168220414843044', 'result_long': None, 'result_double': None}] Qualite : 0.05168220414843044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29954934 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29954934_05-01-2026_11_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29954934 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_P29954934_05-01-2026_11_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29954981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29954982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29954983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29954984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29954985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29954986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29954987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29954988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29954989, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29954990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29954991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29954992, 'pht': 3726}}" where mtr_portfolio_id = 29954934 and dashboard_run_id = 2851926 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`=29954934 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042711, 0.05168220414843044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29954934_05-01-2026_11_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29954981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29954982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29954983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29954984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29954985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29954986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29954987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29954988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29954989, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29954990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29954991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29954992, '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 = 29955397 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': 4312044, 'mtr_portfolio_id': 29955397, 'created_at': datetime.datetime(2026, 1, 5, 11, 19), 'result': '0.04133004570797239', 'result_long': None, 'result_double': None}] Qualite : 0.04133004570797239 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29955397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29955397_05-01-2026_11_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29955397 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_P29955397_05-01-2026_11_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29955446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29955447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29955448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29955449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29955450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29955451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29955452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29955453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29955454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29955455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29955456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29955457, 'pht': 3726}}" where mtr_portfolio_id = 29955397 and dashboard_run_id = 2851926 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`=29955397 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042712, 0.04133004570797239, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29955397_05-01-2026_11_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29955446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29955447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29955448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29955449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29955450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29955451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29955452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29955453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29955454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29955455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29955456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29955457, '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 = 29956118 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': 4312149, 'mtr_portfolio_id': 29956118, 'created_at': datetime.datetime(2026, 1, 5, 11, 33), 'result': '0.05365704149694868', 'result_long': None, 'result_double': None}] Qualite : 0.05365704149694868 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29956118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29956118_05-01-2026_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29956118 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_P29956118_05-01-2026_11_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29956147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29956148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29956149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29956150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29956151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29956152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29956153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29956154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29956155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29956156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29956157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29956158, 'pht': 3726}}" where mtr_portfolio_id = 29956118 and dashboard_run_id = 2851926 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`=29956118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042713, 0.05365704149694868, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29956118_05-01-2026_11_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29956147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29956148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29956149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29956150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29956151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29956152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29956153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29956154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29956155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29956156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29956157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29956158, '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 = 29956847 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': 4312228, 'mtr_portfolio_id': 29956847, 'created_at': datetime.datetime(2026, 1, 5, 11, 47), 'result': '0.07127038646889426', 'result_long': None, 'result_double': None}] Qualite : 0.07127038646889426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29956847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29956847_05-01-2026_11_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29956847 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_P29956847_05-01-2026_11_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29956885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29956886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29956887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29956889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29956890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29956891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29956892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29956893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29956894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29956895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29956896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29956897, 'pht': 3726}}" where mtr_portfolio_id = 29956847 and dashboard_run_id = 2851926 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`=29956847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042714, 0.07127038646889426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29956847_05-01-2026_11_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29956885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29956886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29956887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29956889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29956890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29956891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29956892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29956893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29956894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29956895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29956896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29956897, '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 = 29957432 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': 4312315, 'mtr_portfolio_id': 29957432, 'created_at': datetime.datetime(2026, 1, 5, 12, 4, 59), 'result': '0.05982975275156936', 'result_long': None, 'result_double': None}] Qualite : 0.05982975275156936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29957432 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29957432_05-01-2026_12_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29957432 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_P29957432_05-01-2026_12_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29957495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29957496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29957497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29957499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29957500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29957501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29957503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29957504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29957506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29957507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29957508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29957510, 'pht': 3726}}" where mtr_portfolio_id = 29957432 and dashboard_run_id = 2851926 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`=29957432 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042715, 0.05982975275156936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29957432_05-01-2026_12_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29957495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29957496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29957497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29957499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29957500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29957501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29957503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29957504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29957506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29957507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29957508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29957510, '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 = 29958094 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': 4312417, 'mtr_portfolio_id': 29958094, 'created_at': datetime.datetime(2026, 1, 5, 13, 59, 59), 'result': '0.04262591151383469', 'result_long': None, 'result_double': None}] Qualite : 0.04262591151383469 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29958094 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29958094_05-01-2026_13_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29958094 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_P29958094_05-01-2026_13_59_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29958136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29958137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29958138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29958139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29958140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29958141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29958142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29958143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29958144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29958145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29958146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29958147, 'pht': 3726}}" where mtr_portfolio_id = 29958094 and dashboard_run_id = 2851926 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`=29958094 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042716, 0.04262591151383469, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29958094_05-01-2026_13_59_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29958136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29958137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29958138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29958139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29958140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29958141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29958142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29958143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29958144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29958145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29958146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29958147, '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 = 29960855 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': 4312828, 'mtr_portfolio_id': 29960855, 'created_at': datetime.datetime(2026, 1, 5, 14, 33, 31), 'result': '0.030757062596739368', 'result_long': None, 'result_double': None}] Qualite : 0.030757062596739368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29960855 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29960855_05-01-2026_14_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29960855 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_P29960855_05-01-2026_14_33_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29960858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29960859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29960860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29960861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29960862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29960863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29960864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29960865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29960866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29960867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29960868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29960869, 'pht': 3726}}" where mtr_portfolio_id = 29960855 and dashboard_run_id = 2851926 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`=29960855 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042717, 0.030757062596739368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29960855_05-01-2026_14_33_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29960858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29960859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29960860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29960861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29960862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29960863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29960864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29960865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29960866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29960867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29960868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29960869, '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 = 29960983 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': 4312848, 'mtr_portfolio_id': 29960983, 'created_at': datetime.datetime(2026, 1, 5, 14, 48, 59), 'result': '0.04244303511780725', 'result_long': None, 'result_double': None}] Qualite : 0.04244303511780725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29960983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29960983_05-01-2026_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29960983 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_P29960983_05-01-2026_14_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29960991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29960992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29960993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29960994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29960995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29960996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29960997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29960998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29960999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29961000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29961001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29961002, 'pht': 3726}}" where mtr_portfolio_id = 29960983 and dashboard_run_id = 2851926 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`=29960983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042718, 0.04244303511780725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29960983_05-01-2026_14_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29960991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29960992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29960993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29960994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29960995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29960996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29960997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29960998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29960999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29961000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29961001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29961002, '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 = 29961530 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': 4312905, 'mtr_portfolio_id': 29961530, 'created_at': datetime.datetime(2026, 1, 5, 15, 2, 57), 'result': '0.05295398452168998', 'result_long': None, 'result_double': None}] Qualite : 0.05295398452168998 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29961530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29961530_05-01-2026_15_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29961530 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_P29961530_05-01-2026_15_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29961562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29961563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29961564, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29961565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29961566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29961567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29961568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29961569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29961570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29961571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29961572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29961573, 'pht': 3726}}" where mtr_portfolio_id = 29961530 and dashboard_run_id = 2851926 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`=29961530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042719, 0.05295398452168998, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29961530_05-01-2026_15_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29961562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29961563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29961564, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29961565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29961566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29961567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29961568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29961569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29961570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29961571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29961572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29961573, '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 = 29962056 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': 4312997, 'mtr_portfolio_id': 29962056, 'created_at': datetime.datetime(2026, 1, 5, 15, 19, 1), 'result': '0.047886006302563455', 'result_long': None, 'result_double': None}] Qualite : 0.047886006302563455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29962056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29962056_05-01-2026_15_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29962056 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_P29962056_05-01-2026_15_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29962063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29962064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29962065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29962066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29962067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29962068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29962069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29962070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29962071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29962072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29962073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29962074, 'pht': 3726}}" where mtr_portfolio_id = 29962056 and dashboard_run_id = 2851926 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`=29962056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042720, 0.047886006302563455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29962056_05-01-2026_15_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29962063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29962064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29962065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29962066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29962067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29962068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29962069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29962070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29962071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29962072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29962073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29962074, '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 = 29962633 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': 4313071, 'mtr_portfolio_id': 29962633, 'created_at': datetime.datetime(2026, 1, 5, 15, 33, 28), 'result': '0.07801896453803274', 'result_long': None, 'result_double': None}] Qualite : 0.07801896453803274 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29962633 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29962633_05-01-2026_15_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29962633 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_P29962633_05-01-2026_15_33_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29962673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29962675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29962676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29962677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29962678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29962679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29962680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29962681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29962682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29962683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29962684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29962685, 'pht': 3726}}" where mtr_portfolio_id = 29962633 and dashboard_run_id = 2851926 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`=29962633 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042721, 0.07801896453803274, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29962633_05-01-2026_15_33_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29962673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29962675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29962676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29962677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29962678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29962679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29962680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29962681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29962682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29962683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29962684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29962685, '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 = 29963242 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': 4313183, 'mtr_portfolio_id': 29963242, 'created_at': datetime.datetime(2026, 1, 5, 15, 47), 'result': '0.038629008989771285', 'result_long': None, 'result_double': None}] Qualite : 0.038629008989771285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29963242 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29963242_05-01-2026_15_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29963242 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_P29963242_05-01-2026_15_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29963250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29963251, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29963252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29963253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29963254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29963255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29963256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29963257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29963258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29963260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29963261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29963262, 'pht': 3726}}" where mtr_portfolio_id = 29963242 and dashboard_run_id = 2851926 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`=29963242 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042722, 0.038629008989771285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29963242_05-01-2026_15_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29963250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29963251, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29963252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29963253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29963254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29963255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29963256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29963257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29963258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29963260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29963261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29963262, '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 = 29963903 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': 4313288, 'mtr_portfolio_id': 29963903, 'created_at': datetime.datetime(2026, 1, 5, 16, 4, 58), 'result': '0.042139324199180435', 'result_long': None, 'result_double': None}] Qualite : 0.042139324199180435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29963903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29963903_05-01-2026_16_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29963903 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_P29963903_05-01-2026_16_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29963971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29963972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29963973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29963974, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29963975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29963976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29963977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29963978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29963979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29963980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29963981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29963982, 'pht': 3726}}" where mtr_portfolio_id = 29963903 and dashboard_run_id = 2851926 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`=29963903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042723, 0.042139324199180435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29963903_05-01-2026_16_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29963971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29963972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29963973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29963974, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29963975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29963976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29963977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29963978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29963979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29963980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29963981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29963982, '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 = 29964465 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': 4313357, 'mtr_portfolio_id': 29964465, 'created_at': datetime.datetime(2026, 1, 5, 16, 20, 59), 'result': '0.0313593482758096', 'result_long': None, 'result_double': None}] Qualite : 0.0313593482758096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29964465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29964465_05-01-2026_16_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29964465 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_P29964465_05-01-2026_16_20_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29964498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29964499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29964500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29964501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29964503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29964504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29964505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29964507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29964508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29964509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29964510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29964511, 'pht': 3726}}" where mtr_portfolio_id = 29964465 and dashboard_run_id = 2851926 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`=29964465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042724, 0.0313593482758096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29964465_05-01-2026_16_20_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29964498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29964499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29964500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29964501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29964503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29964504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29964505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29964507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29964508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29964509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29964510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29964511, '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 = 29965338 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': 4313447, 'mtr_portfolio_id': 29965338, 'created_at': datetime.datetime(2026, 1, 5, 16, 33), 'result': '0.028700200112077474', 'result_long': None, 'result_double': None}] Qualite : 0.028700200112077474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29965338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29965338_05-01-2026_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29965338 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_P29965338_05-01-2026_16_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29965345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29965346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29965347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29965348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29965349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29965350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29965351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29965352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29965353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29965354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29965355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29965356, 'pht': 3726}}" where mtr_portfolio_id = 29965338 and dashboard_run_id = 2851926 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`=29965338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042725, 0.028700200112077474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29965338_05-01-2026_16_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29965345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29965346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29965347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29965348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29965349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29965350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29965351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29965352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29965353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29965354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29965355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29965356, '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 = 29965614 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': 4313481, 'mtr_portfolio_id': 29965614, 'created_at': datetime.datetime(2026, 1, 5, 16, 46, 59), 'result': '0.056224880897965984', 'result_long': None, 'result_double': None}] Qualite : 0.056224880897965984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29965614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29965614_05-01-2026_16_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29965614 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_P29965614_05-01-2026_16_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29965632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29965633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29965634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29965635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29965636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29965637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29965638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29965639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29965640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29965641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29965642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29965644, 'pht': 3726}}" where mtr_portfolio_id = 29965614 and dashboard_run_id = 2851926 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`=29965614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042726, 0.056224880897965984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29965614_05-01-2026_16_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29965632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29965633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29965634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29965635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29965636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29965637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29965638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29965639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29965640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29965641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29965642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29965644, '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 = 29966302 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': 4313590, 'mtr_portfolio_id': 29966302, 'created_at': datetime.datetime(2026, 1, 5, 17, 4, 57), 'result': '0.04261782288135194', 'result_long': None, 'result_double': None}] Qualite : 0.04261782288135194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29966302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29966302_05-01-2026_17_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29966302 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_P29966302_05-01-2026_17_04_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29966309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29966310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29966311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29966312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29966313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29966314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29966315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29966316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29966317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29966318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29966319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29966320, 'pht': 3726}}" where mtr_portfolio_id = 29966302 and dashboard_run_id = 2851926 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`=29966302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042727, 0.04261782288135194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29966302_05-01-2026_17_04_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29966309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29966310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29966311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29966312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29966313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29966314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29966315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29966316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29966317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29966318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29966319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29966320, '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 = 29966600 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': 4313658, 'mtr_portfolio_id': 29966600, 'created_at': datetime.datetime(2026, 1, 5, 17, 18, 59), 'result': '0.05678738688889863', 'result_long': None, 'result_double': None}] Qualite : 0.05678738688889863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29966600 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29966600_05-01-2026_17_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29966600 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_P29966600_05-01-2026_17_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29966620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29966621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29966622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29966623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29966624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29966625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29966626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29966627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29966628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29966629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29966630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29966631, 'pht': 3726}}" where mtr_portfolio_id = 29966600 and dashboard_run_id = 2851926 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`=29966600 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042728, 0.05678738688889863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29966600_05-01-2026_17_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29966620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29966621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29966622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29966623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29966624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29966625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29966626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29966627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29966628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29966629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29966630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29966631, '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 = 29967529 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': 4313749, 'mtr_portfolio_id': 29967529, 'created_at': datetime.datetime(2026, 1, 5, 17, 30, 58), 'result': '0.05011321927710472', 'result_long': None, 'result_double': None}] Qualite : 0.05011321927710472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29967529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29967529_05-01-2026_17_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29967529 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_P29967529_05-01-2026_17_30_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29967543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29967544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29967545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29967546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29967547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29967548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29967549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29967550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29967551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29967552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29967553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29967554, 'pht': 3726}}" where mtr_portfolio_id = 29967529 and dashboard_run_id = 2851926 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`=29967529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19042729, 0.05011321927710472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29967529_05-01-2026_17_30_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29967543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29967544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29967545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29967546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29967547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29967548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29967549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29967550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29967551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29967552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29967553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29967554, '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 (29943959,29944115,29944510,29944916,29945305,29945724,29946229,29946669,29947066,29947777,29948502,29949018,29949468,29950325,29950757,29951361,29952807,29953273,29953685,29954426,29954814,29954934,29955397,29956118,29956847,29957432,29958094,29960855,29960983,29961530,29962056,29962633,29963242,29963903,29964465,29965338,29965614,29966302,29966600,29967529) result : ((1402485317,), (1402485350,), (1402485356,), (1402485358,), (1402485360,), (1402485365,), (1402485367,), (1402485369,), (1402485379,), (1402485381,), (1402485383,), (1402485385,), (1402485387,), (1402485393,), (1402485395,), (1402485397,), (1402485398,), (1402485400,), (1402485403,), (1402485407,), (1402485410,), (1402485411,), (1402485415,), (1402485417,), (1402485418,), (1402485426,), (1402485445,), (1402485448,), (1402485451,), (1402485453,), (1402485457,), (1402485459,), (1402485461,), (1402485463,), (1402485480,), (1402485476,), (1402485478,), (1402485487,), (1402485490,), (1402485493,), (1402485496,), (1402485515,), (1402485516,), (1402485524,), (1402485525,), (1402485527,), (1402485529,), (1402485531,), (1402485552,), (1402485554,), (1402485556,), (1402485558,), (1402485560,), (1402485564,), (1402485566,), (1402485568,), (1402485570,), (1402485572,), (1402485585,), (1402485588,), (1402485590,), (1402485592,), (1402485607,), (1402485610,), (1402485612,), (1402485615,), (1402485618,), (1402485670,), (1402485673,), (1402485676,), (1402485679,), (1402485682,), (1402485691,), (1402485693,), (1402485695,), (1402485718,), (1402485721,), (1402485723,), (1402485725,), (1402485727,), (1402485729,), (1402485732,), (1402485734,), (1402485738,), (1402485740,), (1402485744,), (1402485746,), (1402485783,), (1402485785,), (1402485787,), (1402485866,), (1402485854,), (1402485855,), (1402485858,), (1402485861,), (1402485863,), (1402485893,), (1402485894,), (1402485909,), (1402485916,), (1402485941,), (1402485944,), (1402485946,), (1402485948,), (1402485965,), (1402485967,), (1402485969,), (1402485972,), (1402485975,), (1402485979,), (1402485981,), (1402485984,), (1402485986,), (1402485989,), (1402485991,), (1402486010,), (1402486012,), (1402486014,), (1402486017,), (1402486028,), (1402486030,), (1402486032,), (1402486035,), (1402486037,), (1402486050,), (1402486051,), (1402486053,), (1402486055,), (1402486058,), (1402486061,), (1402486065,), (1402486066,), (1402486068,), (1402486070,), (1402486094,), (1402486096,), (1402486105,), (1402486107,), (1402486110,), (1402486113,), (1402486115,), (1402486143,), (1402486151,), (1402486154,), (1402486157,), (1402486164,), (1402486165,), (1402486167,), (1402486170,), (1402486187,), (1402486189,), (1402486190,), (1402486193,), (1402486201,), (1402486204,), (1402486206,), (1402486209,), (1402486212,), (1402486253,), (1402486241,), (1402486243,), (1402486246,), (1402486249,), (1402486251,), (1402486256,), (1402486257,), (1402486259,), (1402486287,), (1402486290,), (1402486292,), (1402486294,), (1402486296,), (1402486303,), (1402486304,), (1402486306,), (1402486308,), (1402486310,), (1402486312,), (1402486321,), (1402486323,), (1402486325,), (1402486326,), (1402486332,), (1402486334,), (1402486336,), (1402486359,), (1402486362,), (1402486364,), (1402486366,), (1402486371,), (1402486373,), (1402486375,), (1402486377,), (1402486397,), (1402486404,), (1402486412,), (1402486418,), (1402486430,), (1402486431,), (1402486434,), (1402486447,), (1402486449,), (1402486452,), (1402486459,), (1402486461,), (1402486463,), (1402486465,), (1402486467,), (1402486586,), (1402486619,), (1402486652,), (1402486685,), (1402487074,), (1402487110,), (1402487149,), (1402487181,), (1402487582,), (1402487511,), (1402487547,), (1402488017,), (1402488055,), (1402488067,), (1402488069,), (1402488072,), (1402488241,), (1402488247,), (1402488249,), (1402488269,), (1402488351,), (1402488352,), (1402488354,), (1402488375,), (1402488377,), (1402488379,), (1402488382,), (1402488387,), (1402488411,), (1402488413,), (1402488415,), (1402488418,), (1402488430,), (1402488432,), (1402488434,), (1402488437,), (1402488441,), (1402488458,), (1402488460,), (1402488462,), (1402488465,), (1402488469,), (1402488490,), (1402488491,), (1402488493,), (1402488516,), (1402488522,), (1402488524,), (1402488527,), (1402488531,), (1402488540,), (1402488542,), (1402488544,), (1402488547,), (1402488551,), (1402488562,), (1402488564,), (1402488566,), (1402488568,), (1402488590,), (1402488591,), (1402488592,), (1402488593,), (1402488597,), (1402488627,), (1402488629,), (1402488632,), (1402488634,), (1402488637,), (1402488640,), (1402488653,), (1402488655,), (1402488658,), (1402488695,), (1402488688,), (1402488690,), (1402488692,), (1402488713,), (1402488715,), (1402488717,), (1402488720,), (1402488725,), (1402488742,), (1402488744,), (1402488746,), (1402488761,), (1402488763,), (1402488765,), (1402488799,), (1402488801,), (1402488803,), (1402488806,), (1402488825,), (1402488826,), (1402488829,), (1402488832,), (1402488860,), (1402488865,), (1402488866,), (1402488868,), (1402488883,), (1402488884,), (1402488896,), (1402488898,), (1402488900,), (1402488903,), (1402488906,), (1402488930,), (1402488931,), (1402488933,), (1402488936,), (1402488940,), (1402488961,), (1402488963,), (1402488965,), (1402488980,), (1402488981,), (1402488983,), (1402489011,), (1402489013,), (1402489016,), (1402489018,), (1402489022,), (1402489031,), (1402489033,), (1402489035,), (1402489037,), (1402489040,), (1402489064,), (1402489066,), (1402489068,), (1402489071,), (1402489075,), (1402489078,), (1402489098,), (1402489095,), (1402489096,), (1402489130,), (1402489132,), (1402489134,), (1402489137,), (1402489160,), (1402489164,), (1402489168,), (1402489192,), (1402489196,), (1402489200,), (1402489205,), (1402489209,), (1402489215,), (1402489217,), (1402489219,), (1402489222,), (1402489236,), (1402489238,), (1402489241,), (1402489274,), (1402489276,), (1402489278,), (1402489281,), (1402489284,), (1402489297,), (1402489299,), (1402489301,), (1402489304,), (1402489316,), (1402489318,), (1402489320,), (1402489323,), (1402489344,), (1402489346,), (1402489349,), (1402489372,), (1402489373,), (1402489376,), (1402489380,), (1402489383,), (1402489385,), (1402489407,), (1402489409,), (1402489411,), (1402489414,), (1402489433,), (1402489434,), (1402489436,), (1402489440,), (1402489472,), (1402489474,), (1402489475,), (1402489492,), (1402489493,), (1402489497,), (1402489499,), (1402489537,), (1402489531,), (1402489554,), (1402489557,), (1402489561,), (1402489565,), (1402489569,), (1402489572,), (1402489581,), (1402489585,), (1402489589,), (1402489593,), (1402489607,), (1402489609,), (1402489611,), (1402489635,), (1402489637,), (1402489640,), (1402489643,), (1402489646,), (1402489656,), (1402489658,), (1402489660,), (1402489664,), (1402489666,), (1402489698,), (1402489701,), (1402489704,), (1402489707,), (1402489710,), (1402489720,), (1402489722,), (1402489724,), (1402489747,), (1402489748,), (1402489750,), (1402489753,), (1402489756,), (1402489778,), (1402489780,), (1402489782,), (1402489785,), (1402489812,), (1402489814,), (1402489816,), (1402489830,), (1402489833,), (1402489834,), (1402489837,), (1402489841,), (1402489856,), (1402489858,), (1402489861,), (1402489864,), (1402489867,), (1402489869,), (1402489889,), (1402489893,), (1402489897,), (1402489899,), (1402489905,), (1402490102,), (1402490169,), (1402490237,), (1402491055,), (1402491844,), (1402491861,), (1402491867,), (1402491038,), (1402491044,), (1402491052,), (1402491053,), (1402491054,), (1402491319,), (1402491493,), (1402491605,), (1402491637,), (1402491668,), (1402491669,), (1402491876,), (1402491879,), (1402491882,), (1402491885,), (1402491888,), (1402491908,), (1402491910,), (1402491913,), (1402491916,), (1402491999,), (1402492001,), (1402492004,), (1402492085,), (1402492093,), (1402492100,), (1402492103,), (1402492126,), (1402492130,), (1402492140,), (1402492158,), (1402492181,), (1402492184,), (1402492186,), (1402492276,), (1402492278,), (1402492280,), (1402492283,), (1402492290,), (1402492317,), (1402492320,), (1402492322,), (1402492324,), (1402492328,), (1402492344,), (1402492345,), (1402492346,), (1402492535,), (1402492544,), (1402492558,), (1402492561,), (1402492572,), (1402492613,), (1402492615,), (1402492618,), (1402492620,), (1402492623,), (1402492671,), (1402492672,), (1402492676,), (1402492679,), (1402492806,), (1402492812,), (1402492823,), (1402492829,), (1402492874,), (1402492865,), (1402492867,), (1402492871,), (1402493029,), (1402493036,), (1402493044,), (1402493050,), (1402493056,), (1402493060,), (1402493092,), (1402493094,), (1402493097,), (1402493100,), (1402493144,), (1402493152,), (1402493329,), (1402493341,), (1402493344,), (1402493348,), (1402493352,), (1402493365,), (1402493389,), (1402493392,), (1402493398,), (1402493403,), (1402493406,), (1402493441,), (1402493446,), (1402493452,), (1402493479,), (1402493482,), (1402493486,), (1402493546,), (1402493548,), (1402493551,), (1402493553,), (1402493557,), (1402493561,), (1402493573,), (1402493575,), (1402493577,), (1402493583,), (1402493587,), (1402493631,), (1402493836,), (1402493844,), (1402493846,), (1402493907,), (1402493893,), (1402493894,), (1402493897,), (1402493901,), (1402493904,), (1402493929,), (1402493932,), (1402493936,), (1402493942,), (1402493945,), (1402493957,), (1402493959,), (1402493963,), (1402493966,), (1402493975,), (1402493996,), (1402493997,), (1402494000,), (1402494003,), (1402494007,), (1402494023,), (1402494024,), (1402494027,), (1402494028,), (1402494049,), (1402494050,), (1402494052,), (1402494054,), (1402494059,), (1402494078,), (1402494079,), (1402494112,), (1402494113,), (1402494115,), (1402494118,), (1402494122,), (1402494146,), (1402494147,), (1402494149,), (1402494152,), (1402494156,), (1402494159,), (1402494175,), (1402494177,), (1402494179,), (1402494182,), (1402494199,), (1402494202,), (1402494204,), (1402494208,), (1402494211,), (1402494213,), (1402494224,), (1402494234,), (1402494237,), (1402494239,), (1402494242,), (1402494245,), (1402494248,), (1402494273,), (1402494274,), (1402494276,), (1402494278,), (1402494281,), (1402494305,), (1402494307,), (1402494310,), (1402494330,), (1402494332,), (1402494335,), (1402494337,), (1402494342,), (1402494388,), (1402494374,), (1402494376,), (1402494378,), (1402494381,), (1402494385,), (1402494406,), (1402494409,), (1402494412,), (1402494502,), (1402494504,), (1402494506,), (1402494528,), (1402494530,), (1402494535,), (1402494539,), (1402494543,), (1402494560,), (1402494562,), (1402494566,), (1402494569,), (1402494572,), (1402494575,), (1402494589,), (1402494593,), (1402494597,), (1402494600,), (1402494605,), (1402494610,), (1402494617,), (1402494619,), (1402494621,), (1402494648,), (1402494650,), (1402494652,), (1402494665,), (1402494667,), (1402494669,), (1402494672,), (1402494677,), (1402494684,), (1402494720,), (1402494722,), (1402494724,), (1402494754,), (1402494757,), (1402494761,), (1402494766,), (1402494781,), (1402494785,), (1402494793,), (1402494803,), (1402494812,), (1402494815,), (1402494835,), (1402494836,), (1402494838,), (1402494841,), (1402494845,), (1402494872,), (1402494874,), (1402494876,), (1402494879,), (1402495031,), (1402495034,), (1402495039,), (1402495074,), (1402495107,), (1402495136,), (1402495250,), (1402495771,), (1402495464,), (1402495527,), (1402495592,), (1402495656,), (1402495724,), (1402496160,), (1402496207,), (1402496214,), (1402496507,), (1402496532,), (1402496559,), (1402496564,), (1402497026,), (1402497047,), (1402497068,), (1402497091,), (1402497096,), (1402497132,), (1402497135,), (1402497138,), (1402497227,), (1402497247,), (1402497250,), (1402497253,), (1402497260,), (1402497342,), (1402497347,), (1402497351,), (1402497356,), (1402497360,), (1402497363,), (1402497465,), (1402497467,), (1402497476,), (1402497482,), (1402497511,), (1402497513,), (1402497943,), (1402497826,), (1402497926,), (1402497927,), (1402498177,), (1402498179,), (1402498206,), (1402498305,), (1402498308,), (1402498310,), (1402498314,), (1402498402,), (1402498413,), (1402498449,), (1402498451,), (1402498454,), (1402498460,), (1402498467,), (1402498521,), (1402498524,), (1402498526,), (1402498529,), (1402498562,), (1402498582,), (1402498585,), (1402498589,), (1402498593,), (1402498598,), (1402498609,), (1402498611,), (1402498614,), (1402498617,), (1402498620,), (1402498624,), (1402498635,), (1402498636,), (1402498639,), (1402498686,), (1402498689,), (1402498693,), (1402498695,), (1402498709,), (1402498712,), (1402498715,), (1402498718,), (1402498721,), (1402498724,), (1402498813,), (1402498815,), (1402498820,), (1402498824,), (1402498854,), (1402498850,), (1402498851,), (1402498962,), (1402498968,), (1402498982,), (1402498999,), (1402499002,), (1402499005,), (1402499140,), (1402499162,), (1402499177,), (1402499196,), (1402499238,), (1402499244,), (1402499248,), (1402499252,), (1402499255,), (1402499259,), (1402499404,), (1402499456,), (1402499464,), (1402499481,), (1402499484,), (1402499488,), (1402499515,), (1402499517,), (1402499526,), (1402499530,), (1402499563,), (1402499581,), (1402499582,), (1402499584,), (1402499586,), (1402499589,), (1402499592,), (1402499597,), (1402499616,), (1402499618,), (1402499621,), (1402499625,), (1402499636,), (1402499652,), (1402499733,), (1402499734,), (1402499752,), (1402499814,), (1402499815,), (1402499817,), (1402499821,), (1402499826,), (1402499829,), (1402499895,), (1402499961,), (1402500024,), (1402500091,), (1402500159,), (1402500167,), (1402500174,), (1402500176,), (1402500177,), (1402500178,), (1402500184,), (1402500199,), (1402500217,), (1402500245,), (1402500251,), (1402500253,), (1402500257,), (1402500260,), (1402500282,), (1402500284,), (1402500286,), (1402500304,), (1402500333,), (1402500335,), (1402500337,), (1402500347,), (1402500361,), (1402500410,), (1402500404,), (1402500406,), (1402500440,), (1402500442,), (1402500444,), (1402500446,), (1402500451,), (1402500453,), (1402500476,), (1402500478,), (1402500479,), (1402500484,), (1402500585,), (1402500586,), (1402500588,), (1402500592,), (1402500595,), (1402500599,), (1402500607,), (1402500619,), (1402500621,), (1402500648,), (1402500650,), (1402500653,), (1402500838,), (1402500932,), (1402500940,), (1402500943,), (1402500972,), (1402500975,), (1402501014,), (1402501016,), (1402501019,), (1402501042,), (1402501046,), (1402501048,), (1402501051,), (1402501056,), (1402501080,), (1402501082,), (1402501084,), (1402501087,), (1402501091,), (1402501093,), (1402501109,), (1402501111,), (1402501114,), (1402501116,), (1402501120,), (1402501138,), (1402501140,), (1402501143,), (1402501457,), (1402501494,), (1402501527,), (1402501560,), (1402501786,), (1402501788,), (1402501790,), (1402501792,), (1402501797,), (1402505288,), (1402505289,), (1402505290,), (1402505306,), (1402505308,), (1402505309,), (1402505312,), (1402505316,), (1402505319,), (1402505325,), (1402505329,), (1402505330,), (1402505344,), (1402505346,), (1402505348,), (1402505349,), (1402505377,), (1402505379,), (1402505380,), (1402505383,), (1402505400,), (1402505401,), (1402505402,), (1402505983,), (1402506015,), (1402506305,), (1402506306,), (1402506307,), (1402506652,), (1402506653,), (1402506654,), (1402506655,), (1402506668,), (1402506669,), (1402506671,), (1402506673,), (1402506676,), (1402506728,), (1402506833,), (1402506720,), (1402506721,), (1402506722,), (1402506723,), (1402506726,), (1402506781,), (1402506788,), (1402506803,), (1402506805,), (1402506808,), (1402506814,), (1402506822,), (1402506824,), (1402506827,), (1402506843,), (1402506844,), (1402506846,), (1402506848,), (1402506850,), (1402506908,), (1402506943,), (1402506974,), (1402507004,), (1402507035,), (1402507092,), (1402507240,), (1402507273,), (1402507324,), (1402507326,), (1402507328,), (1402507330,), (1402507333,), (1402507348,), (1402507350,), (1402507352,), (1402507354,), (1402507358,), (1402507359,), (1402507372,), (1402507374,), (1402507376,), (1402507378,), (1402507419,), (1402507421,), (1402507442,), (1402507444,), (1402507446,), (1402507448,), (1402507499,), (1402507503,), (1402507505,), (1402507507,), (1402507510,), (1402507525,), (1402507526,), (1402507528,), (1402507530,), (1402507534,), (1402507537,), (1402507564,), (1402507566,), (1402507568,), (1402507570,), (1402507692,), (1402507729,), (1402507764,), (1402507798,), (1402507937,), (1402507938,), (1402507973,), (1402507977,), (1402508008,), (1402508013,), (1402508698,), (1402508759,), (1402508801,), (1402508836,), (1402508614,), (1402508647,), (1402509235,), (1402509267,), (1402509341,), (1402509473,), (1402509475,), (1402509477,), (1402509478,), (1402509483,), (1402509725,), (1402509742,), (1402510307,), (1402510308,), (1402510410,), (1402510412,), (1402510429,), (1402510432,), (1402511321,), (1402511318,), (1402511319,), (1402511353,), (1402511355,), (1402511356,), (1402511357,), (1402511360,), (1402511415,), (1402511418,), (1402511420,), (1402511522,), (1402511962,), (1402511727,), (1402511990,), (1402511997,), (1402512001,), (1402512004,), (1402512011,), (1402512031,), (1402512089,), (1402512110,), (1402512112,), (1402512114,), (1402512116,), (1402512120,), (1402512173,), (1402512151,), (1402512152,), (1402512161,), (1402512165,), (1402512194,), (1402512195,), (1402512196,), (1402512198,), (1402512388,), (1402512389,), (1402512390,), (1402512413,), (1402512414,), (1402512415,), (1402512417,), (1402512422,), (1402512438,), (1402512439,), (1402512441,), (1402512443,), (1402512447,), (1402512464,), (1402512467,), (1402512472,), (1402512476,), (1402512480,), (1402512483,), (1402512496,), (1402512497,), (1402512498,), (1402512499,), (1402512501,), (1402512521,), (1402512523,), (1402512529,), (1402512534,), (1402512536,), (1402512580,), (1402512582,), (1402512583,), (1402512611,), (1402512614,), (1402512616,), (1402512619,), (1402512623,), (1402512641,), (1402512642,), (1402512645,), (1402512646,), (1402512664,), (1402512665,), (1402512668,), (1402512671,), (1402512675,), (1402512699,), (1402512701,), (1402512704,), (1402512707,), (1402512745,), (1402512780,), (1402512816,), (1402512850,), (1402512994,), (1402513029,), (1402513064,), (1402513264,), (1402513265,), (1402513291,), (1402513296,), (1402513235,), (1402513237,), (1402513257,), (1402513263,), (1402513282,), (1402513284,), (1402513288,), (1402513310,), (1402513311,), (1402513313,), (1402513316,), (1402513320,), (1402513325,), (1402513804,), (1402513805,), (1402513808,), (1402514081,), (1402514083,), (1402514085,), (1402514088,), (1402514103,), (1402514105,), (1402514107,), (1402514109,), (1402514137,), (1402514140,), (1402514155,), (1402514176,), (1402514187,), (1402514257,), (1402514261,), (1402514267,), (1402514270,), (1402514280,), (1402514313,), (1402514314,), (1402514316,), (1402514319,), (1402514349,), (1402514351,), (1402514353,), (1402514354,), (1402514822,), (1402514826,), (1402514844,), (1402515059,), (1402515080,), (1402515081,), (1402515139,), (1402515140,), (1402515142,), (1402515143,), (1402515182,), (1402515307,), (1402515175,), (1402515177,), (1402515178,), (1402515179,), (1402515235,), (1402515267,), (1402515285,), (1402515288,), (1402515291,), (1402515296,), (1402515301,), (1402515304,), (1402515313,), (1402515333,), (1402515367,), (1402515758,), (1402515760,), (1402515762,), (1402515763,), (1402515776,), (1402515807,), (1402516043,), (1402516062,), (1402516065,), (1402516066,), (1402516197,), (1402516232,), (1402516516,), (1402516519,), (1402516531,), (1402516541,), (1402516547,), (1402516570,), (1402516576,), (1402516579,), (1402516584,), (1402516651,), (1402516655,), (1402516659,), (1402516684,), (1402516720,), (1402517027,), (1402517028,), (1402517032,), (1402517256,), (1402517257,), (1402517260,), (1402517266,), (1402517297,), (1402517553,), (1402517602,), (1402517646,), (1402517689,), (1402517749,), (1402517756,), (1402517758,), (1402517802,), (1402517805,), (1402517807,), (1402517808,), (1402517809,), (1402517810,), (1402517999,), (1402518022,), (1402518025,), (1402518048,), (1402518051,), (1402518061,), (1402518157,), (1402518127,), (1402518154,), (1402518176,), (1402518177,), (1402518180,), (1402518181,), (1402518185,), (1402518213,), (1402518215,), (1402518219,), (1402518221,), (1402518225,), (1402518247,), (1402518250,), (1402518252,), (1402518255,), (1402518299,), (1402518301,), (1402518302,), (1402518325,), (1402518331,), (1402518339,), (1402518344,), (1402518350,), (1402518392,), (1402518399,), (1402518418,), (1402518425,), (1402518429,), (1402518431,), (1402518436,), (1402518438,), (1402518443,), (1402518446,), (1402518455,), (1402518459,), (1402518461,), (1402518463,), (1402518526,), (1402518541,), (1402518546,), (1402518556,), (1402518559,), (1402518889,), (1402518890,), (1402518891,), (1402518892,), (1402518895,), (1402518914,), (1402518951,), (1402518959,), (1402518960,), (1402518961,), (1402518963,), (1402518983,), (1402519054,), (1402519061,), (1402519064,), (1402519066,), (1402519068,), (1402519109,), (1402519110,), (1402519111,), (1402519113,), (1402519117,), (1402519313,), (1402519346,), (1402519380,), (1402519414,), (1402519561,), (1402519550,), (1402519552,), (1402519554,), (1402519584,), (1402519585,), (1402519587,), (1402519591,), (1402519599,), (1402519619,), (1402519621,), (1402519622,), (1402519624,), (1402519628,), (1402519874,), (1402519878,), (1402519901,), (1402519903,), (1402519907,), (1402519995,), (1402519997,), (1402520001,), (1402520003,), (1402520007,), (1402520042,), (1402520045,), (1402520049,), (1402520051,), (1402520054,), (1402520057,), (1402520070,), (1402520071,), (1402520079,), (1402520106,), (1402520109,), (1402520112,), (1402520121,), (1402520126,), (1402520284,), (1402520285,), (1402520294,), (1402520302,), (1402520425,), (1402520458,), (1402520489,), (1402520606,), (1402520610,), (1402520612,), (1402520617,), (1402520620,), (1402520623,), (1402520634,), (1402520636,), (1402520637,), (1402520640,), (1402520645,), (1402520647,), (1402520658,), (1402520660,), (1402520661,), (1402520720,), (1402520722,), (1402520723,), (1402520726,), (1402520731,), (1402520918,), (1402520962,), (1402521002,), (1402521046,), (1402521084,), (1402521089,), (1402521159,), (1402521166,), (1402521175,), (1402521261,), (1402521262,), (1402521288,), (1402521291,), (1402521252,), (1402521254,), (1402521255,), (1402521260,), (1402521269,), (1402521273,), (1402521277,), (1402521282,), (1402521302,), (1402521303,), (1402521306,), (1402521309,), (1402521341,), (1402521343,), (1402521347,), (1402521351,), (1402521680,), (1402521714,), (1402521747,), (1402521785,), (1402521821,), (1402521852,), (1402522360,), (1402522370,), (1402522652,), (1402522654,), (1402522656,), (1402522675,), (1402522713,), (1402522749,), (1402522913,), (1402522977,), (1402523042,), (1402523072,), (1402523091,), (1402523234,), (1402523236,), (1402523238,), (1402523241,), (1402523314,), (1402523319,), (1402523326,), (1402523333,), (1402523337,), (1402523364,), (1402523368,), (1402523387,), (1402523391,), (1402528187,), (1402532830,), (1402532842,), (1402532843,), (1402532846,), (1402532847,), (1402532850,), (1402532863,), (1402532864,), (1402532866,), (1402532867,), (1402532898,), (1402532899,), (1402532901,), (1402532918,), (1402532979,), (1402532980,), (1402532982,), (1402532983,), (1402532987,), (1402533140,), (1402533163,), (1402533166,), (1402533168,), (1402533170,), (1402533173,), (1402533211,), (1402533213,), (1402533218,), (1402533333,), (1402533336,), (1402533342,), (1402533349,), (1402533327,), (1402533329,), (1402533331,), (1402533350,), (1402533351,), (1402533353,), (1402533355,), (1402533357,), (1402533368,), (1402533369,), (1402533445,), (1402533925,), (1402534235,), (1402534258,), (1402534438,), (1402534439,), (1402534440,), (1402534441,), (1402534444,), (1402534458,), (1402534461,), (1402534463,), (1402534467,), (1402534471,), (1402534502,), (1402534514,), (1402534530,), (1402534532,), (1402534534,), (1402534536,), (1402534539,), (1402534678,), (1402534711,), (1402534739,), (1402534741,), (1402534745,), (1402534765,), (1402534767,), (1402534768,), (1402534770,), (1402534774,), (1402534866,), (1402534862,), (1402534864,), (1402534901,), (1402534902,), (1402534903,), (1402534904,), (1402534906,), (1402534927,), (1402534928,), (1402534929,), (1402534951,), (1402534953,), (1402534954,), (1402534956,), (1402534958,), (1402534986,), (1402534987,), (1402534988,), (1402534989,), (1402534992,), (1402535071,), (1402535072,), (1402535074,), (1402535075,), (1402535100,), (1402535101,), (1402535103,), (1402535104,), (1402535132,), (1402535139,), (1402535143,), (1402535147,), (1402535154,), (1402535198,), (1402535200,), (1402535201,), (1402535220,), (1402535226,), (1402535252,), (1402535253,), (1402535254,), (1402535256,), (1402535288,), (1402535289,), (1402535291,), (1402535292,), (1402535309,), (1402535314,), (1402535318,), (1402535338,), (1402535341,), (1402535345,), (1402535372,), (1402535377,), (1402535379,), (1402535382,), (1402535385,), (1402535397,), (1402535409,), (1402535417,), (1402535432,), (1402535902,), (1402535865,), (1402536532,), (1402536606,), (1402536680,), (1402536736,), (1402536794,), (1402536840,), (1402537186,), (1402537187,), (1402537190,), (1402537197,), (1402537235,), (1402537549,), (1402537583,), (1402537601,), (1402537633,), (1402537635,), (1402537639,), (1402537696,), (1402537899,), (1402537907,), (1402537911,), (1402537920,), (1402537945,), (1402537948,), (1402537965,), (1402537967,), (1402537970,), (1402537990,), (1402537992,), (1402537996,), (1402538029,), (1402538031,), (1402538035,), (1402538055,), (1402538060,), (1402538163,), (1402538212,), (1402538216,), (1402538219,), (1402538222,), (1402538244,), (1402538246,), (1402538250,), (1402538253,), (1402538256,), (1402538272,), (1402538319,), (1402538330,), (1402538340,), (1402538353,), (1402538354,), (1402538355,), (1402538405,), (1402538406,), (1402538413,), (1402538476,), (1402538501,), (1402538502,), (1402538524,), (1402538526,), (1402538529,), (1402538578,), (1402538570,), (1402538571,), (1402538572,), (1402538574,), (1402538598,), (1402538600,), (1402538602,), (1402538637,), (1402538639,), (1402538642,), (1402538645,), (1402538689,), (1402538691,), (1402538696,), (1402538697,), (1402538703,), (1402538726,), (1402538728,), (1402538730,), (1402538733,), (1402538761,), (1402538763,), (1402538765,), (1402538769,), (1402538772,), (1402538834,), (1402538836,), (1402538842,), (1402538845,), (1402538850,), (1402538869,), (1402538870,), (1402538872,), (1402538874,), (1402538878,), (1402538910,), (1402538912,), (1402538915,), (1402538939,), (1402538940,), (1402538944,), (1402538947,), (1402538951,), (1402538955,), (1402538981,), (1402538986,), (1402538990,), (1402539007,), (1402539008,), (1402539027,), (1402539030,), (1402539036,), (1402539087,), (1402539104,), (1402539112,), (1402539123,), (1402539131,), (1402539134,), (1402539166,), (1402539172,), (1402539208,), (1402539211,), (1402539215,), (1402539217,), (1402539255,), (1402539246,), (1402539248,), (1402539249,), (1402539250,), (1402539253,), (1402539393,), (1402539396,), (1402539405,), (1402539441,), (1402539444,), (1402539446,), (1402539459,), (1402539463,), (1402539545,), (1402539547,), (1402539550,), (1402539552,), (1402539556,), (1402539565,), (1402539649,), (1402539654,), (1402539656,), (1402539679,), (1402539864,), (1402539871,), (1402539872,), (1402539873,), (1402540018,), (1402540058,), (1402540146,), (1402540220,), (1402540290,), (1402540369,), (1402540372,), (1402540373,), (1402540377,), (1402540382,), (1402540389,), (1402540443,), (1402540445,), (1402540453,), (1402540538,), (1402540539,), (1402540567,), (1402540570,), (1402540629,), (1402540630,), (1402540733,), (1402540772,), (1402540801,), (1402540818,), (1402540825,), (1402540898,), (1402540902,), (1402540913,), (1402540917,), (1402540930,), (1402540942,), (1402541159,), (1402541157,), (1402541158,), (1402541431,), (1402541547,), (1402541548,), (1402541549,), (1402541753,), (1402541836,), (1402541839,), (1402541862,), (1402541864,), (1402541866,), (1402541868,), (1402541947,), (1402541955,), (1402541968,), (1402541975,), (1402542075,), (1402542079,), (1402542082,), (1402542100,), (1402542105,), (1402542108,), (1402542109,), (1402542183,), (1402542184,), (1402542209,), (1402542216,), (1402542223,), (1402542225,), (1402542163,), (1402542164,), (1402542167,), (1402542168,), (1402542171,), (1402542172,), (1402542175,), (1402542176,), (1402542179,), (1402542180,), (1402542185,), (1402542186,), (1402542187,), (1402542191,), (1402542194,), (1402542198,), (1402542244,), (1402542276,), (1402542315,), (1402542317,), (1402542319,), (1402542321,), (1402542324,), (1402542328,), (1402542343,), (1402542355,), (1402542360,), (1402542364,), (1402542369,), (1402542373,), (1402542382,), (1402542384,), (1402542411,), (1402542420,), (1402542428,), (1402542431,), (1402542436,), (1402542500,), (1402542536,), (1402542568,), (1402542578,), (1402542777,), (1402542820,), (1402542999,), (1402543001,), (1402543004,), (1402543007,), (1402543011,), (1402543015,), (1402543031,), (1402543032,), (1402543034,), (1402543038,), (1402543044,), (1402543048,), (1402543074,), (1402543075,), (1402543076,), (1402543077,), (1402544566,), (1402544619,), (1402544620,), (1402544632,), (1402544666,), (1402544699,), (1402544895,), (1402544897,), (1402544907,), (1402544913,), (1402544929,), (1402544934,), (1402544941,), (1402544943,), (1402545453,), (1402545451,), (1402545452,), (1402545463,), (1402545464,), (1402545466,), (1402545476,), (1402545477,), (1402545489,), (1402545490,), (1402545492,), (1402545494,), (1402545496,), (1402545503,), (1402545504,), (1402545505,), (1402545507,), (1402545520,), (1402545521,), (1402545522,), (1402545527,), (1402545624,), (1402545625,), (1402545626,), (1402545628,), (1402545631,), (1402545656,), (1402545657,), (1402545658,), (1402545659,), (1402545670,), (1402545671,), (1402545672,), (1402545687,), (1402545691,), (1402545706,), (1402545708,), (1402545711,), (1402545713,), (1402545723,), (1402545726,), (1402545728,), (1402545731,), (1402545740,), (1402545742,), (1402545765,), (1402545767,), (1402545769,), (1402545771,), (1402545773,), (1402545774,), (1402545778,), (1402545779,), (1402545780,), (1402545781,), (1402545784,), (1402545786,), (1402545788,), (1402545790,), (1402545799,), (1402545800,), (1402545801,), (1402545803,), (1402545806,), (1402545808,), (1402545849,), (1402545850,), (1402545851,), (1402545864,), (1402545869,), (1402545935,), (1402545959,), (1402546032,), (1402546033,), (1402546034,), (1402546036,), (1402546058,), (1402546059,), (1402546060,), (1402546062,), (1402546070,), (1402546071,), (1402546072,), (1402546075,), (1402546078,), (1402546124,), (1402546125,), (1402546126,), (1402546133,), (1402546134,), (1402546135,), (1402546137,), (1402546141,), (1402546153,), (1402546154,), (1402546156,), (1402546158,), (1402546160,), (1402546162,), (1402546168,), (1402546169,), (1402546170,), (1402546186,), (1402546187,), (1402546189,), (1402546191,), (1402546194,), (1402546284,), (1402546295,), (1402546297,), (1402546300,), (1402546303,), (1402546306,), (1402546772,), (1402548246,), (1402546653,), (1402546689,), (1402546723,), (1402547732,), (1402547806,), (1402547836,), (1402547897,), (1402547964,), (1402548028,), (1402548191,), (1402548192,), (1402548215,), (1402548428,), (1402548500,), (1402548568,), (1402548630,), (1402548692,), (1402549108,), (1402549121,), (1402549538,), (1402549553,), (1402549572,), (1402549573,), (1402549576,), (1402549646,), (1402549647,), (1402549648,), (1402549649,), (1402549651,), (1402549668,), (1402549669,), (1402549670,), (1402549672,), (1402549687,), (1402550046,), (1402550075,), (1402550106,), (1402550139,), (1402550486,), (1402550597,), (1402550703,), (1402551470,), (1402551480,), (1402551512,), (1402551524,), (1402551580,), (1402552128,), (1402552194,), (1402552263,), (1402552339,), (1402552416,), (1402552454,), (1402552592,), (1402552593,), (1402552598,), (1402552603,), (1402552612,), (1402552614,), (1402552646,), (1402552865,), (1402552887,), (1402552889,), (1402552893,), (1402552927,), (1402552950,), (1402552990,), (1402553006,), (1402553010,), (1402553011,), (1402553013,), (1402553085,), (1402553086,), (1402553087,), (1402553089,), (1402553094,), (1402553123,), (1402553358,), (1402553249,), (1402553250,), (1402553262,), (1402553300,), (1402553341,), (1402553397,), (1402553398,), (1402553437,), (1402553446,), (1402553451,), (1402553459,), (1402553461,), (1402553463,), (1402553482,), (1402553484,), (1402553485,), (1402553488,), (1402553490,), (1402553492,), (1402553657,), (1402553694,), (1402553727,), (1402553794,), (1402553795,), (1402553797,), (1402553801,), (1402553803,), (1402553805,), (1402553819,), (1402553820,), (1402553821,), (1402553839,), (1402553841,), (1402553843,), (1402553845,), (1402553847,), (1402553968,), (1402553970,), (1402553974,), (1402553982,), (1402553988,), (1402554044,), (1402554046,), (1402554049,), (1402554084,), (1402554085,), (1402554086,), (1402554088,), (1402554157,), (1402554189,), (1402554222,), (1402554253,), (1402554293,), (1402554495,), (1402554499,), (1402554502,), (1402554510,), (1402554519,), (1402554573,), (1402554580,), (1402554592,), (1402554655,), (1402554657,), (1402554659,), (1402554662,), (1402554665,), (1402554668,), (1402554688,), (1402554692,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05012026': {'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([29967529]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655] map_info['map_portfolio_photo'] : {29967529: [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655, 1402554592, 1402554580, 1402554573, 1402554519, 1402554510, 1402554502, 1402554499, 1402554495, 1402554293, 1402554253, 1402554222, 1402554189, 1402554157, 1402554088, 1402554086, 1402554085, 1402554084, 1402554049, 1402554046, 1402554044, 1402553988, 1402553982, 1402553974, 1402553970, 1402553968, 1402553847, 1402553845, 1402553843, 1402553841, 1402553839, 1402553821, 1402553820, 1402553819, 1402553805, 1402553803, 1402553801, 1402553797, 1402553795, 1402553794, 1402553727, 1402553694, 1402553657, 1402553492, 1402553490, 1402553488, 1402553485, 1402553484, 1402553482, 1402553463, 1402553461, 1402553459, 1402553451, 1402553446, 1402553437, 1402553398, 1402553397, 1402553341, 1402553300, 1402553262, 1402553250, 1402553249]} final : True mtd_id 4302 list_pids : [1402554692, 1402554688, 1402554668, 1402554665, 1402554662, 1402554659, 1402554657, 1402554655] Looping around the photos to save general results len do output : 1 /29967529Didn'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, '4313749') ('4302', '29967529', '1402554692', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554688', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554668', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554665', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554662', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554659', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554657', None, None, None, None, None, '4313749') ('4302', None, None, None, None, None, None, None, '4313749') ('4302', '29967529', '1402554655', None, None, None, None, None, '4313749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '29967529', 'None', None, None, None, None, '4313749'), ('4302', '29967529', '1402554692', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554688', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554668', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554665', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554662', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554659', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554657', None, None, None, None, None, '4313749'), ('4302', '29967529', '1402554655', None, None, None, None, None, '4313749')] time used for this insertion : 0.01856684684753418 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.180108070373535 time spend to save output : 0.01884746551513672 total time spend for step 5 : 3.198955535888672 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 (4313749) 2.51user 2.43system 0:15.62elapsed 31%CPU (0avgtext+0avgdata 165988maxresident)k 11320inputs+15768outputs (163major+79384minor)pagefaults 0swaps