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 : 3816253 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 (4314580) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4314580) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973318 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4314580'] with mtr_portfolio_ids : ['29973318'] and first list_photo_ids : [] new path : /proc/3816253/ Name: python3 Umask: 0002 State: R (running) Tgid: 3816253 Ngid: 0 Pid: 3816253 PPid: 3816252 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3816253 NSpid: 3816253 NSpgid: 3814783 NSsid: 3814783 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104384 kB VmRSS: 104384 kB RssAnon: 66300 kB RssFile: 38084 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 612 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: 43 nonvoluntary_ctxt_switches: 20 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3816253', 'Ngid': '0', 'Pid': '3816253', 'PPid': '3816252', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3816253', 'NSpid': '3816253', 'NSpgid': '3814783', 'NSsid': '3814783', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104384 kB', 'VmRSS': '104384 kB', 'RssAnon': '66300 kB', 'RssFile': '38084 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '612 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': '43', 'nonvoluntary_ctxt_switches': '20'} ('datou_batch_current', '3816253', '1113368', '0', '1113368', '872096', '104384', b'', 'marlene', '4314580') 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 (29973318) 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 (4314580 ) ) 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 (29973318) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402570075, 'portfolio_id': 29973318}, {'photo_id': 1402570072, 'portfolio_id': 29973318}, {'photo_id': 1402570070, 'portfolio_id': 29973318}, {'photo_id': 1402570068, 'portfolio_id': 29973318}, {'photo_id': 1402570060, 'portfolio_id': 29973318}, {'photo_id': 1402570059, 'portfolio_id': 29973318}, {'photo_id': 1402570055, 'portfolio_id': 29973318}, {'photo_id': 1402570052, 'portfolio_id': 29973318}, {'photo_id': 1402570050, 'portfolio_id': 29973318}, {'photo_id': 1402570048, 'portfolio_id': 29973318}, {'photo_id': 1402570029, 'portfolio_id': 29973318}, {'photo_id': 1402570027, 'portfolio_id': 29973318}, {'photo_id': 1402570024, 'portfolio_id': 29973318}, {'photo_id': 1402570021, 'portfolio_id': 29973318}, {'photo_id': 1402570019, 'portfolio_id': 29973318}, {'photo_id': 1402570016, 'portfolio_id': 29973318}, {'photo_id': 1402570012, 'portfolio_id': 29973318}, {'photo_id': 1402570011, 'portfolio_id': 29973318}, {'photo_id': 1402570010, 'portfolio_id': 29973318}, {'photo_id': 1402569999, 'portfolio_id': 29973318}, {'photo_id': 1402569997, 'portfolio_id': 29973318}, {'photo_id': 1402569994, 'portfolio_id': 29973318}, {'photo_id': 1402569991, 'portfolio_id': 29973318}, {'photo_id': 1402569988, 'portfolio_id': 29973318}, {'photo_id': 1402569986, 'portfolio_id': 29973318}, {'photo_id': 1402569967, 'portfolio_id': 29973318}, {'photo_id': 1402569964, 'portfolio_id': 29973318}, {'photo_id': 1402569961, 'portfolio_id': 29973318}, {'photo_id': 1402569957, 'portfolio_id': 29973318}, {'photo_id': 1402569943, 'portfolio_id': 29973318}, {'photo_id': 1402569795, 'portfolio_id': 29973318}, {'photo_id': 1402569793, 'portfolio_id': 29973318}, {'photo_id': 1402569781, 'portfolio_id': 29973318}, {'photo_id': 1402569749, 'portfolio_id': 29973318}, {'photo_id': 1402569716, 'portfolio_id': 29973318}, {'photo_id': 1402569683, 'portfolio_id': 29973318}, {'photo_id': 1402569446, 'portfolio_id': 29973318}, {'photo_id': 1402569354, 'portfolio_id': 29973318}, {'photo_id': 1402569311, 'portfolio_id': 29973318}, {'photo_id': 1402568636, 'portfolio_id': 29973318}, {'photo_id': 1402568602, 'portfolio_id': 29973318}, {'photo_id': 1402568567, 'portfolio_id': 29973318}, {'photo_id': 1402568534, 'portfolio_id': 29973318}, {'photo_id': 1402568501, 'portfolio_id': 29973318}, {'photo_id': 1402568360, 'portfolio_id': 29973318}, {'photo_id': 1402568357, 'portfolio_id': 29973318}, {'photo_id': 1402568355, 'portfolio_id': 29973318}, {'photo_id': 1402568352, 'portfolio_id': 29973318}] map_portfolio_id_photo_id: {29973318: [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048, 1402570029, 1402570027, 1402570024, 1402570021, 1402570019, 1402570016, 1402570012, 1402570011, 1402570010, 1402569999, 1402569997, 1402569994, 1402569991, 1402569988, 1402569986, 1402569967, 1402569964, 1402569961, 1402569957, 1402569943, 1402569795, 1402569793, 1402569781, 1402569749, 1402569716, 1402569683, 1402569446, 1402569354, 1402569311, 1402568636, 1402568602, 1402568567, 1402568534, 1402568501, 1402568360, 1402568357, 1402568355, 1402568352]} ##### 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.0187222957611084 #### 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 20:10:57 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 (29973318) 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 : 29973318 get user id for portfolio 29973318 get sub ptf for main ptf 29973318, type 3726 and hashtags ['plastique', 'flou', 'metal', 'environnement', 'papier', 'kraft', 'autre_refus', 'Carton_gris', 'Teint_Dans_La_Masse', 'Carton_brun', 'mal_croppe', 'cartonnette'] 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`=29973318 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','metal','environnement','papier','kraft','autre_refus','Carton_gris','Teint_Dans_La_Masse','Carton_brun','mal_croppe','cartonnette')) 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`=29973318 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','metal','environnement','papier','kraft','autre_refus','Carton_gris','Teint_Dans_La_Masse','Carton_brun','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29973318, 'sub_port_id': 29973343, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511319, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}, 'autre_refus': {'main_port_id': 29973318, 'sub_port_id': 29973344, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511320, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}, 'papier': {'main_port_id': 29973318, 'sub_port_id': 29973345, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511321, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}, 'Carton_gris': {'main_port_id': 29973318, 'sub_port_id': 29973346, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511322, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29973318, 'sub_port_id': 29973347, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511323, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}, 'environnement': {'main_port_id': 29973318, 'sub_port_id': 29973348, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511324, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}, 'metal': {'main_port_id': 29973318, 'sub_port_id': 29973349, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511325, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}, 'plastique': {'main_port_id': 29973318, 'sub_port_id': 29973350, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511326, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}, 'kraft': {'main_port_id': 29973318, 'sub_port_id': 29973351, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511327, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}, 'flou': {'main_port_id': 29973318, 'sub_port_id': 29973352, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511328, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}, 'cartonnette': {'main_port_id': 29973318, 'sub_port_id': 29973353, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511329, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}, 'mal_croppe': {'main_port_id': 29973318, 'sub_port_id': 29973354, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511330, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973343 , 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=29973318 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 (29973343) result : ((1402569929,), (1402569931,), (1402570112,), (1402570113,), (1402570114,), (1402570115,), (1402570122,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973344 , 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=29973318 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 (29973344) result : ((1402569900,), (1402570076,), (1402570106,), (1402570107,), (1402570108,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973345 , 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=29973318 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 (29973345) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973346 , 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=29973318 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 (29973346) result : ((1402569909,), (1402570077,), (1402570110,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973347 , 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=29973318 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 (29973347) result : ((1402569891,), (1402570099,), (1402570100,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973348 , 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=29973318 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 (29973348) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973349 , 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=29973318 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 (29973349) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973350 , 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=29973318 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 (29973350) result : ((1402569941,), (1402570083,), (1402570084,), (1402570085,), (1402570086,), (1402570087,), (1402570088,), (1402570089,), (1402570090,), (1402570091,), (1402570092,), (1402570116,), (1402570117,), (1402570118,), (1402570119,), (1402570124,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973351 , 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=29973318 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 (29973351) result : ((1402569942,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973352 , 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=29973318 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 (29973352) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973353 , 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=29973318 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 (29973353) result : ((1402569919,), (1402570079,), (1402570081,), (1402570111,), (1402570120,), (1402570121,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29973354 , 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=29973318 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 (29973354) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29973318) result : ((1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29973318 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','metal','environnement','papier','kraft','autre_refus','Carton_gris','Teint_Dans_La_Masse','Carton_brun','mal_croppe','cartonnette')) 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`=29973318 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','metal','environnement','papier','kraft','autre_refus','Carton_gris','Teint_Dans_La_Masse','Carton_brun','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29973318, 'sub_port_id': 29973358, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511331, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}, 'autre_refus': {'main_port_id': 29973318, 'sub_port_id': 29973359, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511332, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}, 'papier': {'main_port_id': 29973318, 'sub_port_id': 29973360, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511333, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}, 'Carton_gris': {'main_port_id': 29973318, 'sub_port_id': 29973361, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511334, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 29973318, 'sub_port_id': 29973362, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511335, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}, 'environnement': {'main_port_id': 29973318, 'sub_port_id': 29973363, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511336, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}, 'metal': {'main_port_id': 29973318, 'sub_port_id': 29973364, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511337, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}, 'plastique': {'main_port_id': 29973318, 'sub_port_id': 29973365, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511338, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}, 'kraft': {'main_port_id': 29973318, 'sub_port_id': 29973366, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511339, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}, 'flou': {'main_port_id': 29973318, 'sub_port_id': 29973367, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511340, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}, 'cartonnette': {'main_port_id': 29973318, 'sub_port_id': 29973368, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511341, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 3, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}, 'mal_croppe': {'main_port_id': 29973318, 'sub_port_id': 29973369, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20511342, 'last_updated_at': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 5, 20, 8, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 5, 20, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973360,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973345 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973361,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973346 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973362,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973347 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973363,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973348 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973364,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973349 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973365,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973350 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973366,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973351 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973367,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973352 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973368,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973353 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29973369,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29973354 lien utilise dans velours : https://marlene.fotonower.com/velours/29973358,29973359,29973360,29973361,29973362,29973363,29973364,29973365,29973366,29973367,29973368,29973369?tags=Carton_brun,autre_refus,papier,Carton_gris,Teint_Dans_La_Masse,environnement,metal,plastique,kraft,flou,cartonnette,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29973318]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048] map_info['map_portfolio_photo'] : {29973318: [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048, 1402570029, 1402570027, 1402570024, 1402570021, 1402570019, 1402570016, 1402570012, 1402570011, 1402570010, 1402569999, 1402569997, 1402569994, 1402569991, 1402569988, 1402569986, 1402569967, 1402569964, 1402569961, 1402569957, 1402569943, 1402569795, 1402569793, 1402569781, 1402569749, 1402569716, 1402569683, 1402569446, 1402569354, 1402569311, 1402568636, 1402568602, 1402568567, 1402568534, 1402568501, 1402568360, 1402568357, 1402568355, 1402568352]} final : False mtd_id 4302 list_pids : [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048] Looping around the photos to save general results len do output : 1 /29973318. 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, '4314580') ('4302', '29973318', '1402570075', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570072', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570070', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570068', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570060', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570059', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570055', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570052', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570050', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570048', None, None, None, None, None, '4314580') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '29973318', "{'Carton_brun': 29973343, 'autre_refus': 29973344, 'papier': 29973345, 'Carton_gris': 29973346, 'Teint_Dans_La_Masse': 29973347, 'environnement': 29973348, 'metal': 29973349, 'plastique': 29973350, 'kraft': 29973351, 'flou': 29973352, 'cartonnette': 29973353, 'mal_croppe': 29973354}", None, None, None, None, '4314580'), ('4302', '29973318', '1402570075', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570072', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570070', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570068', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570060', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570059', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570055', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570052', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570050', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570048', None, None, None, None, None, '4314580')] time used for this insertion : 0.016323328018188477 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8696098327636719 time spend to save output : 0.016652584075927734 total time spend for step 1 : 1.8862624168395996 step2:final Mon Jan 5 20:10: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 ! 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 (29973318) 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 29973318 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402568360,1402568357,1402568355,1402568352,1402568636,1402568602,1402568567,1402568534,1402568501,1402569446,1402569354,1402569311,1402569795,1402569793,1402569781,1402569749,1402569716,1402569683,1402569967,1402570012,1402569964,1402570011,1402569961,1402570010,1402569957,1402569999,1402569943,1402569997,1402569994,1402569991,1402569988,1402569986,1402570029,1402570027,1402570024,1402570021,1402570019,1402570016,1402570060,1402570059,1402570055,1402570052,1402570050,1402570048,1402570075,1402570072,1402570070,1402570068); 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([29973318]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} new output for save of step final : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048] map_info['map_portfolio_photo'] : {29973318: [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048, 1402570029, 1402570027, 1402570024, 1402570021, 1402570019, 1402570016, 1402570012, 1402570011, 1402570010, 1402569999, 1402569997, 1402569994, 1402569991, 1402569988, 1402569986, 1402569967, 1402569964, 1402569961, 1402569957, 1402569943, 1402569795, 1402569793, 1402569781, 1402569749, 1402569716, 1402569683, 1402569446, 1402569354, 1402569311, 1402568636, 1402568602, 1402568567, 1402568534, 1402568501, 1402568360, 1402568357, 1402568355, 1402568352]} final : False mtd_id 4302 list_pids : [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048] Looping around the photos to save general results len do output : 10 /1402570075.Didn't retrieve data . /1402570072.Didn't retrieve data . /1402570070.Didn't retrieve data . /1402570068.Didn't retrieve data . /1402570060.Didn't retrieve data . /1402570059.Didn't retrieve data . /1402570055.Didn't retrieve data . /1402570052.Didn't retrieve data . /1402570050.Didn't retrieve data . /1402570048.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, '4314580') ('4302', '29973318', '1402570075', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570072', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570070', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570068', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570060', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570059', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570055', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570052', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570050', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570048', None, None, None, None, None, '4314580') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '29973318', '1402570075', '0.06283149316372623', None, None, None, None, '4314580'), ('4302', '29973318', '1402570072', '0.06283149316372623', None, None, None, None, '4314580'), ('4302', '29973318', '1402570070', '0.06283149316372623', None, None, None, None, '4314580'), ('4302', '29973318', '1402570068', '0.06283149316372623', None, None, None, None, '4314580'), ('4302', '29973318', '1402570060', '0.06283149316372623', None, None, None, None, '4314580'), ('4302', '29973318', '1402570059', '0.06283149316372623', None, None, None, None, '4314580'), ('4302', '29973318', '1402570055', '0.06283149316372623', None, None, None, None, '4314580'), ('4302', '29973318', '1402570052', '0.06283149316372623', None, None, None, None, '4314580'), ('4302', '29973318', '1402570050', '0.06283149316372623', None, None, None, None, '4314580'), ('4302', '29973318', '1402570048', '0.06283149316372623', None, None, None, None, '4314580')] time used for this insertion : 0.015507936477661133 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07973098754882812 time spend to save output : 0.0160825252532959 total time spend for step 2 : 0.09581351280212402 step3:velours_tree Mon Jan 5 20:10: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 complete output_args for input 0 : {29973318: [{'Carton_brun': 29973343, 'autre_refus': 29973344, 'papier': 29973345, 'Carton_gris': 29973346, 'Teint_Dans_La_Masse': 29973347, 'environnement': 29973348, 'metal': 29973349, 'plastique': 29973350, 'kraft': 29973351, 'flou': 29973352, 'cartonnette': 29973353, 'mal_croppe': 29973354}]} input_args_next_step : {29973318: ()} output_args : {29973318: [{'Carton_brun': 29973343, 'autre_refus': 29973344, 'papier': 29973345, 'Carton_gris': 29973346, 'Teint_Dans_La_Masse': 29973347, 'environnement': 29973348, 'metal': 29973349, 'plastique': 29973350, 'kraft': 29973351, 'flou': 29973352, 'cartonnette': 29973353, 'mal_croppe': 29973354}]} args : 29973318 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 : ({'Carton_brun': 29973343, 'autre_refus': 29973344, 'papier': 29973345, 'Carton_gris': 29973346, 'Teint_Dans_La_Masse': 29973347, 'environnement': 29973348, 'metal': 29973349, 'plastique': 29973350, 'kraft': 29973351, 'flou': 29973352, 'cartonnette': 29973353, 'mal_croppe': 29973354},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29973318) 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([29973318]) 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.24931645393371582 time spend to save output : 5.078315734863281e-05 total time spend for step 3 : 0.24936723709106445 step4:send_mail_cod Mon Jan 5 20:11:00 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 : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} input_args_next_step : {1402570075: ()} output_args : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} args : 1402570075 depend.output_id : 0 input_args_next_step : {1402570075: ('0.06283149316372623',), 1402570072: ()} output_args : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} args : 1402570072 depend.output_id : 0 input_args_next_step : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ()} output_args : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} args : 1402570070 depend.output_id : 0 input_args_next_step : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ()} output_args : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} args : 1402570068 depend.output_id : 0 input_args_next_step : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ()} output_args : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} args : 1402570060 depend.output_id : 0 input_args_next_step : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ()} output_args : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} args : 1402570059 depend.output_id : 0 input_args_next_step : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ()} output_args : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} args : 1402570055 depend.output_id : 0 input_args_next_step : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ()} output_args : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} args : 1402570052 depend.output_id : 0 input_args_next_step : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ()} output_args : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} args : 1402570050 depend.output_id : 0 input_args_next_step : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ()} output_args : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',)} args : 1402570048 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 : {29973318: [{'Carton_brun': 29973343, 'autre_refus': 29973344, 'papier': 29973345, 'Carton_gris': 29973346, 'Teint_Dans_La_Masse': 29973347, 'environnement': 29973348, 'metal': 29973349, 'plastique': 29973350, 'kraft': 29973351, 'flou': 29973352, 'cartonnette': 29973353, 'mal_croppe': 29973354}]} input_args_next_step : {1402570075: ('0.06283149316372623',), 1402570072: ('0.06283149316372623',), 1402570070: ('0.06283149316372623',), 1402570068: ('0.06283149316372623',), 1402570060: ('0.06283149316372623',), 1402570059: ('0.06283149316372623',), 1402570055: ('0.06283149316372623',), 1402570052: ('0.06283149316372623',), 1402570050: ('0.06283149316372623',), 1402570048: ('0.06283149316372623',), 29973318: ()} output_args : {29973318: [{'Carton_brun': 29973343, 'autre_refus': 29973344, 'papier': 29973345, 'Carton_gris': 29973346, 'Teint_Dans_La_Masse': 29973347, 'environnement': 29973348, 'metal': 29973349, 'plastique': 29973350, 'kraft': 29973351, 'flou': 29973352, 'cartonnette': 29973353, 'mal_croppe': 29973354}]} args : 29973318 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 :11, first value : ('0.06283149316372623',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29973318) 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 (1402570075,1402570072,1402570070,1402570068,1402570060,1402570059,1402570055,1402570052,1402570050,1402570048) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402570048 begin to download photo : 1402570055 begin to download photo : 1402570068 begin to download photo : 1402570075 download finish for photo 1402570048 begin to download photo : 1402570050 download finish for photo 1402570068 begin to download photo : 1402570070 download finish for photo 1402570075 download finish for photo 1402570055 begin to download photo : 1402570059 download finish for photo 1402570050 begin to download photo : 1402570052 download finish for photo 1402570070 begin to download photo : 1402570072 download finish for photo 1402570059 begin to download photo : 1402570060 download finish for photo 1402570072 download finish for photo 1402570052 download finish for photo 1402570060 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P29973318_05-01-2026_20_11_00.pdf 29973344 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=29973344 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402569900: '1767639867_3202083_1402568360_97f221b24f94711699fb422646c590b4_rle_crop_4091220544_0.png', 1402570076: '1767640107_3212298_1402569957_64e14f0a902eefbf48704e670c93d288_rle_crop_4091226143_0.png', 1402570106: '1767640145_3213304_1402569793_61c75c0626e5e185adc0604a3b952168_rle_crop_4091226442_0.png', 1402570107: '1767640145_3213304_1402569781_14e842dc185f21d6eb35d2d896237b78_rle_crop_4091226457_0.png', 1402570108: '1767640145_3213304_1402569716_a797f576b8854abe1b6754179af4994b_rle_crop_4091226514_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/37072f817f8a953318e1b73140f4b492_29596696.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/bb47809c749ef463f5846f9382606967_59449924.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/aacbb719888c030db7daeffdc127097c_54583097.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/4346caba7d83fb946d85be8c05a152d2_14849215.png change filename to text .imagette299733441767640260/ imagette299733441767640260/1767639867_3202083_1402568360_97f221b24f94711699fb422646c590b4_rle_crop_4091220544_0.png.png imagette299733441767640260/1767640107_3212298_1402569957_64e14f0a902eefbf48704e670c93d288_rle_crop_4091226143_0.png.png imagette299733441767640260/1767640145_3213304_1402569716_a797f576b8854abe1b6754179af4994b_rle_crop_4091226514_0.png.png imagette299733441767640260/1767640145_3213304_1402569793_61c75c0626e5e185adc0604a3b952168_rle_crop_4091226442_0.png.png imagette299733441767640260/1767640145_3213304_1402569781_14e842dc185f21d6eb35d2d896237b78_rle_crop_4091226457_0.png.png imagette299733491767640260/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/f969d1806202a19eece7a3b085938944_30830132.png imagette299733441767640260 29973349 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=29973349 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299733491767640260 29973350 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=29973350 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402569941: '1767639867_3202083_1402568352_1365268507e9e54d1d17da564d1dc6b0_rle_crop_4091220593_0.png', 1402570083: '1767640107_3212298_1402569964_56fbbaf0f05c02ab66f11822303b1c1f_rle_crop_4091226109_0.png', 1402570084: '1767640107_3212298_1402569964_56fbbaf0f05c02ab66f11822303b1c1f_rle_crop_4091226106_0.png', 1402570085: '1767640107_3212298_1402569964_56fbbaf0f05c02ab66f11822303b1c1f_rle_crop_4091226110_0.png', 1402570086: '1767640107_3212298_1402569961_58332ba44c293e24b06181a562639f9a_rle_crop_4091226124_0.png', 1402570087: '1767640107_3212298_1402569961_58332ba44c293e24b06181a562639f9a_rle_crop_4091226121_0.png', 1402570088: '1767640107_3212298_1402569961_58332ba44c293e24b06181a562639f9a_rle_crop_4091226122_0.png', 1402570089: '1767640107_3212298_1402569957_64e14f0a902eefbf48704e670c93d288_rle_crop_4091226151_0.png', 1402570090: '1767640107_3212298_1402569957_64e14f0a902eefbf48704e670c93d288_rle_crop_4091226154_0.png', 1402570091: '1767640107_3212298_1402569957_64e14f0a902eefbf48704e670c93d288_rle_crop_4091226145_0.png', 1402570092: '1767640107_3212298_1402569943_a0b56850c24e1062f08dc4a5e878000f_rle_crop_4091226166_0.png', 1402570116: '1767640145_3213304_1402569749_9358f139363e2f31cde703c6accb89bc_rle_crop_4091226487_0.png', 1402570117: '1767640145_3213304_1402569716_a797f576b8854abe1b6754179af4994b_rle_crop_4091226524_0.png', 1402570118: '1767640145_3213304_1402569683_b57d83b9e18f78ed6f3391b01db1773a_rle_crop_4091226651_0.png', 1402570119: '1767640145_3213304_1402569683_b57d83b9e18f78ed6f3391b01db1773a_rle_crop_4091226654_0.png', 1402570124: '1767640167_3213815_1402568567_e92dab6db24bb90303fb2b7d6acf04c1_rle_crop_4091226789_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/2d499d44b9e832f0dd4236905f6863ea_9313890.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/edf36b928f080c884f693ead8b85860f_61791158.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/543845a3329a1d60bff098e1b9acedd0_53891901.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/7543682b588f093a21194ec1319e237d_23720641.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/5f54eec428cff64c8594325d8b037c0d_95855345.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/e9f0cefbde7e852ab98402c10a1650e2_74347194.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/d02587cd76aa24e7a9b2bacd2df0740c_24484350.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/738d2796304a9474311583a77fb9de17_15285044.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/25da7918d964d99f35396baaf48a7334_78796247.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/2af0f7587a43459fe5d5adbabd3d18c7_35078209.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/bcb8dbabf699f30ea85590a32e1538f2_40234317.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/206b736b7586285a4a1a2ecbec68e528_36219043.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/e0f472a646cf8cbf3f320c0055495f0c_47728109.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/17287f1528f2a8fc6f87c2c4df64c981_38259609.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/532185936699bad5023102df07b01ce4_51030037.png change filename to text .imagette299733501767640260/ imagette299733501767640260/1767640107_3212298_1402569961_58332ba44c293e24b06181a562639f9a_rle_crop_4091226121_0.png.png imagette299733501767640260/1767640107_3212298_1402569943_a0b56850c24e1062f08dc4a5e878000f_rle_crop_4091226166_0.png.png imagette299733501767640260/1767640107_3212298_1402569957_64e14f0a902eefbf48704e670c93d288_rle_crop_4091226151_0.png.png imagette299733501767640260/1767639867_3202083_1402568352_1365268507e9e54d1d17da564d1dc6b0_rle_crop_4091220593_0.png.png imagette299733501767640260/1767640145_3213304_1402569683_b57d83b9e18f78ed6f3391b01db1773a_rle_crop_4091226651_0.png.png imagette299733501767640260/1767640145_3213304_1402569683_b57d83b9e18f78ed6f3391b01db1773a_rle_crop_4091226654_0.png.png imagette299733501767640260/1767640107_3212298_1402569961_58332ba44c293e24b06181a562639f9a_rle_crop_4091226122_0.png.png imagette299733501767640260/1767640107_3212298_1402569964_56fbbaf0f05c02ab66f11822303b1c1f_rle_crop_4091226110_0.png.png imagette299733501767640260/1767640107_3212298_1402569964_56fbbaf0f05c02ab66f11822303b1c1f_rle_crop_4091226109_0.png.png imagette299733501767640260/1767640145_3213304_1402569716_a797f576b8854abe1b6754179af4994b_rle_crop_4091226524_0.png.png imagette299733501767640260/1767640167_3213815_1402568567_e92dab6db24bb90303fb2b7d6acf04c1_rle_crop_4091226789_0.png.png imagette299733501767640260/1767640107_3212298_1402569957_64e14f0a902eefbf48704e670c93d288_rle_crop_4091226154_0.png.png imagette299733501767640260/1767640107_3212298_1402569964_56fbbaf0f05c02ab66f11822303b1c1f_rle_crop_4091226106_0.png.png imagette299733501767640260/1767640107_3212298_1402569957_64e14f0a902eefbf48704e670c93d288_rle_crop_4091226145_0.png.png imagette299733501767640260/1767640145_3213304_1402569749_9358f139363e2f31cde703c6accb89bc_rle_crop_4091226487_0.png.png imagette299733501767640260/1767640107_3212298_1402569961_58332ba44c293e24b06181a562639f9a_rle_crop_4091226124_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/ab2e3f236e282aa360e18eb61daf2ad8_18728075.png imagette299733501767640260 29973351 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=29973351 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402569942: '1767639867_3202083_1402568355_a0aae429bbd4efc8f818092108445e44_rle_crop_4091220577_0.png'} change filename to text .imagette299733511767640262/ imagette299733511767640262/1767639867_3202083_1402568355_a0aae429bbd4efc8f818092108445e44_rle_crop_4091220577_0.png.png imagette299733521767640262/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/fe103aecd3b3e6b3525ab2f754d078b4_85371417.png imagette299733511767640262 29973352 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=29973352 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299733521767640262 29973353 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=29973353 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402569919: '1767639867_3202083_1402568357_37298da804f4568367b6c313b42c64dc_rle_crop_4091220560_0.png', 1402570079: '1767640107_3212298_1402569943_a0b56850c24e1062f08dc4a5e878000f_rle_crop_4091226158_0.png', 1402570081: '1767640107_3212298_1402569943_a0b56850c24e1062f08dc4a5e878000f_rle_crop_4091226159_0.png', 1402570111: '1767640145_3213304_1402569793_61c75c0626e5e185adc0604a3b952168_rle_crop_4091226450_0.png', 1402570120: '1767640167_3213815_1402568602_fe14a389adac7d9ea9af5bdbbe714a1d_rle_crop_4091226772_0.png', 1402570121: '1767640167_3213815_1402568501_7f2c9504c61eb0219b3ab63155e1c300_rle_crop_4091226849_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/6af6e113a9ed8145dd70382ff6a06c7a_57866943.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/5d91b56803ec22bd8c92d77ca33039e9_98485499.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/0e6d3d0fd152519a5311b339a9089423_78261688.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/520bb291240474ce1966723c4212ca3b_77826246.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/993d8b98a753ae4a298b964b62151930_59536970.png change filename to text .imagette299733531767640262/ imagette299733531767640262/1767639867_3202083_1402568357_37298da804f4568367b6c313b42c64dc_rle_crop_4091220560_0.png.png imagette299733531767640262/1767640145_3213304_1402569793_61c75c0626e5e185adc0604a3b952168_rle_crop_4091226450_0.png.png imagette299733531767640262/1767640107_3212298_1402569943_a0b56850c24e1062f08dc4a5e878000f_rle_crop_4091226159_0.png.png imagette299733531767640262/1767640107_3212298_1402569943_a0b56850c24e1062f08dc4a5e878000f_rle_crop_4091226158_0.png.png imagette299733531767640262/1767640167_3213815_1402568602_fe14a389adac7d9ea9af5bdbbe714a1d_rle_crop_4091226772_0.png.png imagette299733531767640262/1767640167_3213815_1402568501_7f2c9504c61eb0219b3ab63155e1c300_rle_crop_4091226849_0.png.png imagette299733541767640262/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/4d1c5cf57d7f09e4e910e13de39a89f5_8572059.png imagette299733531767640262 29973354 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=29973354 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299733541767640262 29973343 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=29973343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402569929: '1767639867_3202083_1402568360_97f221b24f94711699fb422646c590b4_rle_crop_4091220550_0.png', 1402569931: '1767639867_3202083_1402568357_37298da804f4568367b6c313b42c64dc_rle_crop_4091220564_0.png', 1402570112: '1767640145_3213304_1402569793_61c75c0626e5e185adc0604a3b952168_rle_crop_4091226449_0.png', 1402570113: '1767640145_3213304_1402569793_61c75c0626e5e185adc0604a3b952168_rle_crop_4091226448_0.png', 1402570114: '1767640145_3213304_1402569716_a797f576b8854abe1b6754179af4994b_rle_crop_4091226521_0.png', 1402570115: '1767640145_3213304_1402569716_a797f576b8854abe1b6754179af4994b_rle_crop_4091226518_0.png', 1402570122: '1767640167_3213815_1402568534_22b8114e86be34975204c035052a90e8_rle_crop_4091226823_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/5f30ad809845da7800bc9b4d04078f4e_77944005.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/64b8a8c617ae51ec1b5f4b8944227558_33800724.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/d7c7e5d6a27ae0bb64e8e9d79068e16e_56487025.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/f2ae723bfe3614d4b9fa6db254f18991_79306228.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/68b83afcd515f7483763479c1820f7ec_27543985.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/dcf0a605a85d8e425ccdfe50bfca9c2d_79846154.png change filename to text .imagette299733431767640262/ imagette299733431767640262/1767640145_3213304_1402569716_a797f576b8854abe1b6754179af4994b_rle_crop_4091226521_0.png.png imagette299733431767640262/1767640145_3213304_1402569793_61c75c0626e5e185adc0604a3b952168_rle_crop_4091226448_0.png.png imagette299733431767640262/1767640145_3213304_1402569716_a797f576b8854abe1b6754179af4994b_rle_crop_4091226518_0.png.png imagette299733431767640262/1767639867_3202083_1402568360_97f221b24f94711699fb422646c590b4_rle_crop_4091220550_0.png.png imagette299733431767640262/1767640167_3213815_1402568534_22b8114e86be34975204c035052a90e8_rle_crop_4091226823_0.png.png imagette299733431767640262/1767640145_3213304_1402569793_61c75c0626e5e185adc0604a3b952168_rle_crop_4091226449_0.png.png imagette299733431767640262/1767639867_3202083_1402568357_37298da804f4568367b6c313b42c64dc_rle_crop_4091220564_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/38456b55aa91e9c79c779c4b7516208a_84798422.png imagette299733431767640262 29973346 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=29973346 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402569909: '1767639867_3202083_1402568352_1365268507e9e54d1d17da564d1dc6b0_rle_crop_4091220596_0.png', 1402570077: '1767640107_3212298_1402569957_64e14f0a902eefbf48704e670c93d288_rle_crop_4091226146_0.png', 1402570110: '1767640145_3213304_1402569749_9358f139363e2f31cde703c6accb89bc_rle_crop_4091226486_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/6ef98192300977013ed5a93548a8719c_45421906.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/827e8f053c172cd33efc13a02bb5d9ca_60333159.png change filename to text .imagette299733461767640263/ imagette299733461767640263/1767640145_3213304_1402569749_9358f139363e2f31cde703c6accb89bc_rle_crop_4091226486_0.png.png imagette299733461767640263/1767640107_3212298_1402569957_64e14f0a902eefbf48704e670c93d288_rle_crop_4091226146_0.png.png imagette299733461767640263/1767639867_3202083_1402568352_1365268507e9e54d1d17da564d1dc6b0_rle_crop_4091220596_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/ac816644bca0a537d86bd638a8d47c77_98904312.png imagette299733461767640263 29973347 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=29973347 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402569891: '1767639867_3202083_1402568355_a0aae429bbd4efc8f818092108445e44_rle_crop_4091220580_0.png', 1402570099: '1767640145_3213304_1402569781_14e842dc185f21d6eb35d2d896237b78_rle_crop_4091226460_0.png', 1402570100: '1767640145_3213304_1402569749_9358f139363e2f31cde703c6accb89bc_rle_crop_4091226490_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/3fa0d0459dcb3d31a623eef085a188c4_31944592.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/f3914e867c28b43514c2fe240db69ef4_12699119.png change filename to text .imagette299733471767640263/ imagette299733471767640263/1767640145_3213304_1402569749_9358f139363e2f31cde703c6accb89bc_rle_crop_4091226490_0.png.png imagette299733471767640263/1767639867_3202083_1402568355_a0aae429bbd4efc8f818092108445e44_rle_crop_4091220580_0.png.png imagette299733471767640263/1767640145_3213304_1402569781_14e842dc185f21d6eb35d2d896237b78_rle_crop_4091226460_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/5de4d98842526ea7ef77efbd35715804_70704255.png imagette299733471767640263 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29973318 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29973358,29973359,29973360,29973361,29973362,29973363,29973364,29973365,29973366,29973367,29973368,29973369?tags=Carton_brun,autre_refus,papier,Carton_gris,Teint_Dans_La_Masse,environnement,metal,plastique,kraft,flou,cartonnette,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1402570075] : ('0.06283149316372623',) no score found for photo 1402570075 We are sending mail with results at report@fotonower.com args[1402570072] : ('0.06283149316372623',) no score found for photo 1402570072 We are sending mail with results at report@fotonower.com args[1402570070] : ('0.06283149316372623',) no score found for photo 1402570070 We are sending mail with results at report@fotonower.com args[1402570068] : ('0.06283149316372623',) no score found for photo 1402570068 We are sending mail with results at report@fotonower.com args[1402570060] : ('0.06283149316372623',) no score found for photo 1402570060 We are sending mail with results at report@fotonower.com args[1402570059] : ('0.06283149316372623',) no score found for photo 1402570059 We are sending mail with results at report@fotonower.com args[1402570055] : ('0.06283149316372623',) no score found for photo 1402570055 We are sending mail with results at report@fotonower.com args[1402570052] : ('0.06283149316372623',) no score found for photo 1402570052 We are sending mail with results at report@fotonower.com args[1402570050] : ('0.06283149316372623',) no score found for photo 1402570050 We are sending mail with results at report@fotonower.com args[1402570048] : ('0.06283149316372623',) no score found for photo 1402570048 We are sending mail with results at report@fotonower.com refus_total : 0.06283149316372623 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=29973318 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_P29973318_05-01-2026_20_11_00.pdf results_Auto_P29973318_05-01-2026_20_11_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29973318_05-01-2026_20_11_00.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','29973318','results_Auto_P29973318_05-01-2026_20_11_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29973318_05-01-2026_20_11_00.pdf','pdf','','0.24','0.06283149316372623') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29973318]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048] map_info['map_portfolio_photo'] : {29973318: [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048, 1402570029, 1402570027, 1402570024, 1402570021, 1402570019, 1402570016, 1402570012, 1402570011, 1402570010, 1402569999, 1402569997, 1402569994, 1402569991, 1402569988, 1402569986, 1402569967, 1402569964, 1402569961, 1402569957, 1402569943, 1402569795, 1402569793, 1402569781, 1402569749, 1402569716, 1402569683, 1402569446, 1402569354, 1402569311, 1402568636, 1402568602, 1402568567, 1402568534, 1402568501, 1402568360, 1402568357, 1402568355, 1402568352]} final : False mtd_id 4302 list_pids : [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048] 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, '4314580') ('4302', '29973318', '1402570075', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570072', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570070', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570068', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570060', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570059', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570055', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570052', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570050', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570048', None, None, None, None, None, '4314580') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '29973318', '1402570075', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570072', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570070', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570068', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570060', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570059', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570055', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570052', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570050', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570048', None, None, None, None, None, '4314580')] time used for this insertion : 0.017972469329833984 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.914443016052246 time spend to save output : 0.018236637115478516 total time spend for step 4 : 4.932679653167725 step5:split_time_score Mon Jan 5 20:11:05 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 : ['29973318'] 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 : [('29973318',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29973318) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402570075: {'path': 'temp/1767640260_3816253_1402570075_b19d09c980d29f6466528c7a453dc719.jpg', 'extension': 'jpg'}, 1402570068: {'path': 'temp/1767640260_3816253_1402570068_05615bbb0a0c6e37711da774bd8aa938.jpg', 'extension': 'jpg'}, 1402570070: {'path': 'temp/1767640260_3816253_1402570070_48fc4f119b45299adba501d0c59eceab.jpg', 'extension': 'jpg'}, 1402570072: {'path': 'temp/1767640260_3816253_1402570072_ceca4f34bff2c0cd8e392461d1b157de.jpg', 'extension': 'jpg'}, 1402570048: {'path': 'temp/1767640260_3816253_1402570048_976949a74f8ec8042ee4747ffcc2b2ef.jpg', 'extension': 'jpg'}, 1402570050: {'path': 'temp/1767640260_3816253_1402570050_b09a8d6da7582424c8b21472358fbc83.jpg', 'extension': 'jpg'}, 1402570052: {'path': 'temp/1767640260_3816253_1402570052_5462f99a1c09caa796d36822cb3ff503.jpg', 'extension': 'jpg'}, 1402570055: {'path': 'temp/1767640260_3816253_1402570055_a25faa418737fa8a4bfb11f259103183.jpg', 'extension': 'jpg'}, 1402570059: {'path': 'temp/1767640260_3816253_1402570059_81f9babfdf0651e50f06f7fd6fc343c8.jpg', 'extension': 'jpg'}, 1402570060: {'path': 'temp/1767640260_3816253_1402570060_63a298a940f4267af573ea788adb9b74.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 = 29973318; (('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 = 29973318 group by h (('20', 48),) 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=29973318 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 (29973318) 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 (29973318) 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 29973318 Nombre de photos uploadées : 48 / 23040 (0%) 05012026 29973318 Nombre de photos taguées (types de déchets): 0 / 48 (0%) 05012026 29973318 Nombre de photos taguées (volume) : 0 / 48 (0%) [{'photo_id': 1402568360, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/97f221b24f94711699fb422646c590b4.jpg', 'username': None, 'uploaded_at': 1767639668, 'text': 'image_05012026_20_00_14_010192m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1402568357, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/37298da804f4568367b6c313b42c64dc.jpg', 'username': None, 'uploaded_at': 1767639668, 'text': 'image_05012026_20_00_24_010141m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1402568355, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/a0aae429bbd4efc8f818092108445e44.jpg', 'username': None, 'uploaded_at': 1767639668, 'text': 'image_05012026_20_00_34_010143m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1402568352, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/5/1365268507e9e54d1d17da564d1dc6b0.jpg', 'username': None, 'uploaded_at': 1767639668, 'text': 'image_05012026_20_00_45_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023000240325927734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29973318, '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.2563600540161133 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': 2852748, 'mtr_portfolio_id': 29943959, 'dashboard_result_id': 19052713, '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': 2852748, 'mtr_portfolio_id': 29944115, 'dashboard_result_id': 19052714, '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': 2852748, 'mtr_portfolio_id': 29944510, 'dashboard_result_id': 19052715, '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': 2852748, 'mtr_portfolio_id': 29944916, 'dashboard_result_id': 19052716, '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': 2852748, 'mtr_portfolio_id': 29945305, 'dashboard_result_id': 19052717, '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': 2852748, 'mtr_portfolio_id': 29945724, 'dashboard_result_id': 19052718, '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': 2852748, 'mtr_portfolio_id': 29946229, 'dashboard_result_id': 19052719, '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': 2852748, 'mtr_portfolio_id': 29946669, 'dashboard_result_id': 19052720, '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': 2852748, 'mtr_portfolio_id': 29947066, 'dashboard_result_id': 19052721, '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': 2852748, 'mtr_portfolio_id': 29947777, 'dashboard_result_id': 19052722, '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': 2852748, 'mtr_portfolio_id': 29948502, 'dashboard_result_id': 19052723, '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': 2852748, 'mtr_portfolio_id': 29949018, 'dashboard_result_id': 19052724, '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': 2852748, 'mtr_portfolio_id': 29949468, 'dashboard_result_id': 19052725, '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': 2852748, 'mtr_portfolio_id': 29950325, 'dashboard_result_id': 19052726, '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': 2852748, 'mtr_portfolio_id': 29950757, 'dashboard_result_id': 19052727, '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': 2852748, 'mtr_portfolio_id': 29951361, 'dashboard_result_id': 19052728, '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': 2852748, 'mtr_portfolio_id': 29952807, 'dashboard_result_id': 19052729, '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': 2852748, 'mtr_portfolio_id': 29953273, 'dashboard_result_id': 19052730, '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': 2852748, 'mtr_portfolio_id': 29953685, 'dashboard_result_id': 19052731, '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': 2852748, 'mtr_portfolio_id': 29954426, 'dashboard_result_id': 19052732, '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': 2852748, 'mtr_portfolio_id': 29954814, 'dashboard_result_id': 19052733, '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': 2852748, 'mtr_portfolio_id': 29954934, 'dashboard_result_id': 19052734, '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': 2852748, 'mtr_portfolio_id': 29955397, 'dashboard_result_id': 19052735, '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': 2852748, 'mtr_portfolio_id': 29956118, 'dashboard_result_id': 19052736, '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': 2852748, 'mtr_portfolio_id': 29956847, 'dashboard_result_id': 19052737, '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': 2852748, 'mtr_portfolio_id': 29957432, 'dashboard_result_id': 19052738, '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': 2852748, 'mtr_portfolio_id': 29958094, 'dashboard_result_id': 19052739, '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': 2852748, 'mtr_portfolio_id': 29960855, 'dashboard_result_id': 19052740, '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': 2852748, 'mtr_portfolio_id': 29960983, 'dashboard_result_id': 19052741, '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': 2852748, 'mtr_portfolio_id': 29961530, 'dashboard_result_id': 19052742, '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': 2852748, 'mtr_portfolio_id': 29962056, 'dashboard_result_id': 19052743, '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': 2852748, 'mtr_portfolio_id': 29962633, 'dashboard_result_id': 19052744, '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': 2852748, 'mtr_portfolio_id': 29963242, 'dashboard_result_id': 19052745, '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': 2852748, 'mtr_portfolio_id': 29963903, 'dashboard_result_id': 19052746, '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': 2852748, 'mtr_portfolio_id': 29964465, 'dashboard_result_id': 19052747, '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': 2852748, 'mtr_portfolio_id': 29965338, 'dashboard_result_id': 19052748, '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': 2852748, 'mtr_portfolio_id': 29965614, 'dashboard_result_id': 19052749, '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': 2852748, 'mtr_portfolio_id': 29966302, 'dashboard_result_id': 19052750, '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': 2852748, 'mtr_portfolio_id': 29966600, 'dashboard_result_id': 19052751, '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': 2852748, 'mtr_portfolio_id': 29967529, 'dashboard_result_id': 19052752, '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_18_02_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}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2852748, 'mtr_portfolio_id': 29968800, 'dashboard_result_id': 19052753, '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_P29968800_05-01-2026_18_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29968813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29968814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29968815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29968816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29968817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29968818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29968819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29968820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29968821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29968822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29968823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29968824, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2852748, 'mtr_portfolio_id': 29969245, 'dashboard_result_id': 19052754, '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_P29969245_05-01-2026_18_35_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29969260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29969261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29969262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29969263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29969264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29969265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29969266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29969267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29969268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29969269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29969270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29969271, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2852748, 'mtr_portfolio_id': 29969805, 'dashboard_result_id': 19052755, '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_P29969805_05-01-2026_18_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29969809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29969811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29969812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29969813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29969814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29969815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29969816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29969817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29969818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29969819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29969820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29969821, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2852748, 'mtr_portfolio_id': 29970253, 'dashboard_result_id': 19052756, '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_P29970253_05-01-2026_19_04_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29970267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29970268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29970269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29970270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29970271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29970272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29970273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29970274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29970275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29970276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29970277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29970278, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2852748, 'mtr_portfolio_id': 29970794, 'dashboard_result_id': 19052757, '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_P29970794_05-01-2026_19_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29970858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29970859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29970860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29970861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29970862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29970863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29970864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29970865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29970866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29970867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29970868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29970869, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2852748, 'mtr_portfolio_id': 29971778, 'dashboard_result_id': 19052758, '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_P29971778_05-01-2026_19_35_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29971792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29971793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29971794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29971795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29971796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29971797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29971798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29971799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29971800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29971801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29971802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29971803, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2852748, 'mtr_portfolio_id': 29972238, 'dashboard_result_id': 19052759, '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_P29972238_05-01-2026_19_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29972274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29972275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29972276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29972277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29972278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29972279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29972280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29972281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29972282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29972283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29972284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29972285, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2852748, 'mtr_portfolio_id': 29972838, 'dashboard_result_id': 19052760, '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_P29972838_05-01-2026_20_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29972878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29972879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29972880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29972881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29972882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29972883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29972884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29972885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29972886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29972887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29972888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29972889, 'pht': 3726}}"}, {'dashboat_entry_day': 2841756, 'dashboard_run_id': 2852748, 'mtr_portfolio_id': 29973318, 'dashboard_result_id': 19052761, '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_P29973318_05-01-2026_20_09_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29973343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29973344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29973345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29973346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29973347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29973348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29973349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29973350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29973351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29973352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29973353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29973354, '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 = 2852748 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 (19052713, 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 = 2852748 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 (19052714, 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 = 2852748 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 (19052715, 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 = 2852748 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 (19052716, 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 = 2852748 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 (19052717, 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 = 2852748 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 (19052718, 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 = 2852748 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 (19052719, 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 = 2852748 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 (19052720, 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 = 2852748 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 (19052721, 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 = 2852748 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 (19052722, 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 = 2852748 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 (19052723, 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 = 2852748 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 (19052724, 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 = 2852748 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 (19052725, 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 = 2852748 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 (19052726, 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 = 2852748 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 (19052727, 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 = 2852748 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 (19052728, 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 = 2852748 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 (19052729, 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 = 2852748 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 (19052730, 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 = 2852748 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 (19052731, 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 = 2852748 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 (19052732, 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 = 2852748 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 (19052733, 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 = 2852748 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 (19052734, 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 = 2852748 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 (19052735, 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 = 2852748 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 (19052736, 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 = 2852748 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 (19052737, 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 = 2852748 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 (19052738, 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 = 2852748 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 (19052739, 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 = 2852748 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 (19052740, 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 = 2852748 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 (19052741, 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 = 2852748 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 (19052742, 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 = 2852748 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 (19052743, 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 = 2852748 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 (19052744, 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 = 2852748 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 (19052745, 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 = 2852748 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 (19052746, 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 = 2852748 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 (19052747, 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 = 2852748 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 (19052748, 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 = 2852748 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 (19052749, 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 = 2852748 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 (19052750, 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 = 2852748 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 (19052751, 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, 18, 2, 59), 'result': '0.05107611619208426', 'result_long': None, 'result_double': None}] Qualite : 0.05107611619208426 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_18_02_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_18_02_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 = 2852748 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 (19052752, 0.05107611619208426, "{'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_18_02_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 mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29968800 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': 4313934, 'mtr_portfolio_id': 29968800, 'created_at': datetime.datetime(2026, 1, 5, 18, 18, 59), 'result': '0.040104352059711634', 'result_long': None, 'result_double': None}] Qualite : 0.040104352059711634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29968800 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29968800_05-01-2026_18_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29968800 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_P29968800_05-01-2026_18_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29968813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29968814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29968815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29968816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29968817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29968818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29968819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29968820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29968821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29968822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29968823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29968824, 'pht': 3726}}" where mtr_portfolio_id = 29968800 and dashboard_run_id = 2852748 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`=29968800 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19052753, 0.040104352059711634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29968800_05-01-2026_18_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29968813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29968814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29968815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29968816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29968817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29968818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29968819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29968820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29968821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29968822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29968823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29968824, '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 = 29969245 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': 4313983, 'mtr_portfolio_id': 29969245, 'created_at': datetime.datetime(2026, 1, 5, 18, 35, 31), 'result': '0.04345417299819999', 'result_long': None, 'result_double': None}] Qualite : 0.04345417299819999 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29969245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29969245_05-01-2026_18_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29969245 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_P29969245_05-01-2026_18_35_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29969260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29969261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29969262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29969263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29969264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29969265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29969266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29969267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29969268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29969269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29969270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29969271, 'pht': 3726}}" where mtr_portfolio_id = 29969245 and dashboard_run_id = 2852748 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`=29969245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19052754, 0.04345417299819999, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29969245_05-01-2026_18_35_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29969260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29969261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29969262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29969263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29969264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29969265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29969266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29969267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29969268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29969269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29969270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29969271, '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 = 29969805 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': 4314062, 'mtr_portfolio_id': 29969805, 'created_at': datetime.datetime(2026, 1, 5, 18, 48, 58), 'result': '0.054164265602348854', 'result_long': None, 'result_double': None}] Qualite : 0.054164265602348854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29969805 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29969805_05-01-2026_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29969805 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_P29969805_05-01-2026_18_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29969809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29969811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29969812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29969813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29969814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29969815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29969816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29969817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29969818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29969819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29969820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29969821, 'pht': 3726}}" where mtr_portfolio_id = 29969805 and dashboard_run_id = 2852748 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`=29969805 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19052755, 0.054164265602348854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29969805_05-01-2026_18_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29969809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29969811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29969812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29969813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29969814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29969815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29969816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29969817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29969818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29969819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29969820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29969821, '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 = 29970253 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': 4314126, 'mtr_portfolio_id': 29970253, 'created_at': datetime.datetime(2026, 1, 5, 19, 4, 32), 'result': '0.06883433269304322', 'result_long': None, 'result_double': None}] Qualite : 0.06883433269304322 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29970253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29970253_05-01-2026_19_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29970253 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_P29970253_05-01-2026_19_04_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29970267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29970268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29970269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29970270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29970271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29970272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29970273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29970274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29970275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29970276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29970277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29970278, 'pht': 3726}}" where mtr_portfolio_id = 29970253 and dashboard_run_id = 2852748 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`=29970253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19052756, 0.06883433269304322, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29970253_05-01-2026_19_04_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29970267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29970268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29970269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29970270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29970271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29970272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29970273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29970274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29970275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29970276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29970277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29970278, '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 = 29970794 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': 4314225, 'mtr_portfolio_id': 29970794, 'created_at': datetime.datetime(2026, 1, 5, 19, 21), 'result': '0.049395863605624785', 'result_long': None, 'result_double': None}] Qualite : 0.049395863605624785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29970794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29970794_05-01-2026_19_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29970794 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_P29970794_05-01-2026_19_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29970858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29970859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29970860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29970861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29970862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29970863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29970864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29970865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29970866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29970867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29970868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29970869, 'pht': 3726}}" where mtr_portfolio_id = 29970794 and dashboard_run_id = 2852748 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`=29970794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19052757, 0.049395863605624785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29970794_05-01-2026_19_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29970858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29970859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29970860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29970861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29970862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29970863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29970864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29970865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29970866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29970867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29970868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29970869, '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 = 29971778 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': 4314331, 'mtr_portfolio_id': 29971778, 'created_at': datetime.datetime(2026, 1, 5, 19, 35, 1), 'result': '0.07742001470540334', 'result_long': None, 'result_double': None}] Qualite : 0.07742001470540334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29971778 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29971778_05-01-2026_19_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29971778 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_P29971778_05-01-2026_19_35_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29971792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29971793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29971794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29971795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29971796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29971797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29971798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29971799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29971800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29971801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29971802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29971803, 'pht': 3726}}" where mtr_portfolio_id = 29971778 and dashboard_run_id = 2852746 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`=29971778 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19052758, 0.07742001470540334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29971778_05-01-2026_19_35_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29971792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29971793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29971794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29971795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29971796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29971797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29971798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29971799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29971800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29971801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29971802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29971803, '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 = 29972238 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': 4314390, 'mtr_portfolio_id': 29972238, 'created_at': datetime.datetime(2026, 1, 5, 19, 48, 58), 'result': '0.05431054080522053', 'result_long': None, 'result_double': None}] Qualite : 0.05431054080522053 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29972238 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29972238_05-01-2026_19_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29972238 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_P29972238_05-01-2026_19_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29972274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29972275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29972276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29972277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29972278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29972279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29972280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29972281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29972282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29972283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29972284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29972285, 'pht': 3726}}" where mtr_portfolio_id = 29972238 and dashboard_run_id = 2852746 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`=29972238 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19052759, 0.05431054080522053, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29972238_05-01-2026_19_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29972274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29972275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29972276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29972277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29972278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29972279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29972280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29972281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29972282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29972283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29972284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29972285, '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 = 29972838 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': 4314475, 'mtr_portfolio_id': 29972838, 'created_at': datetime.datetime(2026, 1, 5, 20, 3, 1), 'result': '0.0943261041865002', 'result_long': None, 'result_double': None}] Qualite : 0.0943261041865002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29972838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29972838_05-01-2026_20_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29972838 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_P29972838_05-01-2026_20_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29972878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29972879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29972880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29972881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29972882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29972883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29972884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29972885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29972886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29972887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29972888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29972889, 'pht': 3726}}" where mtr_portfolio_id = 29972838 and dashboard_run_id = 2852746 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`=29972838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19052760, 0.0943261041865002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29972838_05-01-2026_20_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29972878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29972879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29972880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29972881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29972882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29972883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29972884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29972885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29972886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29972887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29972888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29972889, '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 = 29973318 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': 4314580, 'mtr_portfolio_id': 29973318, 'created_at': datetime.datetime(2026, 1, 5, 20, 10, 59), 'result': '0.06283149316372623', 'result_long': None, 'result_double': None}] Qualite : 0.06283149316372623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29973318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29973318_05-01-2026_20_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29973318 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_P29973318_05-01-2026_20_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29973343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29973344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29973345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29973346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29973347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29973348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29973349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29973350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29973351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29973352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29973353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29973354, 'pht': 3726}}" where mtr_portfolio_id = 29973318 and dashboard_run_id = 2852746 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`=29973318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19052761, 0.06283149316372623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29973318_05-01-2026_20_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29973343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29973344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29973345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29973346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29973347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29973348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29973349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29973350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29973351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29973352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29973353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29973354, '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,29968800,29969245,29969805,29970253,29970794,29971778,29972238,29972838,29973318) 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,), (1402557263,), (1402557244,), (1402557259,), (1402557260,), (1402557262,), (1402557270,), (1402557271,), (1402557272,), (1402557273,), (1402557294,), (1402557310,), (1402557312,), (1402557314,), (1402557316,), (1402557319,), (1402557337,), (1402557339,), (1402557341,), (1402557344,), (1402557368,), (1402557370,), (1402557373,), (1402557375,), (1402557379,), (1402557406,), (1402557408,), (1402557409,), (1402557424,), (1402557426,), (1402557428,), (1402557431,), (1402557435,), (1402557459,), (1402557460,), (1402557462,), (1402557464,), (1402557466,), (1402557478,), (1402557479,), (1402557481,), (1402557482,), (1402557485,), (1402557503,), (1402557504,), (1402557505,), (1402557508,), (1402557511,), (1402557514,), (1402557531,), (1402557533,), (1402557534,), (1402557535,), (1402557536,), (1402557539,), (1402557565,), (1402557566,), (1402557567,), (1402557570,), (1402557573,), (1402557575,), (1402557585,), (1402557587,), (1402557588,), (1402557638,), (1402557629,), (1402557630,), (1402557631,), (1402557633,), (1402557637,), (1402557651,), (1402557652,), (1402557653,), (1402557673,), (1402557679,), (1402557686,), (1402557688,), (1402557719,), (1402557720,), (1402557722,), (1402557741,), (1402557744,), (1402557746,), (1402557749,), (1402557759,), (1402557761,), (1402557764,), (1402557767,), (1402557770,), (1402557803,), (1402557804,), (1402557806,), (1402557808,), (1402557810,), (1402557811,), (1402557817,), (1402557819,), (1402557820,), (1402557824,), (1402557826,), (1402557828,), (1402557847,), (1402557849,), (1402557851,), (1402557854,), (1402557858,), (1402557861,), (1402557873,), (1402557875,), (1402557878,), (1402557879,), (1402557883,), (1402557902,), (1402557903,), (1402557904,), (1402557906,), (1402557910,), (1402557920,), (1402557921,), (1402557923,), (1402557925,), (1402557928,), (1402557931,), (1402557954,), (1402557956,), (1402557958,), (1402557982,), (1402558040,), (1402558041,), (1402558042,), (1402558043,), (1402558046,), (1402558049,), (1402558078,), (1402558088,), (1402558089,), (1402558090,), (1402558092,), (1402558127,), (1402558178,), (1402558123,), (1402558154,), (1402558162,), (1402558164,), (1402558173,), (1402558176,), (1402558203,), (1402558206,), (1402558208,), (1402558210,), (1402558228,), (1402558383,), (1402558391,), (1402558394,), (1402558396,), (1402558399,), (1402558414,), (1402558416,), (1402558418,), (1402558432,), (1402558434,), (1402558435,), (1402558437,), (1402558441,), (1402558459,), (1402558460,), (1402558461,), (1402558463,), (1402558501,), (1402558520,), (1402558521,), (1402558523,), (1402558525,), (1402558527,), (1402558529,), (1402558551,), (1402558553,), (1402558556,), (1402558559,), (1402558562,), (1402558574,), (1402558577,), (1402558578,), (1402558581,), (1402558584,), (1402558586,), (1402558604,), (1402558614,), (1402558624,), (1402558626,), (1402558627,), (1402558629,), (1402558658,), (1402558666,), (1402558674,), (1402558677,), (1402558681,), (1402558684,), (1402558719,), (1402558721,), (1402558723,), (1402558874,), (1402558876,), (1402558879,), (1402558882,), (1402558885,), (1402558887,), (1402558920,), (1402558907,), (1402558909,), (1402558912,), (1402558914,), (1402558918,), (1402558930,), (1402558936,), (1402558938,), (1402558941,), (1402558943,), (1402558967,), (1402558969,), (1402558972,), (1402558974,), (1402558977,), (1402558979,), (1402558993,), (1402558994,), (1402558996,), (1402558999,), (1402559003,), (1402559011,), (1402559041,), (1402559043,), (1402559046,), (1402559048,), (1402559051,), (1402559063,), (1402559065,), (1402559067,), (1402559070,), (1402559073,), (1402559095,), (1402559096,), (1402559098,), (1402559101,), (1402559103,), (1402559105,), (1402559110,), (1402559112,), (1402559114,), (1402559117,), (1402559119,), (1402559122,), (1402559182,), (1402559191,), (1402559201,), (1402559205,), (1402559222,), (1402559228,), (1402559318,), (1402559319,), (1402559320,), (1402559322,), (1402559326,), (1402559348,), (1402559349,), (1402559350,), (1402559368,), (1402559370,), (1402559372,), (1402559375,), (1402559379,), (1402559406,), (1402559408,), (1402559415,), (1402559418,), (1402559420,), (1402559423,), (1402560138,), (1402560198,), (1402560236,), (1402560289,), (1402560495,), (1402560529,), (1402560532,), (1402560778,), (1402561784,), (1402560541,), (1402560546,), (1402560599,), (1402560684,), (1402561475,), (1402561508,), (1402561573,), (1402561613,), (1402561660,), (1402561676,), (1402561691,), (1402561709,), (1402561718,), (1402561741,), (1402561919,), (1402561925,), (1402561928,), (1402561940,), (1402562227,), (1402562262,), (1402562295,), (1402562337,), (1402562372,), (1402562405,), (1402562661,), (1402562663,), (1402562673,), (1402562679,), (1402562717,), (1402562899,), (1402562900,), (1402562901,), (1402562903,), (1402562938,), (1402562974,), (1402563068,), (1402563115,), (1402563580,), (1402563620,), (1402563654,), (1402563656,), (1402563870,), (1402563900,), (1402563918,), (1402564036,), (1402564151,), (1402564688,), (1402564691,), (1402564693,), (1402564718,), (1402564724,), (1402565136,), (1402565138,), (1402565140,), (1402565145,), (1402565153,), (1402565220,), (1402565258,), (1402565259,), (1402565260,), (1402565261,), (1402565264,), (1402565271,), (1402565274,), (1402565276,), (1402565278,), (1402565403,), (1402565407,), (1402565428,), (1402565495,), (1402565500,), (1402565503,), (1402565520,), (1402565522,), (1402565525,), (1402565527,), (1402565531,), (1402565565,), (1402565549,), (1402565554,), (1402565557,), (1402565560,), (1402565562,), (1402565578,), (1402565580,), (1402565606,), (1402565608,), (1402565610,), (1402565613,), (1402565617,), (1402565619,), (1402565642,), (1402565650,), (1402565653,), (1402565655,), (1402565658,), (1402565856,), (1402565892,), (1402565926,), (1402565960,), (1402565996,), (1402565997,), (1402565998,), (1402565999,), (1402566001,), (1402566037,), (1402566040,), (1402566044,), (1402566051,), (1402566068,), (1402566071,), (1402566078,), (1402566079,), (1402566080,), (1402566081,), (1402566094,), (1402566096,), (1402566099,), (1402566121,), (1402566123,), (1402566318,), (1402566355,), (1402566390,), (1402566424,), (1402566460,), (1402566686,), (1402566689,), (1402566727,), (1402566736,), (1402566740,), (1402566841,), (1402566842,), (1402566843,), (1402566845,), (1402566873,), (1402566883,), (1402566885,), (1402566887,), (1402566890,), (1402566893,), (1402566903,), (1402566904,), (1402566905,), (1402566924,), (1402566927,), (1402566928,), (1402566929,), (1402566934,), (1402567073,), (1402567228,), (1402566951,), (1402566952,), (1402566978,), (1402567065,), (1402567070,), (1402567104,), (1402567106,), (1402567107,), (1402567111,), (1402567114,), (1402567116,), (1402567220,), (1402567224,), (1402567263,), (1402567265,), (1402567270,), (1402567274,), (1402567278,), (1402567305,), (1402567464,), (1402567470,), (1402567482,), (1402567488,), (1402567491,), (1402567515,), (1402567517,), (1402567519,), (1402567522,), (1402567525,), (1402567526,), (1402567532,), (1402567534,), (1402567536,), (1402567538,), (1402567543,), (1402567550,), (1402567553,), (1402567617,), (1402567619,), (1402567620,), (1402567622,), (1402567648,), (1402567651,), (1402567654,), (1402567663,), (1402567667,), (1402567693,), (1402567707,), (1402567710,), (1402567713,), (1402567715,), (1402567717,), (1402567733,), (1402567735,), (1402567737,), (1402567740,), (1402567743,), (1402567746,), (1402567763,), (1402567764,), (1402567765,), (1402567766,), (1402567768,), (1402567771,), (1402567774,), (1402567777,), (1402567786,), (1402567787,), (1402567788,), (1402567790,), (1402567793,), (1402567795,), (1402567806,), (1402567809,), (1402567813,), (1402567849,), (1402567850,), (1402567853,), (1402567856,), (1402567859,), (1402567902,), (1402567905,), (1402567911,), (1402567914,), (1402567915,), (1402567916,), (1402567875,), (1402567878,), (1402567895,), (1402567899,), (1402567917,), (1402567919,), (1402567921,), (1402567953,), (1402567954,), (1402567955,), (1402567957,), (1402567959,), (1402568137,), (1402568140,), (1402568142,), (1402568145,), (1402568148,), (1402568159,), (1402568161,), (1402568164,), (1402568171,), (1402568216,), (1402568219,), (1402568222,), (1402568225,), (1402568227,), (1402568229,), (1402568235,), (1402568236,), (1402568237,), (1402568238,), (1402568243,), (1402568245,), (1402568247,), (1402568266,), (1402568268,), (1402568270,), (1402568273,), (1402568276,), (1402568278,), (1402568321,), (1402568326,), (1402568330,), (1402568333,), (1402568364,), (1402568352,), (1402568355,), (1402568357,), (1402568360,), (1402568501,), (1402568534,), (1402568567,), (1402568602,), (1402568636,), (1402569311,), (1402569354,), (1402569446,), (1402569683,), (1402569716,), (1402569749,), (1402569781,), (1402569793,), (1402569795,), (1402569943,), (1402569957,), (1402569961,), (1402569964,), (1402569967,), (1402569986,), (1402569988,), (1402569991,), (1402569994,), (1402569997,), (1402569999,), (1402570010,), (1402570011,), (1402570012,), (1402570016,), (1402570019,), (1402570021,), (1402570024,), (1402570027,), (1402570029,), (1402570048,), (1402570050,), (1402570052,), (1402570055,), (1402570059,), (1402570060,), (1402570068,), (1402570070,), (1402570072,), (1402570075,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05012026': {'nb_upload': 48, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29973318]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048] map_info['map_portfolio_photo'] : {29973318: [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048, 1402570029, 1402570027, 1402570024, 1402570021, 1402570019, 1402570016, 1402570012, 1402570011, 1402570010, 1402569999, 1402569997, 1402569994, 1402569991, 1402569988, 1402569986, 1402569967, 1402569964, 1402569961, 1402569957, 1402569943, 1402569795, 1402569793, 1402569781, 1402569749, 1402569716, 1402569683, 1402569446, 1402569354, 1402569311, 1402568636, 1402568602, 1402568567, 1402568534, 1402568501, 1402568360, 1402568357, 1402568355, 1402568352]} final : True mtd_id 4302 list_pids : [1402570075, 1402570072, 1402570070, 1402570068, 1402570060, 1402570059, 1402570055, 1402570052, 1402570050, 1402570048] Looping around the photos to save general results len do output : 1 /29973318Didn'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, '4314580') ('4302', '29973318', '1402570075', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570072', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570070', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570068', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570060', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570059', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570055', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570052', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570050', None, None, None, None, None, '4314580') ('4302', None, None, None, None, None, None, None, '4314580') ('4302', '29973318', '1402570048', None, None, None, None, None, '4314580') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '29973318', 'None', None, None, None, None, '4314580'), ('4302', '29973318', '1402570075', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570072', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570070', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570068', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570060', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570059', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570055', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570052', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570050', None, None, None, None, None, '4314580'), ('4302', '29973318', '1402570048', None, None, None, None, None, '4314580')] time used for this insertion : 0.01874542236328125 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.6871981620788574 time spend to save output : 0.0189511775970459 total time spend for step 5 : 3.7061493396759033 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 (4314580) 2.19user 2.62system 0:14.27elapsed 33%CPU (0avgtext+0avgdata 166624maxresident)k 152inputs+14552outputs (3major+79798minor)pagefaults 0swaps