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 : 1380813 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 (3320983) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3320983) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191157 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3320983'] with mtr_portfolio_ids : ['25191157'] and first list_photo_ids : [] new path : /proc/1380813/ Name: python3 Umask: 0002 State: R (running) Tgid: 1380813 Ngid: 0 Pid: 1380813 PPid: 1380812 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1380813 NSpid: 1380813 NSpgid: 1379319 NSsid: 1379319 VmPeak: 1106896 kB VmSize: 1106896 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99556 kB VmRSS: 99556 kB RssAnon: 59836 kB RssFile: 39720 kB RssShmem: 0 kB VmData: 865648 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 50 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1380813', 'Ngid': '0', 'Pid': '1380813', 'PPid': '1380812', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1380813', 'NSpid': '1380813', 'NSpgid': '1379319', 'NSsid': '1379319', 'VmPeak': '1106896 kB', 'VmSize': '1106896 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99556 kB', 'VmRSS': '99556 kB', 'RssAnon': '59836 kB', 'RssFile': '39720 kB', 'RssShmem': '0 kB', 'VmData': '865648 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '50', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '1380813', '1106896', '0', '1106896', '865648', '99556', b'', 'marlene', '3320983') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25191157) 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 (3320983 ) ) 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 (25191157) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373190915, 'portfolio_id': 25191157}, {'photo_id': 1373190912, 'portfolio_id': 25191157}, {'photo_id': 1373190910, 'portfolio_id': 25191157}, {'photo_id': 1373190909, 'portfolio_id': 25191157}, {'photo_id': 1373190906, 'portfolio_id': 25191157}, {'photo_id': 1373190903, 'portfolio_id': 25191157}, {'photo_id': 1373190890, 'portfolio_id': 25191157}, {'photo_id': 1373190888, 'portfolio_id': 25191157}, {'photo_id': 1373190886, 'portfolio_id': 25191157}, {'photo_id': 1373190885, 'portfolio_id': 25191157}, {'photo_id': 1373190883, 'portfolio_id': 25191157}, {'photo_id': 1373190881, 'portfolio_id': 25191157}, {'photo_id': 1373190834, 'portfolio_id': 25191157}, {'photo_id': 1373190830, 'portfolio_id': 25191157}, {'photo_id': 1373190828, 'portfolio_id': 25191157}, {'photo_id': 1373190826, 'portfolio_id': 25191157}, {'photo_id': 1373190824, 'portfolio_id': 25191157}, {'photo_id': 1373190820, 'portfolio_id': 25191157}, {'photo_id': 1373190805, 'portfolio_id': 25191157}, {'photo_id': 1373190802, 'portfolio_id': 25191157}, {'photo_id': 1373190800, 'portfolio_id': 25191157}, {'photo_id': 1373190798, 'portfolio_id': 25191157}, {'photo_id': 1373190797, 'portfolio_id': 25191157}, {'photo_id': 1373190795, 'portfolio_id': 25191157}, {'photo_id': 1373190780, 'portfolio_id': 25191157}, {'photo_id': 1373190766, 'portfolio_id': 25191157}, {'photo_id': 1373190764, 'portfolio_id': 25191157}, {'photo_id': 1373190763, 'portfolio_id': 25191157}, {'photo_id': 1373190762, 'portfolio_id': 25191157}, {'photo_id': 1373190760, 'portfolio_id': 25191157}, {'photo_id': 1373190757, 'portfolio_id': 25191157}, {'photo_id': 1373190729, 'portfolio_id': 25191157}, {'photo_id': 1373190699, 'portfolio_id': 25191157}, {'photo_id': 1373190677, 'portfolio_id': 25191157}, {'photo_id': 1373190675, 'portfolio_id': 25191157}, {'photo_id': 1373190674, 'portfolio_id': 25191157}, {'photo_id': 1373190672, 'portfolio_id': 25191157}, {'photo_id': 1373190669, 'portfolio_id': 25191157}, {'photo_id': 1373190666, 'portfolio_id': 25191157}, {'photo_id': 1373190643, 'portfolio_id': 25191157}, {'photo_id': 1373190640, 'portfolio_id': 25191157}, {'photo_id': 1373190638, 'portfolio_id': 25191157}, {'photo_id': 1373190635, 'portfolio_id': 25191157}, {'photo_id': 1373190633, 'portfolio_id': 25191157}, {'photo_id': 1373190630, 'portfolio_id': 25191157}, {'photo_id': 1373190612, 'portfolio_id': 25191157}, {'photo_id': 1373190611, 'portfolio_id': 25191157}, {'photo_id': 1373190609, 'portfolio_id': 25191157}, {'photo_id': 1373190608, 'portfolio_id': 25191157}, {'photo_id': 1373190606, 'portfolio_id': 25191157}, {'photo_id': 1373190604, 'portfolio_id': 25191157}, {'photo_id': 1373190586, 'portfolio_id': 25191157}, {'photo_id': 1373190582, 'portfolio_id': 25191157}, {'photo_id': 1373190578, 'portfolio_id': 25191157}, {'photo_id': 1373190575, 'portfolio_id': 25191157}, {'photo_id': 1373190572, 'portfolio_id': 25191157}, {'photo_id': 1373190565, 'portfolio_id': 25191157}] map_portfolio_id_photo_id: {25191157: [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881, 1373190834, 1373190830, 1373190828, 1373190826, 1373190824, 1373190820, 1373190805, 1373190802, 1373190800, 1373190798, 1373190797, 1373190795, 1373190780, 1373190766, 1373190764, 1373190763, 1373190762, 1373190760, 1373190757, 1373190729, 1373190699, 1373190677, 1373190675, 1373190674, 1373190672, 1373190669, 1373190666, 1373190643, 1373190640, 1373190638, 1373190635, 1373190633, 1373190630, 1373190612, 1373190611, 1373190609, 1373190608, 1373190606, 1373190604, 1373190586, 1373190582, 1373190578, 1373190575, 1373190572, 1373190565]} ##### 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.015333175659179688 #### 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 Tue Jul 22 20:42:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25191157) 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 : 25191157 get user id for portfolio 25191157 get sub ptf for main ptf 25191157, type 3726 and hashtags ['environnement', 'Carton_brun', 'mal_croppe', 'plastique', 'Carton_gris', 'kraft', 'metal', 'autre_refus', 'papier', 'flou', 'cartonnette', 'Teint_Dans_La_Masse'] 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`=25191157 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','mal_croppe','plastique','Carton_gris','kraft','metal','autre_refus','papier','flou','cartonnette','Teint_Dans_La_Masse')) 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`=25191157 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','mal_croppe','plastique','Carton_gris','kraft','metal','autre_refus','papier','flou','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 25191157, 'sub_port_id': 25191165, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991545, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}, 'Carton_gris': {'main_port_id': 25191157, 'sub_port_id': 25191166, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991546, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25191157, 'sub_port_id': 25191167, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991547, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}, 'kraft': {'main_port_id': 25191157, 'sub_port_id': 25191168, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991548, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}, 'environnement': {'main_port_id': 25191157, 'sub_port_id': 25191169, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991549, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}, 'cartonnette': {'main_port_id': 25191157, 'sub_port_id': 25191170, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991550, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}, 'papier': {'main_port_id': 25191157, 'sub_port_id': 25191171, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991551, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}, 'mal_croppe': {'main_port_id': 25191157, 'sub_port_id': 25191172, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991552, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}, 'autre_refus': {'main_port_id': 25191157, 'sub_port_id': 25191173, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991553, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}, 'flou': {'main_port_id': 25191157, 'sub_port_id': 25191174, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991554, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}, 'metal': {'main_port_id': 25191157, 'sub_port_id': 25191175, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991555, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}, 'Carton_brun': {'main_port_id': 25191157, 'sub_port_id': 25191176, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991556, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 32, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191165 , 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=25191157 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 (25191165) result : ((1373190694,), (1373190695,), (1373190696,), (1373190697,), (1373190698,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191166 , 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=25191157 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 (25191166) result : ((1373190691,), (1373190692,), (1373190821,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191167 , 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=25191157 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 (25191167) result : ((1373190721,), (1373190722,), (1373190818,), (1373190819,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191168 , 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=25191157 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 (25191168) result : ((1373190724,), (1373190725,), (1373190823,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191169 , 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=25191157 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 (25191169) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191170 , 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=25191157 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 (25191170) result : ((1373190723,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191171 , 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=25191157 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 (25191171) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191172 , 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=25191157 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 (25191172) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191173 , 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=25191157 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 (25191173) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191174 , 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=25191157 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 (25191174) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191175 , 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=25191157 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 (25191175) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25191176 , 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=25191157 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 (25191176) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25191157) result : ((1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) 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 (1373190800) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25191157 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','mal_croppe','plastique','Carton_gris','kraft','metal','autre_refus','papier','flou','cartonnette','Teint_Dans_La_Masse')) 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`=25191157 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','mal_croppe','plastique','Carton_gris','kraft','metal','autre_refus','papier','flou','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 25191157, 'sub_port_id': 25191177, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991557, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}, 'Carton_gris': {'main_port_id': 25191157, 'sub_port_id': 25191178, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991558, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 25191157, 'sub_port_id': 25191179, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991559, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}, 'kraft': {'main_port_id': 25191157, 'sub_port_id': 25191180, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991560, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}, 'environnement': {'main_port_id': 25191157, 'sub_port_id': 25191181, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991561, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}, 'cartonnette': {'main_port_id': 25191157, 'sub_port_id': 25191182, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991562, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}, 'papier': {'main_port_id': 25191157, 'sub_port_id': 25191183, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991563, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}, 'mal_croppe': {'main_port_id': 25191157, 'sub_port_id': 25191184, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991564, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}, 'autre_refus': {'main_port_id': 25191157, 'sub_port_id': 25191185, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991565, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}, 'flou': {'main_port_id': 25191157, 'sub_port_id': 25191186, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991566, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}, 'metal': {'main_port_id': 25191157, 'sub_port_id': 25191187, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991567, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}, 'Carton_brun': {'main_port_id': 25191157, 'sub_port_id': 25191188, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16991568, 'last_updated_at': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 20, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 20, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191177,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191165 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191178,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191166 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191179,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191167 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191180,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191168 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191181,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191169 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191182,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191170 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191175 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25191188,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25191176 lien utilise dans velours : https://www.fotonower.com/velours/25191177,25191178,25191179,25191180,25191181,25191182,25191183,25191184,25191185,25191186,25191187,25191188?tags=plastique,Carton_gris,Teint_Dans_La_Masse,kraft,environnement,cartonnette,papier,mal_croppe,autre_refus,flou,metal,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25191157]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881] map_info['map_portfolio_photo'] : {25191157: [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881, 1373190834, 1373190830, 1373190828, 1373190826, 1373190824, 1373190820, 1373190805, 1373190802, 1373190800, 1373190798, 1373190797, 1373190795, 1373190780, 1373190766, 1373190764, 1373190763, 1373190762, 1373190760, 1373190757, 1373190729, 1373190699, 1373190677, 1373190675, 1373190674, 1373190672, 1373190669, 1373190666, 1373190643, 1373190640, 1373190638, 1373190635, 1373190633, 1373190630, 1373190612, 1373190611, 1373190609, 1373190608, 1373190606, 1373190604, 1373190586, 1373190582, 1373190578, 1373190575, 1373190572, 1373190565]} final : False mtd_id 4302 list_pids : [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881] Looping around the photos to save general results len do output : 1 /25191157. 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, '3320983') ('4302', '25191157', '1373190915', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190912', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190910', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190909', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190906', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190903', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190890', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190888', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190886', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190885', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190883', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190881', None, None, None, None, None, '3320983') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25191157', "{'plastique': 25191165, 'Carton_gris': 25191166, 'Teint_Dans_La_Masse': 25191167, 'kraft': 25191168, 'environnement': 25191169, 'cartonnette': 25191170, 'papier': 25191171, 'mal_croppe': 25191172, 'autre_refus': 25191173, 'flou': 25191174, 'metal': 25191175, 'Carton_brun': 25191176}", None, None, None, None, '3320983'), ('4302', '25191157', '1373190915', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190912', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190910', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190909', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190906', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190903', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190890', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190888', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190886', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190885', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190883', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190881', None, None, None, None, None, '3320983')] time used for this insertion : 0.014724016189575195 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.44219374656677246 time spend to save output : 0.015004634857177734 total time spend for step 1 : 0.4571983814239502 step2:final Tue Jul 22 20:42:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25191157) 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 25191157 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373190586,1373190582,1373190578,1373190575,1373190572,1373190565,1373190612,1373190611,1373190609,1373190608,1373190606,1373190604,1373190643,1373190640,1373190638,1373190635,1373190633,1373190630,1373190677,1373190675,1373190674,1373190672,1373190669,1373190666,1373190699,1373190729,1373190766,1373190764,1373190763,1373190762,1373190760,1373190757,1373190780,1373190805,1373190802,1373190800,1373190798,1373190797,1373190795,1373190834,1373190830,1373190828,1373190826,1373190824,1373190820,1373190890,1373190888,1373190886,1373190885,1373190883,1373190881,1373190915,1373190912,1373190910,1373190909,1373190906,1373190903); 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([25191157]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} new output for save of step final : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881] map_info['map_portfolio_photo'] : {25191157: [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881, 1373190834, 1373190830, 1373190828, 1373190826, 1373190824, 1373190820, 1373190805, 1373190802, 1373190800, 1373190798, 1373190797, 1373190795, 1373190780, 1373190766, 1373190764, 1373190763, 1373190762, 1373190760, 1373190757, 1373190729, 1373190699, 1373190677, 1373190675, 1373190674, 1373190672, 1373190669, 1373190666, 1373190643, 1373190640, 1373190638, 1373190635, 1373190633, 1373190630, 1373190612, 1373190611, 1373190609, 1373190608, 1373190606, 1373190604, 1373190586, 1373190582, 1373190578, 1373190575, 1373190572, 1373190565]} final : False mtd_id 4302 list_pids : [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881] Looping around the photos to save general results len do output : 12 /1373190915.Didn't retrieve data . /1373190912.Didn't retrieve data . /1373190910.Didn't retrieve data . /1373190909.Didn't retrieve data . /1373190906.Didn't retrieve data . /1373190903.Didn't retrieve data . /1373190890.Didn't retrieve data . /1373190888.Didn't retrieve data . /1373190886.Didn't retrieve data . /1373190885.Didn't retrieve data . /1373190883.Didn't retrieve data . /1373190881.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, '3320983') ('4302', '25191157', '1373190915', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190912', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190910', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190909', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190906', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190903', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190890', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190888', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190886', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190885', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190883', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190881', None, None, None, None, None, '3320983') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '25191157', '1373190915', '0.03217928873998648', None, None, None, None, '3320983'), ('4302', '25191157', '1373190912', '0.03217928873998648', None, None, None, None, '3320983'), ('4302', '25191157', '1373190910', '0.03217928873998648', None, None, None, None, '3320983'), ('4302', '25191157', '1373190909', '0.03217928873998648', None, None, None, None, '3320983'), ('4302', '25191157', '1373190906', '0.03217928873998648', None, None, None, None, '3320983'), ('4302', '25191157', '1373190903', '0.03217928873998648', None, None, None, None, '3320983'), ('4302', '25191157', '1373190890', '0.03217928873998648', None, None, None, None, '3320983'), ('4302', '25191157', '1373190888', '0.03217928873998648', None, None, None, None, '3320983'), ('4302', '25191157', '1373190886', '0.03217928873998648', None, None, None, None, '3320983'), ('4302', '25191157', '1373190885', '0.03217928873998648', None, None, None, None, '3320983'), ('4302', '25191157', '1373190883', '0.03217928873998648', None, None, None, None, '3320983'), ('4302', '25191157', '1373190881', '0.03217928873998648', None, None, None, None, '3320983')] time used for this insertion : 0.013431310653686523 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06500959396362305 time spend to save output : 0.013978242874145508 total time spend for step 2 : 0.07898783683776855 step3:velours_tree Tue Jul 22 20:42:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25191157: [{'plastique': 25191165, 'Carton_gris': 25191166, 'Teint_Dans_La_Masse': 25191167, 'kraft': 25191168, 'environnement': 25191169, 'cartonnette': 25191170, 'papier': 25191171, 'mal_croppe': 25191172, 'autre_refus': 25191173, 'flou': 25191174, 'metal': 25191175, 'Carton_brun': 25191176}]} input_args_next_step : {25191157: ()} output_args : {25191157: [{'plastique': 25191165, 'Carton_gris': 25191166, 'Teint_Dans_La_Masse': 25191167, 'kraft': 25191168, 'environnement': 25191169, 'cartonnette': 25191170, 'papier': 25191171, 'mal_croppe': 25191172, 'autre_refus': 25191173, 'flou': 25191174, 'metal': 25191175, 'Carton_brun': 25191176}]} args : 25191157 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 : ({'plastique': 25191165, 'Carton_gris': 25191166, 'Teint_Dans_La_Masse': 25191167, 'kraft': 25191168, 'environnement': 25191169, 'cartonnette': 25191170, 'papier': 25191171, 'mal_croppe': 25191172, 'autre_refus': 25191173, 'flou': 25191174, 'metal': 25191175, 'Carton_brun': 25191176},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25191157) 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([25191157]) 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.27109432220458984 time spend to save output : 5.245208740234375e-05 total time spend for step 3 : 0.2711467742919922 step4:send_mail_cod Tue Jul 22 20:42:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} input_args_next_step : {1373190915: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190915 depend.output_id : 0 input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190912 depend.output_id : 0 input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190910 depend.output_id : 0 input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190909 depend.output_id : 0 input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190906 depend.output_id : 0 input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190903 depend.output_id : 0 input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190890 depend.output_id : 0 input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190888 depend.output_id : 0 input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190886 depend.output_id : 0 input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190885 depend.output_id : 0 input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190883 depend.output_id : 0 input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ()} output_args : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',)} args : 1373190881 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 : {25191157: [{'plastique': 25191165, 'Carton_gris': 25191166, 'Teint_Dans_La_Masse': 25191167, 'kraft': 25191168, 'environnement': 25191169, 'cartonnette': 25191170, 'papier': 25191171, 'mal_croppe': 25191172, 'autre_refus': 25191173, 'flou': 25191174, 'metal': 25191175, 'Carton_brun': 25191176}]} input_args_next_step : {1373190915: ('0.03217928873998648',), 1373190912: ('0.03217928873998648',), 1373190910: ('0.03217928873998648',), 1373190909: ('0.03217928873998648',), 1373190906: ('0.03217928873998648',), 1373190903: ('0.03217928873998648',), 1373190890: ('0.03217928873998648',), 1373190888: ('0.03217928873998648',), 1373190886: ('0.03217928873998648',), 1373190885: ('0.03217928873998648',), 1373190883: ('0.03217928873998648',), 1373190881: ('0.03217928873998648',), 25191157: ()} output_args : {25191157: [{'plastique': 25191165, 'Carton_gris': 25191166, 'Teint_Dans_La_Masse': 25191167, 'kraft': 25191168, 'environnement': 25191169, 'cartonnette': 25191170, 'papier': 25191171, 'mal_croppe': 25191172, 'autre_refus': 25191173, 'flou': 25191174, 'metal': 25191175, 'Carton_brun': 25191176}]} args : 25191157 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 :13, first value : ('0.03217928873998648',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25191157) 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 ph WHERE photo_id IN (1373190915,1373190912,1373190910,1373190909,1373190906,1373190903,1373190890,1373190888,1373190886,1373190885,1373190883,1373190881) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373190881 begin to download photo : 1373190886 begin to download photo : 1373190903 begin to download photo : 1373190910 download finish for photo 1373190886 begin to download photo : 1373190888 download finish for photo 1373190903 begin to download photo : 1373190906 download finish for photo 1373190910 begin to download photo : 1373190912 download finish for photo 1373190881 begin to download photo : 1373190883 download finish for photo 1373190888 begin to download photo : 1373190890 download finish for photo 1373190906 begin to download photo : 1373190909 download finish for photo 1373190912 begin to download photo : 1373190915 download finish for photo 1373190883 begin to download photo : 1373190885 download finish for photo 1373190890 download finish for photo 1373190915 download finish for photo 1373190909 download finish for photo 1373190885 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 : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25191157_22-07-2025_20_42_57.pdf 25191165 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191165 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373190694: '1753209266_2237646_1373190612_72b823612cc5ab5c1a0537e185a03ea9_rle_crop_3889990414_0.png', 1373190695: '1753209266_2237646_1373190611_7a457342e071844c0efe226643288ebd_rle_crop_3889990422_0.png', 1373190696: '1753209266_2237646_1373190609_6cf674a1eb63045e7f6f385022e93509_rle_crop_3889990432_0.png', 1373190697: '1753209266_2237646_1373190608_cfd74661a0df3f8e1dea9559ee435014_rle_crop_3889990444_0.png', 1373190698: '1753209266_2237646_1373190606_37b5631aaad1897d98bd3a3f84224829_rle_crop_3889990457_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/0e50797a2bb205698cf10550d70b1d0c_72334891.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/658347bea5f05d570245bd877680f057_53806897.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/362fa1a10233b3ab9419508e8f284caf_55298998.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/7c73b0b3bc3531836f27eec9499f6171_54822409.png change filename to text .imagette251911651753209777/ imagette251911651753209777/1753209266_2237646_1373190612_72b823612cc5ab5c1a0537e185a03ea9_rle_crop_3889990414_0.png.png imagette251911651753209777/1753209266_2237646_1373190611_7a457342e071844c0efe226643288ebd_rle_crop_3889990422_0.png.png imagette251911651753209777/1753209266_2237646_1373190609_6cf674a1eb63045e7f6f385022e93509_rle_crop_3889990432_0.png.png imagette251911651753209777/1753209266_2237646_1373190606_37b5631aaad1897d98bd3a3f84224829_rle_crop_3889990457_0.png.png imagette251911651753209777/1753209266_2237646_1373190608_cfd74661a0df3f8e1dea9559ee435014_rle_crop_3889990444_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/13bc818e9f84b436cc5310965b22787c_66932342.png imagette251911651753209777 25191168 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191168 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373190724: '1753209326_2239495_1373190586_53de0fbd7320d4836ba3bcc36df2c7e6_rle_crop_3889990630_0.png', 1373190725: '1753209326_2239495_1373190582_aff7ce772216bf3580948c1ab0d64c86_rle_crop_3889990652_0.png', 1373190823: '1753209566_2249028_1373190669_d4957a67562db1f179334cfda012a43a_rle_crop_3889991048_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/f8558259827a7e45df8a5183fc419b34_86893363.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/90558ccc8f793309861d6cfc915d80ee_44390469.png change filename to text .imagette251911681753209778/ imagette251911681753209778/1753209326_2239495_1373190582_aff7ce772216bf3580948c1ab0d64c86_rle_crop_3889990652_0.png.png imagette251911681753209778/1753209326_2239495_1373190586_53de0fbd7320d4836ba3bcc36df2c7e6_rle_crop_3889990630_0.png.png imagette251911681753209778/1753209566_2249028_1373190669_d4957a67562db1f179334cfda012a43a_rle_crop_3889991048_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/ce2578400a635ebe2e98ddd34b90e051_2601258.png imagette251911681753209778 25191170 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191170 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373190723: '1753209326_2239495_1373190572_a20104e2621149d4dcae7795490b90be_rle_crop_3889990687_0.png'} change filename to text .imagette251911701753209778/ imagette251911701753209778/1753209326_2239495_1373190572_a20104e2621149d4dcae7795490b90be_rle_crop_3889990687_0.png.png imagette251911721753209778/ imagette251911731753209778/ imagette251911741753209778/ imagette251911751753209778/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/6b6aa4b2fe22c86bf267a0b6879f7536_3570495.png imagette251911701753209778 25191172 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251911721753209778 25191173 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251911731753209778 25191174 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191174 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251911741753209778 25191175 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191175 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251911751753209778 25191166 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191166 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373190691: '1753209266_2237646_1373190612_72b823612cc5ab5c1a0537e185a03ea9_rle_crop_3889990410_0.png', 1373190692: '1753209266_2237646_1373190609_6cf674a1eb63045e7f6f385022e93509_rle_crop_3889990427_0.png', 1373190821: '1753209566_2249028_1373190675_d3d418804166de1334c8240be6cc157b_rle_crop_3889991018_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/a4ceda829b9620a51dc670dc9bbef9fe_53041647.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/8082c795cf5991e175c0dd260c485e6b_5496602.png change filename to text .imagette251911661753209778/ imagette251911661753209778/1753209566_2249028_1373190675_d3d418804166de1334c8240be6cc157b_rle_crop_3889991018_0.png.png imagette251911661753209778/1753209266_2237646_1373190609_6cf674a1eb63045e7f6f385022e93509_rle_crop_3889990427_0.png.png imagette251911661753209778/1753209266_2237646_1373190612_72b823612cc5ab5c1a0537e185a03ea9_rle_crop_3889990410_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/cd0eaa7cf586d1e7bbd35cab120915b1_4219387.png imagette251911661753209778 25191167 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191167 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373190721: '1753209326_2239495_1373190572_a20104e2621149d4dcae7795490b90be_rle_crop_3889990695_0.png', 1373190722: '1753209326_2239495_1373190565_96d3c2c6a4ca55ca39d0b945507e1192_rle_crop_3889990702_0.png', 1373190818: '1753209566_2249028_1373190669_d4957a67562db1f179334cfda012a43a_rle_crop_3889991052_0.png', 1373190819: '1753209566_2249028_1373190666_9ab33a012744dff2a08bc6c5e75c66fa_rle_crop_3889991061_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/7b0dd307536ee7842347b2ad09799eb5_23497149.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/800eef1c6e65ea752f2ff00ef291e1a8_66667327.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/ae4669c26bd74a57c77e3dcd686d285b_28569666.png change filename to text .imagette251911671753209778/ imagette251911671753209778/1753209566_2249028_1373190666_9ab33a012744dff2a08bc6c5e75c66fa_rle_crop_3889991061_0.png.png imagette251911671753209778/1753209326_2239495_1373190565_96d3c2c6a4ca55ca39d0b945507e1192_rle_crop_3889990702_0.png.png imagette251911671753209778/1753209326_2239495_1373190572_a20104e2621149d4dcae7795490b90be_rle_crop_3889990695_0.png.png imagette251911671753209778/1753209566_2249028_1373190669_d4957a67562db1f179334cfda012a43a_rle_crop_3889991052_0.png.png imagette251911761753209778/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/a1972ec17ce1f94abd6cd656cd9bbcfa_37567584.png imagette251911671753209778 25191176 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191176 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251911761753209778 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25191157 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25191177,25191178,25191179,25191180,25191181,25191182,25191183,25191184,25191185,25191186,25191187,25191188?tags=plastique,Carton_gris,Teint_Dans_La_Masse,kraft,environnement,cartonnette,papier,mal_croppe,autre_refus,flou,metal,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1373190915] : ('0.03217928873998648',) no score found for photo 1373190915 We are sending mail with results at report@fotonower.com args[1373190912] : ('0.03217928873998648',) no score found for photo 1373190912 We are sending mail with results at report@fotonower.com args[1373190910] : ('0.03217928873998648',) no score found for photo 1373190910 We are sending mail with results at report@fotonower.com args[1373190909] : ('0.03217928873998648',) no score found for photo 1373190909 We are sending mail with results at report@fotonower.com args[1373190906] : ('0.03217928873998648',) no score found for photo 1373190906 We are sending mail with results at report@fotonower.com args[1373190903] : ('0.03217928873998648',) no score found for photo 1373190903 We are sending mail with results at report@fotonower.com args[1373190890] : ('0.03217928873998648',) no score found for photo 1373190890 We are sending mail with results at report@fotonower.com args[1373190888] : ('0.03217928873998648',) no score found for photo 1373190888 We are sending mail with results at report@fotonower.com args[1373190886] : ('0.03217928873998648',) no score found for photo 1373190886 We are sending mail with results at report@fotonower.com args[1373190885] : ('0.03217928873998648',) no score found for photo 1373190885 We are sending mail with results at report@fotonower.com args[1373190883] : ('0.03217928873998648',) no score found for photo 1373190883 We are sending mail with results at report@fotonower.com args[1373190881] : ('0.03217928873998648',) no score found for photo 1373190881 We are sending mail with results at report@fotonower.com refus_total : 0.03217928873998648 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191157 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_P25191157_22-07-2025_20_42_57.pdf results_Auto_P25191157_22-07-2025_20_42_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25191157_22-07-2025_20_42_57.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','25191157','results_Auto_P25191157_22-07-2025_20_42_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25191157_22-07-2025_20_42_57.pdf','pdf','','0.16','0.03217928873998648') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25191157]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881] map_info['map_portfolio_photo'] : {25191157: [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881, 1373190834, 1373190830, 1373190828, 1373190826, 1373190824, 1373190820, 1373190805, 1373190802, 1373190800, 1373190798, 1373190797, 1373190795, 1373190780, 1373190766, 1373190764, 1373190763, 1373190762, 1373190760, 1373190757, 1373190729, 1373190699, 1373190677, 1373190675, 1373190674, 1373190672, 1373190669, 1373190666, 1373190643, 1373190640, 1373190638, 1373190635, 1373190633, 1373190630, 1373190612, 1373190611, 1373190609, 1373190608, 1373190606, 1373190604, 1373190586, 1373190582, 1373190578, 1373190575, 1373190572, 1373190565]} final : False mtd_id 4302 list_pids : [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881] 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, '3320983') ('4302', '25191157', '1373190915', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190912', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190910', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190909', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190906', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190903', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190890', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190888', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190886', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190885', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190883', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190881', None, None, None, None, None, '3320983') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '25191157', '1373190915', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190912', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190910', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190909', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190906', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190903', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190890', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190888', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190886', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190885', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190883', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190881', None, None, None, None, None, '3320983')] time used for this insertion : 0.015317678451538086 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.482351064682007 time spend to save output : 0.015561819076538086 total time spend for step 4 : 2.497912883758545 step5:split_time_score Tue Jul 22 20:42:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : ['25191157'] 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 : [('25191157',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25191157) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373190886: {'path': 'temp/1753209777_1380813_1373190886_e567d6f710f5ed2c932cd434ae9a3bb7.jpg', 'extension': 'jpg'}, 1373190888: {'path': 'temp/1753209777_1380813_1373190888_f3b440e6e3a88c52571fea7587d78cd1.jpg', 'extension': 'jpg'}, 1373190890: {'path': 'temp/1753209777_1380813_1373190890_78e445229b3cb67c403f839493a04067.jpg', 'extension': 'jpg'}, 1373190910: {'path': 'temp/1753209777_1380813_1373190910_ff6cc74e2e7b3a0b790c42501ed9057d.jpg', 'extension': 'jpg'}, 1373190912: {'path': 'temp/1753209777_1380813_1373190912_892f2e7b04aee12ea4ed1bc2624ed6c5.jpg', 'extension': 'jpg'}, 1373190915: {'path': 'temp/1753209777_1380813_1373190915_659f2f90913a72dc515d90920e70c9b3.jpg', 'extension': 'jpg'}, 1373190903: {'path': 'temp/1753209777_1380813_1373190903_5724973629af38f556f106baf8f87589.jpg', 'extension': 'jpg'}, 1373190906: {'path': 'temp/1753209777_1380813_1373190906_f8e9ba5a93361b2e359d9f8d067c02d6.jpg', 'extension': 'jpg'}, 1373190909: {'path': 'temp/1753209777_1380813_1373190909_361191f9cd8eeac471c0dc4ea822cd8d.jpg', 'extension': 'jpg'}, 1373190881: {'path': 'temp/1753209777_1380813_1373190881_00a24e79886cae79133f66b8b2fe762a.jpg', 'extension': 'jpg'}, 1373190883: {'path': 'temp/1753209777_1380813_1373190883_5c8597b361aeb02de167e5054affbfbe.jpg', 'extension': 'jpg'}, 1373190885: {'path': 'temp/1753209777_1380813_1373190885_9f4c6e4ed6fd0669f9ee16a35876e116.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 = 25191157; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25191157 group by h (('20', 57),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25191157 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 (25191157) 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 (25191157) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 22072025 25191157 Nombre de photos uploadées : 57 / 23040 (0%) 22072025 25191157 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 22072025 25191157 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1373190586, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/53de0fbd7320d4836ba3bcc36df2c7e6.jpg', 'username': None, 'uploaded_at': 1753209063, 'text': 'image_22072025_20_30_04_010143m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1373190582, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/aff7ce772216bf3580948c1ab0d64c86.jpg', 'username': None, 'uploaded_at': 1753209063, 'text': 'image_22072025_20_30_13_009127m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1373190578, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/4e972f17456a71bd853099ad07460fff.jpg', 'username': None, 'uploaded_at': 1753209063, 'text': 'image_22072025_20_30_24_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1373190575, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/926fccf85d654509b36e001c85a28e7e.jpg', 'username': None, 'uploaded_at': 1753209063, 'text': 'image_22072025_20_30_34_010133m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024471282958984375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25191157, '2025-07-22' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1995739,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0234677791595459 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= 1995739 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25155989, 'dashboard_result_id': 12892816, '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_P25155989_22-07-2025_06_18_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156050, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25156005, 'dashboard_result_id': 12892817, '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_P25156005_22-07-2025_06_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156062, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25156012, 'dashboard_result_id': 12892818, '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_P25156012_22-07-2025_06_20_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156026, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25156290, 'dashboard_result_id': 12892819, '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_P25156290_22-07-2025_12_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156302, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156303, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25156560, 'dashboard_result_id': 12892820, '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_P25156560_22-07-2025_10_02_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156585, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25156935, 'dashboard_result_id': 12892821, '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_P25156935_22-07-2025_06_21_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25156949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156960, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25157295, 'dashboard_result_id': 12892822, '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_P25157295_22-07-2025_06_22_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25157298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25157308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157309, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25157988, 'dashboard_result_id': 12892823, '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_P25157988_22-07-2025_06_22_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158001, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25158310, 'dashboard_result_id': 12892824, '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_P25158310_22-07-2025_06_23_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25158318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158324, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25158648, 'dashboard_result_id': 12892825, '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_P25158648_22-07-2025_06_24_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25158661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158673, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25159058, 'dashboard_result_id': 12892826, '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_P25159058_22-07-2025_10_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159086, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25159590, 'dashboard_result_id': 12892827, '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_P25159590_22-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159604, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25159985, 'dashboard_result_id': 12892828, '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_P25159985_22-07-2025_06_25_41.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160000, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25160298, 'dashboard_result_id': 12892829, '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_P25160298_22-07-2025_06_25_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25160305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160311, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25160634, 'dashboard_result_id': 12892830, '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_P25160634_22-07-2025_06_26_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25160660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160671, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25160985, 'dashboard_result_id': 12892831, '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_P25160985_22-07-2025_05_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161003, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25161378, 'dashboard_result_id': 12892832, '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_P25161378_22-07-2025_05_40_42.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25161380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161384, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161391, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25161694, 'dashboard_result_id': 12892833, '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_P25161694_22-07-2025_05_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25161725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161731, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25162032, 'dashboard_result_id': 12892834, '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_P25162032_22-07-2025_07_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162070, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25162433, 'dashboard_result_id': 12892835, '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_P25162433_22-07-2025_06_30_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162452, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25162875, 'dashboard_result_id': 12892836, '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_P25162875_22-07-2025_06_31_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162888, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25163115, 'dashboard_result_id': 12892837, '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_P25163115_22-07-2025_06_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163154, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25163476, 'dashboard_result_id': 12892838, '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_P25163476_22-07-2025_07_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163490, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25163841, 'dashboard_result_id': 12892839, '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_P25163841_22-07-2025_07_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163894, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25164591, 'dashboard_result_id': 12892840, '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_P25164591_22-07-2025_07_30_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25164616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25164617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25164618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25164619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25164620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25164621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25164622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25164623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25164624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25164625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25164626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25164627, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25165035, 'dashboard_result_id': 12892841, '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_P25165035_22-07-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25165059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25165060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25165061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25165063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25165064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25165065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25165067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25165068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25165069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25165071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25165072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25165073, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25165545, 'dashboard_result_id': 12892842, '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_P25165545_22-07-2025_10_01_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25165547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25165548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25165549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25165550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25165551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25165552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25165553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25165554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25165555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25165556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25165557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25165558, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25166096, 'dashboard_result_id': 12892843, '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_P25166096_22-07-2025_08_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25166099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25166100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25166101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25166102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25166103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25166104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25166105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25166106, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25166107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25166108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25166109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25166110, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25166514, 'dashboard_result_id': 12892844, '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_P25166514_22-07-2025_08_30_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25166521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25166522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25166523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25166524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25166525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25166526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25166527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25166528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25166529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25166530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25166531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25166532, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25166842, 'dashboard_result_id': 12892845, '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_P25166842_22-07-2025_08_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25166873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25166874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25166875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25166876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25166877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25166878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25166879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25166880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25166881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25166882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25166883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25166884, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25167349, 'dashboard_result_id': 12892846, '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_P25167349_22-07-2025_09_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25167385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25167386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25167387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25167388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25167389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25167390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25167391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25167392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25167393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25167394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25167395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25167396, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25168032, 'dashboard_result_id': 12892847, '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_P25168032_22-07-2025_09_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25168087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25168088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25168089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25168090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25168091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25168092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25168093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25168094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25168095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25168096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25168097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25168098, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25169038, 'dashboard_result_id': 12892848, '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_P25169038_22-07-2025_09_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25169065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25169066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25169067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25169068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25169069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25169070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25169071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25169072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25169073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25169074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25169075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25169076, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25169714, 'dashboard_result_id': 12892849, '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_P25169714_22-07-2025_10_01_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25169813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25169814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25169815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25169816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25169817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25169818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25169819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25169820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25169821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25169822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25169823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25169824, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25170269, 'dashboard_result_id': 12892850, '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_P25170269_22-07-2025_10_00_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25170294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25170295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25170297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25170298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25170299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25170300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25170301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25170302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25170303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25170304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25170305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25170306, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25170702, 'dashboard_result_id': 12892851, '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_P25170702_22-07-2025_10_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25170721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25170722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25170723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25170724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25170725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25170726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25170727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25170728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25170729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25170730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25170731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25170732, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25171221, 'dashboard_result_id': 12892852, '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_P25171221_22-07-2025_12_26_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25171248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25171249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25171250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25171251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25171252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25171253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25171254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25171255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25171256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25171257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25171258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25171259, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25171512, 'dashboard_result_id': 12892853, '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_P25171512_22-07-2025_10_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25171518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25171519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25171520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25171521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25171522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25171523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25171524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25171525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25171526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25171527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25171528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25171529, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25171866, 'dashboard_result_id': 12892854, '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_P25171866_22-07-2025_11_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25171896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25171897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25171898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25171899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25171900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25171901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25171902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25171903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25171904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25171905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25171906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25171907, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25172392, 'dashboard_result_id': 12892855, '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_P25172392_22-07-2025_11_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25172421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25172422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25172423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25172424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25172425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25172426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25172427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25172428, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25172429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25172430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25172431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25172432, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25173049, 'dashboard_result_id': 12892856, '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_P25173049_22-07-2025_12_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25173078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25173079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25173080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25173081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25173082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25173083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25173084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25173085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25173086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25173087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25173088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25173089, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25173486, 'dashboard_result_id': 12892857, '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_P25173486_22-07-2025_12_01_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25173519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25173520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25173521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25173522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25173523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25173524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25173525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25173526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25173527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25173528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25173529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25173530, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25173946, 'dashboard_result_id': 12892858, '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_P25173946_22-07-2025_12_01_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25173953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25173954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25173955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25173956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25173957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25173958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25173959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25173960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25173961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25173962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25173963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25173964, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25174356, 'dashboard_result_id': 12892859, '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_P25174356_22-07-2025_12_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25174365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25174366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25174367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25174368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25174369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25174370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25174371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25174372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25174373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25174375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25174376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25174377, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25175012, 'dashboard_result_id': 12892860, '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_P25175012_22-07-2025_12_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25175057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25175058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25175059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25175060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25175061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25175062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25175063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25175064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25175065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25175066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25175067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25175068, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25175650, 'dashboard_result_id': 12892861, '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_P25175650_22-07-2025_12_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25175661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25175662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25175663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25175664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25175665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25175666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25175667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25175668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25175669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25175670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25175671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25175672, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25176021, 'dashboard_result_id': 12892862, '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_P25176021_22-07-2025_13_00_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25176025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25176026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25176027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25176028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25176029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25176030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25176031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25176032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25176033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25176034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25176035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25176036, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25176547, 'dashboard_result_id': 12892863, '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_P25176547_22-07-2025_13_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25176563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25176565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25176566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25176567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25176568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25176569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25176570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25176571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25176572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25176573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25176574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25176575, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25177012, 'dashboard_result_id': 12892864, '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_P25177012_22-07-2025_19_01_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25177014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25177015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25177016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25177017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25177018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25177019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25177020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25177021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25177022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25177023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25177024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25177025, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25177325, 'dashboard_result_id': 12892865, '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_P25177325_22-07-2025_13_49_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25177364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25177365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25177366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25177367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25177368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25177369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25177370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25177371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25177372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25177373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25177374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25177375, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25177328, 'dashboard_result_id': 12892866, '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_P25177328_22-07-2025_14_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25177336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25177337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25177338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25177339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25177340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25177342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25177343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25177344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25177345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25177346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25177347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25177348, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25177965, 'dashboard_result_id': 12892867, '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_P25177965_22-07-2025_14_16_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25178015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25178016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25178017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25178018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25178019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25178020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25178021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25178022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25178023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25178024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25178025, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25178026, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25178663, 'dashboard_result_id': 12892868, '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_P25178663_22-07-2025_14_30_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25178695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25178696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25178697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25178698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25178699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25178700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25178701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25178702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25178703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25178704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25178705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25178706, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25179104, 'dashboard_result_id': 12892869, '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_P25179104_22-07-2025_14_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25179110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25179111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25179112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25179113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25179114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25179115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25179116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25179117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25179118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25179119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25179120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25179121, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25179732, 'dashboard_result_id': 12892870, '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_P25179732_22-07-2025_15_00_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25179740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25179741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25179742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25179743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25179744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25179745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25179746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25179747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25179748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25179749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25179750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25179751, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25180239, 'dashboard_result_id': 12892871, '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_P25180239_22-07-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25180242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25180243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25180244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25180245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25180246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25180247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25180248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25180249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25180250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25180251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25180252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25180253, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25180817, 'dashboard_result_id': 12892872, '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_P25180817_22-07-2025_15_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25180820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25180821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25180822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25180823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25180824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25180825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25180826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25180827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25180828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25180829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25180830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25180831, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25181245, 'dashboard_result_id': 12892873, '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_P25181245_22-07-2025_19_00_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25181273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25181274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25181275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25181276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25181277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25181278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25181279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25181280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25181281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25181282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25181283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25181284, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25181715, 'dashboard_result_id': 12892874, '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_P25181715_22-07-2025_16_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25181742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25181743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25181744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25181745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25181746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25181747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25181748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25181749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25181750, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25181751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25181752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25181753, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25182199, 'dashboard_result_id': 12892875, '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_P25182199_22-07-2025_16_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25182203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25182204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25182205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25182206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25182207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25182208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25182209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25182210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25182211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25182212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25182213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25182214, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25182748, 'dashboard_result_id': 12892876, '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_P25182748_22-07-2025_16_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25182774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25182775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25182776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25182777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25182778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25182779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25182780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25182781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25182782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25182783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25182784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25182785, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25183399, 'dashboard_result_id': 12892877, '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_P25183399_22-07-2025_16_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25183442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25183443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25183444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25183445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25183446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25183447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25183448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25183449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25183450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25183451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25183452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25183453, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25184127, 'dashboard_result_id': 12892878, '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_P25184127_22-07-2025_18_59_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25184129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25184130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25184131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25184132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25184133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25184134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25184135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25184136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25184137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25184138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25184139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25184140, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25184524, 'dashboard_result_id': 12892879, '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_P25184524_22-07-2025_17_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25184533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25184534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25184535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25184536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25184537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25184538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25184539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25184540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25184541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25184542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25184543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25184544, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25184987, 'dashboard_result_id': 12892880, '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_P25184987_22-07-2025_17_30_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25184994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25184995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25184996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25184997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25184998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25184999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25185000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25185001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25185002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25185003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25185004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25185005, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25185386, 'dashboard_result_id': 12892881, '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_P25185386_22-07-2025_17_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25185397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25185398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25185399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25185400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25185401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25185402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25185403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25185404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25185405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25185406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25185407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25185408, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25185817, 'dashboard_result_id': 12892882, '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_P25185817_22-07-2025_18_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25185840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25185841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25185842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25185843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25185844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25185845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25185846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25185847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25185848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25185849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25185850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25185851, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25186346, 'dashboard_result_id': 12892883, '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_P25186346_22-07-2025_18_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25186357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25186358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25186359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25186360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25186361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25186362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25186363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25186364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25186365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25186366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25186367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25186368, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25186892, 'dashboard_result_id': 12892884, '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_P25186892_22-07-2025_18_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25186898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25186899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25186900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25186901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25186902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25186903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25186904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25186905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25186906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25186907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25186908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25186909, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25187325, 'dashboard_result_id': 12892885, '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_P25187325_22-07-2025_18_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25187337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25187338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25187339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25187340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25187341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25187342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25187344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25187345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25187346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25187347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25187348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25187349, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25187746, 'dashboard_result_id': 12892886, '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_P25187746_22-07-2025_19_01_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25187773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25187774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25187775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25187776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25187777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25187778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25187779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25187780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25187781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25187782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25187783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25187784, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25188180, 'dashboard_result_id': 12892887, '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_P25188180_22-07-2025_19_16_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25188181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25188182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25188183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25188184, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25188185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25188186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25188187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25188188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25188189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25188190, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25188191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25188192, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25188859, 'dashboard_result_id': 12892888, '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_P25188859_22-07-2025_19_30_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25188864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25188865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25188866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25188867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25188868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25188869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25188870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25188871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25188872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25188873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25188874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25188875, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25189318, 'dashboard_result_id': 12892889, '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_P25189318_22-07-2025_19_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25189325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25189326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25189327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25189328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25189329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25189330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25189331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25189332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25189333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25189334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25189335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25189336, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25189678, 'dashboard_result_id': 12892890, '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_P25189678_22-07-2025_20_00_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25189694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25189695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25189696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25189697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25189698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25189699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25189700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25189701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25189702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25189703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25189704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25189705, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25190063, 'dashboard_result_id': 12892891, '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_P25190063_22-07-2025_20_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25190064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25190065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25190066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25190067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25190068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25190069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25190070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25190071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25190072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25190073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25190074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25190075, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25190700, 'dashboard_result_id': 12892892, '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_P25190700_22-07-2025_20_30_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25190701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25190702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25190703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25190704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25190705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25190706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25190707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25190708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25190709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25190710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25190711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25190712, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2005926, 'mtr_portfolio_id': 25191157, 'dashboard_result_id': 12892893, '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_P25191157_22-07-2025_20_38_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25191165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25191166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25191167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25191168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25191169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25191170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25191171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25191172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25191173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25191174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25191175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25191176, '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 = 25155989 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': 3317103, 'mtr_portfolio_id': 25155989, 'created_at': datetime.datetime(2025, 7, 22, 6, 18, 29), 'result': '0.042577496054803265', 'result_long': None, 'result_double': None}] Qualite : 0.042577496054803265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25155989 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25155989_22-07-2025_06_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25155989 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_P25155989_22-07-2025_06_18_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156050, 'pht': 3726}}" where mtr_portfolio_id = 25155989 and dashboard_run_id = 2005926 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`=25155989 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892816, 0.042577496054803265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25155989_22-07-2025_06_18_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156050, '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 = 25156005 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': 3317104, 'mtr_portfolio_id': 25156005, 'created_at': datetime.datetime(2025, 7, 22, 6, 19, 29), 'result': '0.028660248002575165', 'result_long': None, 'result_double': None}] Qualite : 0.028660248002575165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25156005 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156005_22-07-2025_06_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25156005 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_P25156005_22-07-2025_06_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156062, 'pht': 3726}}" where mtr_portfolio_id = 25156005 and dashboard_run_id = 2005926 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`=25156005 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892817, 0.028660248002575165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156005_22-07-2025_06_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156062, '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 = 25156012 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': 3317105, 'mtr_portfolio_id': 25156012, 'created_at': datetime.datetime(2025, 7, 22, 6, 20, 29), 'result': '0.03631626189886217', 'result_long': None, 'result_double': None}] Qualite : 0.03631626189886217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25156012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156012_22-07-2025_06_20_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25156012 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_P25156012_22-07-2025_06_20_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156026, 'pht': 3726}}" where mtr_portfolio_id = 25156012 and dashboard_run_id = 2005926 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`=25156012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892818, 0.03631626189886217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156012_22-07-2025_06_20_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156026, '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 = 25156290 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': 3317106, 'mtr_portfolio_id': 25156290, 'created_at': datetime.datetime(2025, 7, 22, 12, 27, 30), 'result': '0.0469417017519264', 'result_long': None, 'result_double': None}] Qualite : 0.0469417017519264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25156290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156290_22-07-2025_12_27_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25156290 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_P25156290_22-07-2025_12_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156302, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156303, 'pht': 3726}}" where mtr_portfolio_id = 25156290 and dashboard_run_id = 2005926 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`=25156290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892819, 0.0469417017519264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156290_22-07-2025_12_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156302, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156303, '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 = 25156560 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': 3317107, 'mtr_portfolio_id': 25156560, 'created_at': datetime.datetime(2025, 7, 22, 10, 2, 30), 'result': '0.049772851886759076', 'result_long': None, 'result_double': None}] Qualite : 0.049772851886759076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25156560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156560_22-07-2025_10_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25156560 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_P25156560_22-07-2025_10_02_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156585, 'pht': 3726}}" where mtr_portfolio_id = 25156560 and dashboard_run_id = 2005926 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`=25156560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892820, 0.049772851886759076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156560_22-07-2025_10_02_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156585, '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 = 25156935 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': 3317108, 'mtr_portfolio_id': 25156935, 'created_at': datetime.datetime(2025, 7, 22, 6, 21, 32), 'result': '0.05014606425363453', 'result_long': None, 'result_double': None}] Qualite : 0.05014606425363453 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25156935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156935_22-07-2025_06_21_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25156935 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_P25156935_22-07-2025_06_21_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25156949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156960, 'pht': 3726}}" where mtr_portfolio_id = 25156935 and dashboard_run_id = 2005926 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`=25156935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892821, 0.05014606425363453, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156935_22-07-2025_06_21_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25156949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156960, '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 = 25157295 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': 3317109, 'mtr_portfolio_id': 25157295, 'created_at': datetime.datetime(2025, 7, 22, 6, 22), 'result': '0.0377625093885371', 'result_long': None, 'result_double': None}] Qualite : 0.0377625093885371 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25157295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25157295_22-07-2025_06_22_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25157295 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_P25157295_22-07-2025_06_22_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25157298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25157308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157309, 'pht': 3726}}" where mtr_portfolio_id = 25157295 and dashboard_run_id = 2005926 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`=25157295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892822, 0.0377625093885371, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25157295_22-07-2025_06_22_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25157298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25157308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157309, '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 = 25157988 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': 3317110, 'mtr_portfolio_id': 25157988, 'created_at': datetime.datetime(2025, 7, 22, 6, 22, 30), 'result': '0.055900391707576096', 'result_long': None, 'result_double': None}] Qualite : 0.055900391707576096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25157988 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25157988_22-07-2025_06_22_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25157988 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_P25157988_22-07-2025_06_22_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158001, 'pht': 3726}}" where mtr_portfolio_id = 25157988 and dashboard_run_id = 2005926 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`=25157988 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892823, 0.055900391707576096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25157988_22-07-2025_06_22_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158001, '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 = 25158310 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': 3317111, 'mtr_portfolio_id': 25158310, 'created_at': datetime.datetime(2025, 7, 22, 6, 23, 28), 'result': '0.044281090071073746', 'result_long': None, 'result_double': None}] Qualite : 0.044281090071073746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25158310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25158310_22-07-2025_06_23_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25158310 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_P25158310_22-07-2025_06_23_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25158318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158324, 'pht': 3726}}" where mtr_portfolio_id = 25158310 and dashboard_run_id = 2005926 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`=25158310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892824, 0.044281090071073746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25158310_22-07-2025_06_23_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25158318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158324, '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 = 25158648 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': 3317112, 'mtr_portfolio_id': 25158648, 'created_at': datetime.datetime(2025, 7, 22, 6, 23, 58), 'result': '0.045151225783406454', 'result_long': None, 'result_double': None}] Qualite : 0.045151225783406454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25158648 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25158648_22-07-2025_06_24_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25158648 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_P25158648_22-07-2025_06_24_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25158661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158673, 'pht': 3726}}" where mtr_portfolio_id = 25158648 and dashboard_run_id = 2005926 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`=25158648 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892825, 0.045151225783406454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25158648_22-07-2025_06_24_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25158661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158673, '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 = 25159058 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': 3317113, 'mtr_portfolio_id': 25159058, 'created_at': datetime.datetime(2025, 7, 22, 10, 3, 31), 'result': '0.04774759266088347', 'result_long': None, 'result_double': None}] Qualite : 0.04774759266088347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25159058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159058_22-07-2025_10_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25159058 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_P25159058_22-07-2025_10_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159086, 'pht': 3726}}" where mtr_portfolio_id = 25159058 and dashboard_run_id = 2005926 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`=25159058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892826, 0.04774759266088347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159058_22-07-2025_10_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159086, '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 = 25159590 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': 3317114, 'mtr_portfolio_id': 25159590, 'created_at': datetime.datetime(2025, 7, 22, 6, 25, 27), 'result': '0.04360843286091059', 'result_long': None, 'result_double': None}] Qualite : 0.04360843286091059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25159590 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159590_22-07-2025_06_25_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25159590 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_P25159590_22-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159604, 'pht': 3726}}" where mtr_portfolio_id = 25159590 and dashboard_run_id = 2005926 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`=25159590 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892827, 0.04360843286091059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159590_22-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159604, '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 = 25159985 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': 3317115, 'mtr_portfolio_id': 25159985, 'created_at': datetime.datetime(2025, 7, 22, 6, 25, 39), 'result': '0.01781640655123875', 'result_long': None, 'result_double': None}] Qualite : 0.01781640655123875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25159985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159985_22-07-2025_06_25_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25159985 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_P25159985_22-07-2025_06_25_41.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160000, 'pht': 3726}}" where mtr_portfolio_id = 25159985 and dashboard_run_id = 2005926 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`=25159985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892828, 0.01781640655123875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159985_22-07-2025_06_25_41.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160000, '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 = 25160298 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': 3317116, 'mtr_portfolio_id': 25160298, 'created_at': datetime.datetime(2025, 7, 22, 6, 25, 56), 'result': '0.02108208209843524', 'result_long': None, 'result_double': None}] Qualite : 0.02108208209843524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25160298 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160298_22-07-2025_06_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25160298 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_P25160298_22-07-2025_06_25_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25160305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160311, 'pht': 3726}}" where mtr_portfolio_id = 25160298 and dashboard_run_id = 2005926 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`=25160298 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892829, 0.02108208209843524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160298_22-07-2025_06_25_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25160305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160311, '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 = 25160634 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': 3317117, 'mtr_portfolio_id': 25160634, 'created_at': datetime.datetime(2025, 7, 22, 6, 26, 29), 'result': '0.020951848401778505', 'result_long': None, 'result_double': None}] Qualite : 0.020951848401778505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25160634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160634_22-07-2025_06_26_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25160634 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_P25160634_22-07-2025_06_26_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25160660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160671, 'pht': 3726}}" where mtr_portfolio_id = 25160634 and dashboard_run_id = 2005926 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`=25160634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892830, 0.020951848401778505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160634_22-07-2025_06_26_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25160660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160671, '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 = 25160985 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': 3316950, 'mtr_portfolio_id': 25160985, 'created_at': datetime.datetime(2025, 7, 22, 5, 16, 29), 'result': '0.03393861594645021', 'result_long': None, 'result_double': None}] Qualite : 0.03393861594645021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25160985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160985_22-07-2025_05_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25160985 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_P25160985_22-07-2025_05_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161003, 'pht': 3726}}" where mtr_portfolio_id = 25160985 and dashboard_run_id = 2005926 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`=25160985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892831, 0.03393861594645021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160985_22-07-2025_05_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161003, '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 = 25161378 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': 3317119, 'mtr_portfolio_id': 25161378, 'created_at': datetime.datetime(2025, 7, 22, 5, 40, 39), 'result': '0.03027880577569094', 'result_long': None, 'result_double': None}] Qualite : 0.03027880577569094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25161378 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25161378_22-07-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25161378 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_P25161378_22-07-2025_05_40_42.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25161380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161384, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161391, 'pht': 3726}}" where mtr_portfolio_id = 25161378 and dashboard_run_id = 2005926 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`=25161378 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892832, 0.03027880577569094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25161378_22-07-2025_05_40_42.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25161380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161384, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161391, '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 = 25161694 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': 3317022, 'mtr_portfolio_id': 25161694, 'created_at': datetime.datetime(2025, 7, 22, 5, 46, 29), 'result': '0.02688829850206059', 'result_long': None, 'result_double': None}] Qualite : 0.02688829850206059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25161694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25161694_22-07-2025_05_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25161694 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_P25161694_22-07-2025_05_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25161725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161731, 'pht': 3726}}" where mtr_portfolio_id = 25161694 and dashboard_run_id = 2005926 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`=25161694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892833, 0.02688829850206059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25161694_22-07-2025_05_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25161725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161731, '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 = 25162032 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': 3317186, 'mtr_portfolio_id': 25162032, 'created_at': datetime.datetime(2025, 7, 22, 7, 59, 58), 'result': '0.044106599563385876', 'result_long': None, 'result_double': None}] Qualite : 0.044106599563385876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25162032 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162032_22-07-2025_07_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25162032 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_P25162032_22-07-2025_07_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162070, 'pht': 3726}}" where mtr_portfolio_id = 25162032 and dashboard_run_id = 2005926 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`=25162032 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892834, 0.044106599563385876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162032_22-07-2025_07_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162070, '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 = 25162433 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': 3317233, 'mtr_portfolio_id': 25162433, 'created_at': datetime.datetime(2025, 7, 22, 6, 30, 38), 'result': '0.05365971755760239', 'result_long': None, 'result_double': None}] Qualite : 0.05365971755760239 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25162433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162433_22-07-2025_06_30_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25162433 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_P25162433_22-07-2025_06_30_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162452, 'pht': 3726}}" where mtr_portfolio_id = 25162433 and dashboard_run_id = 2005926 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`=25162433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892835, 0.05365971755760239, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162433_22-07-2025_06_30_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162452, '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 = 25162875 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': 3317272, 'mtr_portfolio_id': 25162875, 'created_at': datetime.datetime(2025, 7, 22, 6, 30, 59), 'result': '0.03580225906408305', 'result_long': None, 'result_double': None}] Qualite : 0.03580225906408305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25162875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162875_22-07-2025_06_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25162875 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_P25162875_22-07-2025_06_31_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162888, 'pht': 3726}}" where mtr_portfolio_id = 25162875 and dashboard_run_id = 2005926 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`=25162875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892836, 0.03580225906408305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162875_22-07-2025_06_31_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162888, '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 = 25163115 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': 3317306, 'mtr_portfolio_id': 25163115, 'created_at': datetime.datetime(2025, 7, 22, 6, 46, 29), 'result': '0.03800838290606678', 'result_long': None, 'result_double': None}] Qualite : 0.03800838290606678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25163115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163115_22-07-2025_06_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25163115 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_P25163115_22-07-2025_06_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163154, 'pht': 3726}}" where mtr_portfolio_id = 25163115 and dashboard_run_id = 2005926 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`=25163115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892837, 0.03800838290606678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163115_22-07-2025_06_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163154, '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 = 25163476 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': 3317345, 'mtr_portfolio_id': 25163476, 'created_at': datetime.datetime(2025, 7, 22, 7, 0, 58), 'result': '0.03130995894929277', 'result_long': None, 'result_double': None}] Qualite : 0.03130995894929277 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25163476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163476_22-07-2025_07_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25163476 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_P25163476_22-07-2025_07_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163490, 'pht': 3726}}" where mtr_portfolio_id = 25163476 and dashboard_run_id = 2005926 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`=25163476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892838, 0.03130995894929277, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163476_22-07-2025_07_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163490, '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 = 25163841 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': 3317394, 'mtr_portfolio_id': 25163841, 'created_at': datetime.datetime(2025, 7, 22, 7, 16, 57), 'result': '0.03470219270530069', 'result_long': None, 'result_double': None}] Qualite : 0.03470219270530069 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25163841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163841_22-07-2025_07_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25163841 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_P25163841_22-07-2025_07_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163894, 'pht': 3726}}" where mtr_portfolio_id = 25163841 and dashboard_run_id = 2005926 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`=25163841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892839, 0.03470219270530069, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163841_22-07-2025_07_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163894, '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 = 25164591 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': 3317452, 'mtr_portfolio_id': 25164591, 'created_at': datetime.datetime(2025, 7, 22, 7, 30, 32), 'result': '0.0352137642770866', 'result_long': None, 'result_double': None}] Qualite : 0.0352137642770866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25164591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25164591_22-07-2025_07_30_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25164591 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_P25164591_22-07-2025_07_30_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25164616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25164617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25164618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25164619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25164620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25164621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25164622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25164623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25164624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25164625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25164626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25164627, 'pht': 3726}}" where mtr_portfolio_id = 25164591 and dashboard_run_id = 2005926 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`=25164591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892840, 0.0352137642770866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25164591_22-07-2025_07_30_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25164616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25164617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25164618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25164619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25164620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25164621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25164622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25164623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25164624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25164625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25164626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25164627, '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 = 25165035 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': 3317493, 'mtr_portfolio_id': 25165035, 'created_at': datetime.datetime(2025, 7, 22, 7, 47), 'result': '0.038422449401487334', 'result_long': None, 'result_double': None}] Qualite : 0.038422449401487334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25165035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25165035_22-07-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25165035 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_P25165035_22-07-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25165059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25165060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25165061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25165063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25165064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25165065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25165067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25165068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25165069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25165071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25165072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25165073, 'pht': 3726}}" where mtr_portfolio_id = 25165035 and dashboard_run_id = 2005926 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`=25165035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892841, 0.038422449401487334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25165035_22-07-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25165059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25165060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25165061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25165063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25165064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25165065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25165067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25165068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25165069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25165071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25165072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25165073, '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 = 25165545 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': 3317538, 'mtr_portfolio_id': 25165545, 'created_at': datetime.datetime(2025, 7, 22, 10, 1, 58), 'result': '0.05280959892445531', 'result_long': None, 'result_double': None}] Qualite : 0.05280959892445531 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25165545 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25165545_22-07-2025_10_01_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25165545 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_P25165545_22-07-2025_10_01_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25165547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25165548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25165549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25165550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25165551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25165552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25165553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25165554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25165555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25165556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25165557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25165558, 'pht': 3726}}" where mtr_portfolio_id = 25165545 and dashboard_run_id = 2005926 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`=25165545 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892842, 0.05280959892445531, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25165545_22-07-2025_10_01_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25165547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25165548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25165549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25165550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25165551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25165552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25165553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25165554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25165555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25165556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25165557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25165558, '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 = 25166096 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': 3317597, 'mtr_portfolio_id': 25166096, 'created_at': datetime.datetime(2025, 7, 22, 8, 16, 58), 'result': '0.05093714839173955', 'result_long': None, 'result_double': None}] Qualite : 0.05093714839173955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25166096 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25166096_22-07-2025_08_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25166096 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_P25166096_22-07-2025_08_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25166099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25166100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25166101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25166102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25166103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25166104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25166105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25166106, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25166107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25166108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25166109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25166110, 'pht': 3726}}" where mtr_portfolio_id = 25166096 and dashboard_run_id = 2005926 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`=25166096 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892843, 0.05093714839173955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25166096_22-07-2025_08_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25166099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25166100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25166101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25166102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25166103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25166104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25166105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25166106, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25166107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25166108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25166109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25166110, '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 = 25166514 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': 3317634, 'mtr_portfolio_id': 25166514, 'created_at': datetime.datetime(2025, 7, 22, 8, 30, 58), 'result': '0.0601868902193088', 'result_long': None, 'result_double': None}] Qualite : 0.0601868902193088 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25166514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25166514_22-07-2025_08_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25166514 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_P25166514_22-07-2025_08_30_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25166521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25166522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25166523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25166524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25166525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25166526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25166527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25166528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25166529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25166530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25166531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25166532, 'pht': 3726}}" where mtr_portfolio_id = 25166514 and dashboard_run_id = 2005926 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`=25166514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892844, 0.0601868902193088, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25166514_22-07-2025_08_30_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25166521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25166522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25166523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25166524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25166525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25166526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25166527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25166528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25166529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25166530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25166531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25166532, '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 = 25166842 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': 3317670, 'mtr_portfolio_id': 25166842, 'created_at': datetime.datetime(2025, 7, 22, 8, 46, 58), 'result': '0.034310626845994265', 'result_long': None, 'result_double': None}] Qualite : 0.034310626845994265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25166842 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25166842_22-07-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25166842 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_P25166842_22-07-2025_08_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25166873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25166874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25166875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25166876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25166877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25166878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25166879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25166880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25166881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25166882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25166883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25166884, 'pht': 3726}}" where mtr_portfolio_id = 25166842 and dashboard_run_id = 2005926 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`=25166842 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892845, 0.034310626845994265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25166842_22-07-2025_08_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25166873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25166874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25166875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25166876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25166877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25166878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25166879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25166880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25166881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25166882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25166883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25166884, '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 = 25167349 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': 3317721, 'mtr_portfolio_id': 25167349, 'created_at': datetime.datetime(2025, 7, 22, 9, 3), 'result': '0.029933320943727405', 'result_long': None, 'result_double': None}] Qualite : 0.029933320943727405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25167349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25167349_22-07-2025_09_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25167349 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_P25167349_22-07-2025_09_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25167385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25167386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25167387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25167388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25167389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25167390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25167391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25167392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25167393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25167394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25167395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25167396, 'pht': 3726}}" where mtr_portfolio_id = 25167349 and dashboard_run_id = 2005926 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`=25167349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892846, 0.029933320943727405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25167349_22-07-2025_09_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25167385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25167386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25167387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25167388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25167389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25167390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25167391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25167392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25167393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25167394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25167395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25167396, '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 = 25168032 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': 3317798, 'mtr_portfolio_id': 25168032, 'created_at': datetime.datetime(2025, 7, 22, 9, 16, 58), 'result': '0.008531036306393097', 'result_long': None, 'result_double': None}] Qualite : 0.008531036306393097 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25168032 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25168032_22-07-2025_09_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25168032 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_P25168032_22-07-2025_09_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25168087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25168088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25168089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25168090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25168091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25168092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25168093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25168094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25168095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25168096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25168097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25168098, 'pht': 3726}}" where mtr_portfolio_id = 25168032 and dashboard_run_id = 2005926 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`=25168032 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892847, 0.008531036306393097, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25168032_22-07-2025_09_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25168087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25168088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25168089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25168090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25168091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25168092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25168093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25168094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25168095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25168096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25168097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25168098, '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 = 25169038 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': 3317843, 'mtr_portfolio_id': 25169038, 'created_at': datetime.datetime(2025, 7, 22, 9, 32, 58), 'result': '0.030149035725590825', 'result_long': None, 'result_double': None}] Qualite : 0.030149035725590825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25169038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25169038_22-07-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25169038 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_P25169038_22-07-2025_09_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25169065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25169066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25169067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25169068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25169069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25169070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25169071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25169072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25169073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25169074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25169075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25169076, 'pht': 3726}}" where mtr_portfolio_id = 25169038 and dashboard_run_id = 2005926 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`=25169038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892848, 0.030149035725590825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25169038_22-07-2025_09_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25169065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25169066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25169067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25169068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25169069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25169070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25169071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25169072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25169073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25169074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25169075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25169076, '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 = 25169714 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': 3317885, 'mtr_portfolio_id': 25169714, 'created_at': datetime.datetime(2025, 7, 22, 10, 1, 28), 'result': '0.06524816794773328', 'result_long': None, 'result_double': None}] Qualite : 0.06524816794773328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25169714 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25169714_22-07-2025_10_01_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25169714 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_P25169714_22-07-2025_10_01_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25169813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25169814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25169815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25169816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25169817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25169818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25169819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25169820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25169821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25169822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25169823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25169824, 'pht': 3726}}" where mtr_portfolio_id = 25169714 and dashboard_run_id = 2005926 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`=25169714 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892849, 0.06524816794773328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25169714_22-07-2025_10_01_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25169813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25169814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25169815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25169816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25169817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25169818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25169819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25169820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25169821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25169822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25169823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25169824, '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 = 25170269 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': 3317929, 'mtr_portfolio_id': 25170269, 'created_at': datetime.datetime(2025, 7, 22, 10, 0, 58), 'result': '0.060782524445182166', 'result_long': None, 'result_double': None}] Qualite : 0.060782524445182166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25170269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25170269_22-07-2025_10_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25170269 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_P25170269_22-07-2025_10_00_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25170294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25170295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25170297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25170298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25170299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25170300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25170301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25170302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25170303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25170304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25170305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25170306, 'pht': 3726}}" where mtr_portfolio_id = 25170269 and dashboard_run_id = 2005926 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`=25170269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892850, 0.060782524445182166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25170269_22-07-2025_10_00_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25170294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25170295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25170297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25170298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25170299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25170300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25170301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25170302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25170303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25170304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25170305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25170306, '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 = 25170702 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': 3317979, 'mtr_portfolio_id': 25170702, 'created_at': datetime.datetime(2025, 7, 22, 10, 16, 31), 'result': '0.04749717856111558', 'result_long': None, 'result_double': None}] Qualite : 0.04749717856111558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25170702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25170702_22-07-2025_10_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25170702 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_P25170702_22-07-2025_10_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25170721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25170722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25170723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25170724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25170725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25170726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25170727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25170728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25170729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25170730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25170731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25170732, 'pht': 3726}}" where mtr_portfolio_id = 25170702 and dashboard_run_id = 2005926 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`=25170702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892851, 0.04749717856111558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25170702_22-07-2025_10_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25170721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25170722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25170723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25170724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25170725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25170726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25170727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25170728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25170729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25170730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25170731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25170732, '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 = 25171221 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': 3318023, 'mtr_portfolio_id': 25171221, 'created_at': datetime.datetime(2025, 7, 22, 12, 26, 29), 'result': '0.03367052731893276', 'result_long': None, 'result_double': None}] Qualite : 0.03367052731893276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25171221 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25171221_22-07-2025_12_26_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25171221 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_P25171221_22-07-2025_12_26_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25171248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25171249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25171250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25171251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25171252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25171253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25171254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25171255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25171256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25171257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25171258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25171259, 'pht': 3726}}" where mtr_portfolio_id = 25171221 and dashboard_run_id = 2005926 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`=25171221 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892852, 0.03367052731893276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25171221_22-07-2025_12_26_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25171248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25171249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25171250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25171251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25171252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25171253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25171254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25171255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25171256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25171257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25171258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25171259, '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 = 25171512 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': 3318065, 'mtr_portfolio_id': 25171512, 'created_at': datetime.datetime(2025, 7, 22, 10, 46, 59), 'result': '0.04214064663323341', 'result_long': None, 'result_double': None}] Qualite : 0.04214064663323341 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25171512 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25171512_22-07-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25171512 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_P25171512_22-07-2025_10_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25171518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25171519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25171520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25171521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25171522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25171523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25171524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25171525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25171526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25171527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25171528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25171529, 'pht': 3726}}" where mtr_portfolio_id = 25171512 and dashboard_run_id = 2005926 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`=25171512 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892853, 0.04214064663323341, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25171512_22-07-2025_10_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25171518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25171519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25171520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25171521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25171522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25171523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25171524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25171525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25171526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25171527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25171528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25171529, '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 = 25171866 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': 3318174, 'mtr_portfolio_id': 25171866, 'created_at': datetime.datetime(2025, 7, 22, 11, 0, 59), 'result': '0.03300675702750411', 'result_long': None, 'result_double': None}] Qualite : 0.03300675702750411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25171866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25171866_22-07-2025_11_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25171866 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_P25171866_22-07-2025_11_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25171896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25171897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25171898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25171899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25171900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25171901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25171902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25171903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25171904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25171905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25171906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25171907, 'pht': 3726}}" where mtr_portfolio_id = 25171866 and dashboard_run_id = 2005926 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`=25171866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892854, 0.03300675702750411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25171866_22-07-2025_11_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25171896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25171897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25171898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25171899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25171900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25171901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25171902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25171903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25171904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25171905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25171906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25171907, '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 = 25172392 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': 3318293, 'mtr_portfolio_id': 25172392, 'created_at': datetime.datetime(2025, 7, 22, 11, 16, 31), 'result': '0.030798683330568326', 'result_long': None, 'result_double': None}] Qualite : 0.030798683330568326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25172392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25172392_22-07-2025_11_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25172392 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_P25172392_22-07-2025_11_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25172421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25172422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25172423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25172424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25172425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25172426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25172427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25172428, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25172429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25172430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25172431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25172432, 'pht': 3726}}" where mtr_portfolio_id = 25172392 and dashboard_run_id = 2005926 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`=25172392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892855, 0.030798683330568326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25172392_22-07-2025_11_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25172421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25172422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25172423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25172424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25172425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25172426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25172427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25172428, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25172429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25172430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25172431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25172432, '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 = 25173049 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': 3318374, 'mtr_portfolio_id': 25173049, 'created_at': datetime.datetime(2025, 7, 22, 12, 0, 59), 'result': '0.041071304286704434', 'result_long': None, 'result_double': None}] Qualite : 0.041071304286704434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25173049 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25173049_22-07-2025_12_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25173049 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_P25173049_22-07-2025_12_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25173078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25173079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25173080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25173081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25173082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25173083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25173084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25173085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25173086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25173087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25173088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25173089, 'pht': 3726}}" where mtr_portfolio_id = 25173049 and dashboard_run_id = 2005926 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`=25173049 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892856, 0.041071304286704434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25173049_22-07-2025_12_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25173078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25173079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25173080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25173081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25173082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25173083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25173084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25173085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25173086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25173087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25173088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25173089, '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 = 25173486 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': 3318425, 'mtr_portfolio_id': 25173486, 'created_at': datetime.datetime(2025, 7, 22, 12, 1, 27), 'result': '0.03730574661050238', 'result_long': None, 'result_double': None}] Qualite : 0.03730574661050238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25173486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25173486_22-07-2025_12_01_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25173486 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_P25173486_22-07-2025_12_01_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25173519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25173520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25173521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25173522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25173523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25173524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25173525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25173526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25173527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25173528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25173529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25173530, 'pht': 3726}}" where mtr_portfolio_id = 25173486 and dashboard_run_id = 2005926 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`=25173486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892857, 0.03730574661050238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25173486_22-07-2025_12_01_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25173519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25173520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25173521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25173522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25173523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25173524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25173525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25173526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25173527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25173528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25173529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25173530, '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 = 25173946 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': 3318470, 'mtr_portfolio_id': 25173946, 'created_at': datetime.datetime(2025, 7, 22, 12, 1, 59), 'result': '0.05562928387124388', 'result_long': None, 'result_double': None}] Qualite : 0.05562928387124388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25173946 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25173946_22-07-2025_12_01_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25173946 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_P25173946_22-07-2025_12_01_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25173953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25173954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25173955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25173956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25173957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25173958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25173959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25173960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25173961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25173962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25173963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25173964, 'pht': 3726}}" where mtr_portfolio_id = 25173946 and dashboard_run_id = 2005926 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`=25173946 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892858, 0.05562928387124388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25173946_22-07-2025_12_01_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25173953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25173954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25173955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25173956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25173957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25173958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25173959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25173960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25173961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25173962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25173963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25173964, '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 = 25174356 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': 3318522, 'mtr_portfolio_id': 25174356, 'created_at': datetime.datetime(2025, 7, 22, 12, 16, 57), 'result': '0.04132487173310017', 'result_long': None, 'result_double': None}] Qualite : 0.04132487173310017 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25174356 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25174356_22-07-2025_12_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25174356 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_P25174356_22-07-2025_12_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25174365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25174366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25174367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25174368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25174369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25174370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25174371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25174372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25174373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25174375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25174376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25174377, 'pht': 3726}}" where mtr_portfolio_id = 25174356 and dashboard_run_id = 2005926 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`=25174356 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892859, 0.04132487173310017, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25174356_22-07-2025_12_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25174365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25174366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25174367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25174368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25174369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25174370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25174371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25174372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25174373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25174375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25174376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25174377, '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 = 25175012 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': 3318586, 'mtr_portfolio_id': 25175012, 'created_at': datetime.datetime(2025, 7, 22, 12, 32, 58), 'result': '0.029209781391054', 'result_long': None, 'result_double': None}] Qualite : 0.029209781391054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25175012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25175012_22-07-2025_12_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25175012 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_P25175012_22-07-2025_12_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25175057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25175058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25175059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25175060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25175061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25175062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25175063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25175064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25175065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25175066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25175067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25175068, 'pht': 3726}}" where mtr_portfolio_id = 25175012 and dashboard_run_id = 2005926 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`=25175012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892860, 0.029209781391054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25175012_22-07-2025_12_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25175057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25175058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25175059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25175060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25175061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25175062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25175063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25175064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25175065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25175066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25175067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25175068, '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 = 25175650 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': 3318634, 'mtr_portfolio_id': 25175650, 'created_at': datetime.datetime(2025, 7, 22, 12, 47, 1), 'result': '0.026318677906121545', 'result_long': None, 'result_double': None}] Qualite : 0.026318677906121545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25175650 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25175650_22-07-2025_12_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25175650 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_P25175650_22-07-2025_12_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25175661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25175662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25175663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25175664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25175665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25175666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25175667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25175668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25175669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25175670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25175671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25175672, 'pht': 3726}}" where mtr_portfolio_id = 25175650 and dashboard_run_id = 2005926 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`=25175650 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892861, 0.026318677906121545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25175650_22-07-2025_12_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25175661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25175662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25175663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25175664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25175665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25175666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25175667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25175668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25175669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25175670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25175671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25175672, '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 = 25176021 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': 3318672, 'mtr_portfolio_id': 25176021, 'created_at': datetime.datetime(2025, 7, 22, 13, 0, 58), 'result': '0.028547218075185902', 'result_long': None, 'result_double': None}] Qualite : 0.028547218075185902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25176021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25176021_22-07-2025_13_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25176021 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_P25176021_22-07-2025_13_00_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25176025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25176026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25176027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25176028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25176029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25176030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25176031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25176032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25176033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25176034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25176035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25176036, 'pht': 3726}}" where mtr_portfolio_id = 25176021 and dashboard_run_id = 2005926 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`=25176021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892862, 0.028547218075185902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25176021_22-07-2025_13_00_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25176025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25176026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25176027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25176028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25176029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25176030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25176031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25176032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25176033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25176034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25176035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25176036, '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 = 25176547 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': 3318735, 'mtr_portfolio_id': 25176547, 'created_at': datetime.datetime(2025, 7, 22, 13, 16, 59), 'result': '0.02266195086986322', 'result_long': None, 'result_double': None}] Qualite : 0.02266195086986322 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25176547 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25176547_22-07-2025_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25176547 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_P25176547_22-07-2025_13_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25176563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25176565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25176566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25176567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25176568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25176569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25176570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25176571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25176572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25176573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25176574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25176575, 'pht': 3726}}" where mtr_portfolio_id = 25176547 and dashboard_run_id = 2005926 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`=25176547 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892863, 0.02266195086986322, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25176547_22-07-2025_13_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25176563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25176565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25176566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25176567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25176568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25176569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25176570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25176571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25176572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25176573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25176574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25176575, '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 = 25177012 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': 3318780, 'mtr_portfolio_id': 25177012, 'created_at': datetime.datetime(2025, 7, 22, 19, 1, 27), 'result': '0.041455128761211865', 'result_long': None, 'result_double': None}] Qualite : 0.041455128761211865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25177012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25177012_22-07-2025_19_01_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25177012 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_P25177012_22-07-2025_19_01_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25177014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25177015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25177016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25177017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25177018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25177019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25177020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25177021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25177022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25177023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25177024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25177025, 'pht': 3726}}" where mtr_portfolio_id = 25177012 and dashboard_run_id = 2005926 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`=25177012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892864, 0.041455128761211865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25177012_22-07-2025_19_01_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25177014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25177015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25177016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25177017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25177018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25177019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25177020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25177021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25177022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25177023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25177024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25177025, '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 = 25177325 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 25177325 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25177325 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25177325 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25177325 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25177325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25177325_22-07-2025_13_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25177325 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_P25177325_22-07-2025_13_49_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25177364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25177365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25177366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25177367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25177368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25177369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25177370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25177371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25177372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25177373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25177374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25177375, 'pht': 3726}}" where mtr_portfolio_id = 25177325 and dashboard_run_id = 2005926 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 = 25177328 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': 3318817, 'mtr_portfolio_id': 25177328, 'created_at': datetime.datetime(2025, 7, 22, 14, 0, 58), 'result': '0.02315456043193624', 'result_long': None, 'result_double': None}] Qualite : 0.02315456043193624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25177328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25177328_22-07-2025_14_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25177328 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_P25177328_22-07-2025_14_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25177336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25177337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25177338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25177339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25177340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25177342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25177343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25177344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25177345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25177346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25177347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25177348, 'pht': 3726}}" where mtr_portfolio_id = 25177328 and dashboard_run_id = 2005926 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`=25177328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892866, 0.02315456043193624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25177328_22-07-2025_14_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25177336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25177337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25177338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25177339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25177340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25177342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25177343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25177344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25177345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25177346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25177347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25177348, '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 = 25177965 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': 3318906, 'mtr_portfolio_id': 25177965, 'created_at': datetime.datetime(2025, 7, 22, 14, 16, 28), 'result': '0.05334073542422332', 'result_long': None, 'result_double': None}] Qualite : 0.05334073542422332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25177965 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25177965_22-07-2025_14_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25177965 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_P25177965_22-07-2025_14_16_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25178015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25178016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25178017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25178018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25178019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25178020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25178021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25178022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25178023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25178024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25178025, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25178026, 'pht': 3726}}" where mtr_portfolio_id = 25177965 and dashboard_run_id = 2005926 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`=25177965 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892867, 0.05334073542422332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25177965_22-07-2025_14_16_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25178015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25178016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25178017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25178018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25178019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25178020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25178021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25178022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25178023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25178024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25178025, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25178026, '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 = 25178663 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': 3318972, 'mtr_portfolio_id': 25178663, 'created_at': datetime.datetime(2025, 7, 22, 14, 30, 30), 'result': '0.03099285825259152', 'result_long': None, 'result_double': None}] Qualite : 0.03099285825259152 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25178663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25178663_22-07-2025_14_30_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25178663 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_P25178663_22-07-2025_14_30_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25178695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25178696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25178697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25178698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25178699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25178700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25178701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25178702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25178703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25178704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25178705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25178706, 'pht': 3726}}" where mtr_portfolio_id = 25178663 and dashboard_run_id = 2005926 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`=25178663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892868, 0.03099285825259152, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25178663_22-07-2025_14_30_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25178695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25178696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25178697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25178698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25178699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25178700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25178701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25178702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25178703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25178704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25178705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25178706, '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 = 25179104 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': 3319015, 'mtr_portfolio_id': 25179104, 'created_at': datetime.datetime(2025, 7, 22, 14, 46, 59), 'result': '0.04006964760160587', 'result_long': None, 'result_double': None}] Qualite : 0.04006964760160587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25179104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25179104_22-07-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25179104 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_P25179104_22-07-2025_14_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25179110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25179111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25179112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25179113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25179114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25179115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25179116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25179117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25179118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25179119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25179120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25179121, 'pht': 3726}}" where mtr_portfolio_id = 25179104 and dashboard_run_id = 2005926 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`=25179104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892869, 0.04006964760160587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25179104_22-07-2025_14_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25179110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25179111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25179112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25179113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25179114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25179115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25179116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25179117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25179118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25179119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25179120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25179121, '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 = 25179732 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': 3319071, 'mtr_portfolio_id': 25179732, 'created_at': datetime.datetime(2025, 7, 22, 15, 0, 30), 'result': '0.03417529805745435', 'result_long': None, 'result_double': None}] Qualite : 0.03417529805745435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25179732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25179732_22-07-2025_15_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25179732 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_P25179732_22-07-2025_15_00_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25179740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25179741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25179742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25179743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25179744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25179745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25179746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25179747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25179748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25179749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25179750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25179751, 'pht': 3726}}" where mtr_portfolio_id = 25179732 and dashboard_run_id = 2005926 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`=25179732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892870, 0.03417529805745435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25179732_22-07-2025_15_00_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25179740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25179741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25179742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25179743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25179744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25179745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25179746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25179747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25179748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25179749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25179750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25179751, '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 = 25180239 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': 3319124, 'mtr_portfolio_id': 25180239, 'created_at': datetime.datetime(2025, 7, 22, 15, 16, 58), 'result': '0.04248218059763967', 'result_long': None, 'result_double': None}] Qualite : 0.04248218059763967 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25180239 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25180239_22-07-2025_15_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25180239 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_P25180239_22-07-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25180242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25180243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25180244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25180245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25180246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25180247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25180248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25180249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25180250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25180251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25180252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25180253, 'pht': 3726}}" where mtr_portfolio_id = 25180239 and dashboard_run_id = 2005926 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`=25180239 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892871, 0.04248218059763967, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25180239_22-07-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25180242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25180243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25180244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25180245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25180246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25180247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25180248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25180249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25180250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25180251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25180252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25180253, '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 = 25180817 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': 3319170, 'mtr_portfolio_id': 25180817, 'created_at': datetime.datetime(2025, 7, 22, 15, 30, 57), 'result': '0.040782319846122954', 'result_long': None, 'result_double': None}] Qualite : 0.040782319846122954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25180817 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25180817_22-07-2025_15_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25180817 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_P25180817_22-07-2025_15_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25180820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25180821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25180822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25180823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25180824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25180825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25180826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25180827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25180828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25180829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25180830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25180831, 'pht': 3726}}" where mtr_portfolio_id = 25180817 and dashboard_run_id = 2005926 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`=25180817 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892872, 0.040782319846122954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25180817_22-07-2025_15_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25180820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25180821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25180822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25180823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25180824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25180825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25180826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25180827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25180828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25180829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25180830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25180831, '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 = 25181245 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': 3319209, 'mtr_portfolio_id': 25181245, 'created_at': datetime.datetime(2025, 7, 22, 19, 0, 31), 'result': '0.03221657739132216', 'result_long': None, 'result_double': None}] Qualite : 0.03221657739132216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25181245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25181245_22-07-2025_19_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25181245 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_P25181245_22-07-2025_19_00_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25181273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25181274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25181275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25181276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25181277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25181278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25181279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25181280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25181281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25181282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25181283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25181284, 'pht': 3726}}" where mtr_portfolio_id = 25181245 and dashboard_run_id = 2005926 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`=25181245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892873, 0.03221657739132216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25181245_22-07-2025_19_00_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25181273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25181274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25181275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25181276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25181277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25181278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25181279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25181280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25181281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25181282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25181283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25181284, '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 = 25181715 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': 3319255, 'mtr_portfolio_id': 25181715, 'created_at': datetime.datetime(2025, 7, 22, 16, 2, 57), 'result': '0.029162671240069205', 'result_long': None, 'result_double': None}] Qualite : 0.029162671240069205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25181715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25181715_22-07-2025_16_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25181715 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_P25181715_22-07-2025_16_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25181742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25181743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25181744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25181745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25181746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25181747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25181748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25181749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25181750, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25181751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25181752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25181753, 'pht': 3726}}" where mtr_portfolio_id = 25181715 and dashboard_run_id = 2005926 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`=25181715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892874, 0.029162671240069205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25181715_22-07-2025_16_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25181742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25181743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25181744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25181745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25181746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25181747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25181748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25181749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25181750, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25181751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25181752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25181753, '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 = 25182199 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': 3319303, 'mtr_portfolio_id': 25182199, 'created_at': datetime.datetime(2025, 7, 22, 16, 17), 'result': '0.030817712596138455', 'result_long': None, 'result_double': None}] Qualite : 0.030817712596138455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25182199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25182199_22-07-2025_16_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25182199 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_P25182199_22-07-2025_16_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25182203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25182204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25182205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25182206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25182207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25182208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25182209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25182210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25182211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25182212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25182213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25182214, 'pht': 3726}}" where mtr_portfolio_id = 25182199 and dashboard_run_id = 2005926 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`=25182199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892875, 0.030817712596138455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25182199_22-07-2025_16_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25182203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25182204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25182205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25182206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25182207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25182208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25182209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25182210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25182211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25182212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25182213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25182214, '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 = 25182748 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': 3319349, 'mtr_portfolio_id': 25182748, 'created_at': datetime.datetime(2025, 7, 22, 16, 32, 57), 'result': '0.03591719902080006', 'result_long': None, 'result_double': None}] Qualite : 0.03591719902080006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25182748 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25182748_22-07-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25182748 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_P25182748_22-07-2025_16_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25182774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25182775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25182776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25182777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25182778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25182779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25182780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25182781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25182782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25182783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25182784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25182785, 'pht': 3726}}" where mtr_portfolio_id = 25182748 and dashboard_run_id = 2005926 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`=25182748 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892876, 0.03591719902080006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25182748_22-07-2025_16_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25182774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25182775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25182776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25182777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25182778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25182779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25182780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25182781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25182782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25182783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25182784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25182785, '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 = 25183399 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': 3319409, 'mtr_portfolio_id': 25183399, 'created_at': datetime.datetime(2025, 7, 22, 16, 46, 29), 'result': '0.02934140281527116', 'result_long': None, 'result_double': None}] Qualite : 0.02934140281527116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25183399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25183399_22-07-2025_16_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25183399 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_P25183399_22-07-2025_16_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25183442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25183443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25183444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25183445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25183446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25183447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25183448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25183449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25183450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25183451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25183452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25183453, 'pht': 3726}}" where mtr_portfolio_id = 25183399 and dashboard_run_id = 2005926 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`=25183399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892877, 0.02934140281527116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25183399_22-07-2025_16_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25183442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25183443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25183444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25183445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25183446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25183447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25183448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25183449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25183450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25183451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25183452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25183453, '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 = 25184127 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': 3319457, 'mtr_portfolio_id': 25184127, 'created_at': datetime.datetime(2025, 7, 22, 18, 59, 57), 'result': '0.05239450679203662', 'result_long': None, 'result_double': None}] Qualite : 0.05239450679203662 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25184127 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25184127_22-07-2025_18_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25184127 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_P25184127_22-07-2025_18_59_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25184129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25184130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25184131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25184132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25184133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25184134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25184135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25184136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25184137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25184138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25184139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25184140, 'pht': 3726}}" where mtr_portfolio_id = 25184127 and dashboard_run_id = 2005926 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`=25184127 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892878, 0.05239450679203662, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25184127_22-07-2025_18_59_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25184129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25184130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25184131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25184132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25184133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25184134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25184135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25184136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25184137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25184138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25184139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25184140, '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 = 25184524 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': 3319508, 'mtr_portfolio_id': 25184524, 'created_at': datetime.datetime(2025, 7, 22, 17, 16, 31), 'result': '0.01988238038148093', 'result_long': None, 'result_double': None}] Qualite : 0.01988238038148093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25184524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25184524_22-07-2025_17_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25184524 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_P25184524_22-07-2025_17_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25184533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25184534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25184535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25184536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25184537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25184538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25184539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25184540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25184541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25184542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25184543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25184544, 'pht': 3726}}" where mtr_portfolio_id = 25184524 and dashboard_run_id = 2005926 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`=25184524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892879, 0.01988238038148093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25184524_22-07-2025_17_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25184533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25184534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25184535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25184536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25184537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25184538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25184539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25184540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25184541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25184542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25184543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25184544, '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 = 25184987 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': 3319590, 'mtr_portfolio_id': 25184987, 'created_at': datetime.datetime(2025, 7, 22, 17, 30, 56), 'result': '0.03624237492501368', 'result_long': None, 'result_double': None}] Qualite : 0.03624237492501368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25184987 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25184987_22-07-2025_17_30_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25184987 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_P25184987_22-07-2025_17_30_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25184994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25184995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25184996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25184997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25184998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25184999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25185000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25185001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25185002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25185003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25185004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25185005, 'pht': 3726}}" where mtr_portfolio_id = 25184987 and dashboard_run_id = 2005926 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`=25184987 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892880, 0.03624237492501368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25184987_22-07-2025_17_30_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25184994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25184995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25184996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25184997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25184998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25184999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25185000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25185001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25185002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25185003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25185004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25185005, '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 = 25185386 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': 3319687, 'mtr_portfolio_id': 25185386, 'created_at': datetime.datetime(2025, 7, 22, 17, 46, 58), 'result': '0.0053861105815907395', 'result_long': None, 'result_double': None}] Qualite : 0.0053861105815907395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25185386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25185386_22-07-2025_17_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25185386 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_P25185386_22-07-2025_17_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25185397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25185398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25185399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25185400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25185401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25185402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25185403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25185404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25185405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25185406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25185407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25185408, 'pht': 3726}}" where mtr_portfolio_id = 25185386 and dashboard_run_id = 2005926 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`=25185386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892881, 0.0053861105815907395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25185386_22-07-2025_17_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25185397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25185398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25185399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25185400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25185401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25185402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25185403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25185404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25185405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25185406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25185407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25185408, '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 = 25185817 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': 3319778, 'mtr_portfolio_id': 25185817, 'created_at': datetime.datetime(2025, 7, 22, 18, 0, 32), 'result': '0.0031685361917663073', 'result_long': None, 'result_double': None}] Qualite : 0.0031685361917663073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25185817 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25185817_22-07-2025_18_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25185817 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_P25185817_22-07-2025_18_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25185840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25185841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25185842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25185843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25185844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25185845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25185846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25185847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25185848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25185849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25185850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25185851, 'pht': 3726}}" where mtr_portfolio_id = 25185817 and dashboard_run_id = 2005926 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`=25185817 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892882, 0.0031685361917663073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25185817_22-07-2025_18_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25185840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25185841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25185842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25185843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25185844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25185845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25185846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25185847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25185848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25185849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25185850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25185851, '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 = 25186346 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': 3319906, 'mtr_portfolio_id': 25186346, 'created_at': datetime.datetime(2025, 7, 22, 18, 16, 59), 'result': '0.019297246862650632', 'result_long': None, 'result_double': None}] Qualite : 0.019297246862650632 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25186346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25186346_22-07-2025_18_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25186346 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_P25186346_22-07-2025_18_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25186357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25186358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25186359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25186360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25186361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25186362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25186363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25186364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25186365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25186366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25186367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25186368, 'pht': 3726}}" where mtr_portfolio_id = 25186346 and dashboard_run_id = 2005926 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`=25186346 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892883, 0.019297246862650632, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25186346_22-07-2025_18_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25186357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25186358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25186359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25186360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25186361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25186362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25186363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25186364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25186365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25186366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25186367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25186368, '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 = 25186892 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': 3320018, 'mtr_portfolio_id': 25186892, 'created_at': datetime.datetime(2025, 7, 22, 18, 32, 59), 'result': '0.03816747546040439', 'result_long': None, 'result_double': None}] Qualite : 0.03816747546040439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25186892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25186892_22-07-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25186892 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_P25186892_22-07-2025_18_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25186898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25186899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25186900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25186901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25186902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25186903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25186904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25186905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25186906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25186907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25186908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25186909, 'pht': 3726}}" where mtr_portfolio_id = 25186892 and dashboard_run_id = 2005926 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`=25186892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892884, 0.03816747546040439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25186892_22-07-2025_18_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25186898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25186899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25186900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25186901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25186902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25186903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25186904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25186905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25186906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25186907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25186908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25186909, '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 = 25187325 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': 3320119, 'mtr_portfolio_id': 25187325, 'created_at': datetime.datetime(2025, 7, 22, 18, 47), 'result': '0.04134415716713946', 'result_long': None, 'result_double': None}] Qualite : 0.04134415716713946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25187325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25187325_22-07-2025_18_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25187325 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_P25187325_22-07-2025_18_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25187337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25187338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25187339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25187340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25187341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25187342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25187344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25187345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25187346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25187347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25187348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25187349, 'pht': 3726}}" where mtr_portfolio_id = 25187325 and dashboard_run_id = 2005926 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`=25187325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892885, 0.04134415716713946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25187325_22-07-2025_18_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25187337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25187338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25187339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25187340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25187341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25187342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25187344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25187345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25187346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25187347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25187348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25187349, '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 = 25187746 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': 3320221, 'mtr_portfolio_id': 25187746, 'created_at': datetime.datetime(2025, 7, 22, 19, 1, 1), 'result': '0.02688483589821545', 'result_long': None, 'result_double': None}] Qualite : 0.02688483589821545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25187746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25187746_22-07-2025_19_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25187746 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_P25187746_22-07-2025_19_01_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25187773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25187774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25187775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25187776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25187777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25187778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25187779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25187780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25187781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25187782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25187783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25187784, 'pht': 3726}}" where mtr_portfolio_id = 25187746 and dashboard_run_id = 2005926 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`=25187746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892886, 0.02688483589821545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25187746_22-07-2025_19_01_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25187773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25187774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25187775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25187776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25187777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25187778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25187779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25187780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25187781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25187782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25187783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25187784, '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 = 25188180 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': 3320346, 'mtr_portfolio_id': 25188180, 'created_at': datetime.datetime(2025, 7, 22, 19, 16, 56), 'result': '0.10322935525285429', 'result_long': None, 'result_double': None}] Qualite : 0.10322935525285429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25188180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25188180_22-07-2025_19_16_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25188180 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_P25188180_22-07-2025_19_16_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25188181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25188182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25188183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25188184, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25188185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25188186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25188187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25188188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25188189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25188190, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25188191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25188192, 'pht': 3726}}" where mtr_portfolio_id = 25188180 and dashboard_run_id = 2005926 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`=25188180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892887, 0.10322935525285429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25188180_22-07-2025_19_16_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25188181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25188182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25188183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25188184, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25188185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25188186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25188187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25188188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25188189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25188190, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25188191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25188192, '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 = 25188859 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': 3320448, 'mtr_portfolio_id': 25188859, 'created_at': datetime.datetime(2025, 7, 22, 19, 30, 57), 'result': '0.04289456629393317', 'result_long': None, 'result_double': None}] Qualite : 0.04289456629393317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25188859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25188859_22-07-2025_19_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25188859 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_P25188859_22-07-2025_19_30_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25188864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25188865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25188866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25188867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25188868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25188869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25188870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25188871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25188872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25188873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25188874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25188875, 'pht': 3726}}" where mtr_portfolio_id = 25188859 and dashboard_run_id = 2005926 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`=25188859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892888, 0.04289456629393317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25188859_22-07-2025_19_30_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25188864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25188865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25188866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25188867, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25188868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25188869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25188870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25188871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25188872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25188873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25188874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25188875, '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 = 25189318 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': 3320554, 'mtr_portfolio_id': 25189318, 'created_at': datetime.datetime(2025, 7, 22, 19, 46, 58), 'result': '0.039444796776102665', 'result_long': None, 'result_double': None}] Qualite : 0.039444796776102665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25189318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25189318_22-07-2025_19_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25189318 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_P25189318_22-07-2025_19_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25189325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25189326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25189327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25189328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25189329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25189330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25189331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25189332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25189333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25189334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25189335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25189336, 'pht': 3726}}" where mtr_portfolio_id = 25189318 and dashboard_run_id = 2005926 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`=25189318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892889, 0.039444796776102665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25189318_22-07-2025_19_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25189325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25189326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25189327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25189328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25189329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25189330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25189331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25189332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25189333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25189334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25189335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25189336, '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 = 25189678 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': 3320640, 'mtr_portfolio_id': 25189678, 'created_at': datetime.datetime(2025, 7, 22, 20, 0, 57), 'result': '0.03491046780223638', 'result_long': None, 'result_double': None}] Qualite : 0.03491046780223638 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25189678 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25189678_22-07-2025_20_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25189678 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_P25189678_22-07-2025_20_00_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25189694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25189695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25189696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25189697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25189698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25189699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25189700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25189701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25189702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25189703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25189704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25189705, 'pht': 3726}}" where mtr_portfolio_id = 25189678 and dashboard_run_id = 2005927 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`=25189678 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892890, 0.03491046780223638, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25189678_22-07-2025_20_00_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25189694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25189695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25189696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25189697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25189698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25189699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25189700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25189701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25189702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25189703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25189704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25189705, '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 = 25190063 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': 3320768, 'mtr_portfolio_id': 25190063, 'created_at': datetime.datetime(2025, 7, 22, 20, 16, 57), 'result': '0.05375026012485743', 'result_long': None, 'result_double': None}] Qualite : 0.05375026012485743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25190063 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25190063_22-07-2025_20_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25190063 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_P25190063_22-07-2025_20_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25190064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25190065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25190066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25190067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25190068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25190069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25190070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25190071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25190072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25190073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25190074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25190075, 'pht': 3726}}" where mtr_portfolio_id = 25190063 and dashboard_run_id = 2005927 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`=25190063 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892891, 0.05375026012485743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25190063_22-07-2025_20_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25190064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25190065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25190066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25190067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25190068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25190069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25190070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25190071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25190072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25190073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25190074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25190075, '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 = 25190700 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': 3320889, 'mtr_portfolio_id': 25190700, 'created_at': datetime.datetime(2025, 7, 22, 20, 30, 57), 'result': '0.0401174471571382', 'result_long': None, 'result_double': None}] Qualite : 0.0401174471571382 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25190700 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25190700_22-07-2025_20_30_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25190700 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_P25190700_22-07-2025_20_30_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25190701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25190702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25190703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25190704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25190705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25190706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25190707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25190708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25190709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25190710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25190711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25190712, 'pht': 3726}}" where mtr_portfolio_id = 25190700 and dashboard_run_id = 2005927 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`=25190700 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892892, 0.0401174471571382, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25190700_22-07-2025_20_30_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25190701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25190702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25190703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25190704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25190705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25190706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25190707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25190708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25190709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25190710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25190711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25190712, '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 = 25191157 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': 3320983, 'mtr_portfolio_id': 25191157, 'created_at': datetime.datetime(2025, 7, 22, 20, 42, 57), 'result': '0.03217928873998648', 'result_long': None, 'result_double': None}] Qualite : 0.03217928873998648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25191157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25191157_22-07-2025_20_42_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25191157 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_P25191157_22-07-2025_20_42_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25191165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25191166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25191167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25191168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25191169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25191170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25191171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25191172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25191173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25191174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25191175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25191176, 'pht': 3726}}" where mtr_portfolio_id = 25191157 and dashboard_run_id = 2005927 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`=25191157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12892893, 0.03217928873998648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25191157_22-07-2025_20_42_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25191165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25191166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25191167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25191168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25191169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25191170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25191171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25191172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25191173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25191174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25191175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25191176, '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 (25155989,25156005,25156012,25156290,25156560,25156935,25157295,25157988,25158310,25158648,25159058,25159590,25159985,25160298,25160634,25160985,25161378,25161694,25162032,25162433,25162875,25163115,25163476,25163841,25164591,25165035,25165545,25166096,25166514,25166842,25167349,25168032,25169038,25169714,25170269,25170702,25171221,25171512,25171866,25172392,25173049,25173486,25173946,25174356,25175012,25175650,25176021,25176547,25177012,25177325,25177328,25177965,25178663,25179104,25179732,25180239,25180817,25181245,25181715,25182199,25182748,25183399,25184127,25184524,25184987,25185386,25185817,25186346,25186892,25187325,25187746,25188180,25188859,25189318,25189678,25190063,25190700,25191157) result : ((1373087817,), (1373087821,), (1373087823,), (1373087825,), (1373087827,), (1373087832,), (1373087836,), (1373087837,), (1373087842,), (1373087849,), (1373087854,), (1373087859,), (1373087866,), (1373087873,), (1373087923,), (1373087963,), (1373088002,), (1373088014,), (1373088024,), (1373088038,), (1373087850,), (1373087947,), (1373087984,), (1373088009,), (1373088030,), (1373088041,), (1373088164,), (1373088165,), (1373088522,), (1373088529,), (1373088533,), (1373088536,), (1373088542,), (1373088544,), (1373088545,), (1373088126,), (1373088134,), (1373088147,), (1373088154,), (1373088157,), (1373088174,), (1373088186,), (1373088193,), (1373088221,), (1373088233,), (1373088237,), (1373088421,), (1373088436,), (1373088452,), (1373088483,), (1373088517,), (1373088574,), (1373088929,), (1373088944,), (1373088956,), (1373088960,), (1373088964,), (1373088967,), (1373089041,), (1373089056,), (1373089059,), (1373089081,), (1373089084,), (1373089086,), (1373089089,), (1373089090,), (1373089092,), (1373089106,), (1373089108,), (1373089112,), (1373089115,), (1373089118,), (1373089121,), (1373089143,), (1373089171,), (1373089189,), (1373089190,), (1373089193,), (1373089196,), (1373089198,), (1373089201,), (1373089233,), (1373089238,), (1373089242,), (1373089246,), (1373089248,), (1373089252,), (1373089270,), (1373089273,), (1373089278,), (1373089281,), (1373089283,), (1373089285,), (1373089302,), (1373089334,), (1373089349,), (1373089354,), (1373089357,), (1373089360,), (1373089362,), (1373089376,), (1373089380,), (1373089385,), (1373089386,), (1373089387,), (1373089388,), (1373089401,), (1373089404,), (1373089407,), (1373089409,), (1373089411,), (1373089413,), (1373089427,), (1373089430,), (1373089434,), (1373089436,), (1373089439,), (1373089441,), (1373089472,), (1373147313,), (1373089543,), (1373089549,), (1373089552,), (1373089554,), (1373089557,), (1373089571,), (1373089682,), (1373089815,), (1373089825,), (1373089848,), (1373089874,), (1373089879,), (1373089894,), (1373089935,), (1373089939,), (1373089942,), (1373089945,), (1373089948,), (1373089950,), (1373089965,), (1373089977,), (1373089986,), (1373089993,), (1373089995,), (1373089997,), (1373090011,), (1373090015,), (1373090017,), (1373090020,), (1373090023,), (1373090025,), (1373090050,), (1373090064,), (1373090066,), (1373090067,), (1373090070,), (1373090073,), (1373090104,), (1373090106,), (1373090108,), (1373090110,), (1373090114,), (1373090117,), (1373090147,), (1373090158,), (1373090161,), (1373090163,), (1373090165,), (1373090169,), (1373090208,), (1373090237,), (1373090247,), (1373090254,), (1373090255,), (1373090256,), (1373090257,), (1373090296,), (1373090321,), (1373090332,), (1373090335,), (1373090336,), (1373090337,), (1373090338,), (1373090374,), (1373090375,), (1373090377,), (1373090379,), (1373090380,), (1373090382,), (1373090403,), (1373090406,), (1373090409,), (1373090411,), (1373090413,), (1373090415,), (1373140769,), (1373090442,), (1373090466,), (1373090469,), (1373090479,), (1373090488,), (1373090490,), (1373090492,), (1373090513,), (1373090516,), (1373090518,), (1373090520,), (1373090522,), (1373090525,), (1373090540,), (1373090557,), (1373090560,), (1373090563,), (1373090566,), (1373090569,), (1373090583,), (1373090585,), (1373090588,), (1373090589,), (1373090591,), (1373090593,), (1373090614,), (1373090646,), (1373090649,), (1373090652,), (1373090654,), (1373090656,), (1373090659,), (1373090675,), (1373090682,), (1373090688,), (1373090690,), (1373090691,), (1373090693,), (1373090714,), (1373090716,), (1373090718,), (1373090719,), (1373090722,), (1373090724,), (1373090746,), (1373090754,), (1373090758,), (1373090761,), (1373090763,), (1373090766,), (1373090812,), (1373090842,), (1373090873,), (1373090876,), (1373090879,), (1373090881,), (1373090883,), (1373090885,), (1373090901,), (1373090903,), (1373090906,), (1373090908,), (1373090910,), (1373090911,), (1373090932,), (1373090934,), (1373090938,), (1373090942,), (1373090947,), (1373090950,), (1373090961,), (1373090968,), (1373090982,), (1373090984,), (1373090987,), (1373090989,), (1373091009,), (1373091013,), (1373091014,), (1373091016,), (1373091017,), (1373091018,), (1373091035,), (1373091044,), (1373091047,), (1373091048,), (1373091049,), (1373091051,), (1373091066,), (1373091069,), (1373091072,), (1373091075,), (1373091078,), (1373091083,), (1373091107,), (1373091115,), (1373091118,), (1373091122,), (1373091124,), (1373091126,), (1373091142,), (1373091145,), (1373091147,), (1373091149,), (1373091152,), (1373091154,), (1373091178,), (1373091181,), (1373091184,), (1373091185,), (1373091189,), (1373091193,), (1373091217,), (1373091247,), (1373091250,), (1373091252,), (1373091256,), (1373091259,), (1373091262,), (1373091286,), (1373091290,), (1373091296,), (1373091298,), (1373091300,), (1373091303,), (1373091318,), (1373091852,), (1373091863,), (1373091890,), (1373091924,), (1373091946,), (1373091969,), (1373092147,), (1373092179,), (1373092208,), (1373092237,), (1373092263,), (1373092301,), (1373092918,), (1373092940,), (1373092969,), (1373093004,), (1373093028,), (1373093056,), (1373093303,), (1373093625,), (1373093647,), (1373093652,), (1373093653,), (1373093655,), (1373093657,), (1373093755,), (1373093782,), (1373093811,), (1373093841,), (1373093866,), (1373093892,), (1373094115,), (1373094142,), (1373094161,), (1373094166,), (1373094168,), (1373094170,), (1373094172,), (1373094174,), (1373094186,), (1373094189,), (1373094192,), (1373094194,), (1373094195,), (1373094197,), (1373094221,), (1373094227,), (1373094230,), (1373094233,), (1373094235,), (1373094237,), (1373094250,), (1373094254,), (1373094257,), (1373094260,), (1373094261,), (1373094262,), (1373094281,), (1373094290,), (1373094293,), (1373094295,), (1373094298,), (1373094301,), (1373094342,), (1373094344,), (1373094347,), (1373094350,), (1373094352,), (1373094357,), (1373094376,), (1373094382,), (1373094384,), (1373094387,), (1373094390,), (1373094393,), (1373094420,), (1373094447,), (1373094450,), (1373094453,), (1373094456,), (1373094458,), (1373094460,), (1373094475,), (1373094478,), (1373094482,), (1373094485,), (1373094488,), (1373094492,), (1373094522,), (1373094543,), (1373094547,), (1373094552,), (1373094560,), (1373094565,), (1373094578,), (1373094608,), (1373094622,), (1373094630,), (1373094633,), (1373094635,), (1373094637,), (1373094654,), (1373094658,), (1373094661,), (1373094664,), (1373094665,), (1373094669,), (1373094691,), (1373094694,), (1373094698,), (1373094701,), (1373094704,), (1373094706,), (1373094720,), (1373094723,), (1373094726,), (1373094728,), (1373094730,), (1373094732,), (1373094754,), (1373094762,), (1373094764,), (1373094766,), (1373094767,), (1373094769,), (1373094777,), (1373094780,), (1373094783,), (1373094786,), (1373094788,), (1373094790,), (1373094802,), (1373094813,), (1373094816,), (1373094820,), (1373094823,), (1373094827,), (1373094839,), (1373094842,), (1373094846,), (1373094848,), (1373094852,), (1373094856,), (1373094874,), (1373094903,), (1373094906,), (1373094909,), (1373094911,), (1373094914,), (1373094917,), (1373094927,), (1373094936,), (1373094941,), (1373094944,), (1373094945,), (1373094947,), (1373094961,), (1373094964,), (1373094966,), (1373094969,), (1373094972,), (1373094973,), (1373094982,), (1373094993,), (1373094996,), (1373094998,), (1373095003,), (1373095006,), (1373095025,), (1373095027,), (1373095029,), (1373095031,), (1373095033,), (1373095036,), (1373095050,), (1373095053,), (1373095056,), (1373095058,), (1373095061,), (1373095064,), (1373095091,), (1373095092,), (1373095094,), (1373095096,), (1373095097,), (1373095098,), (1373095117,), (1373095119,), (1373095122,), (1373095125,), (1373095126,), (1373095128,), (1373095141,), (1373095144,), (1373095146,), (1373095147,), (1373095149,), (1373095152,), (1373095159,), (1373095178,), (1373095180,), (1373095183,), (1373095184,), (1373095186,), (1373095188,), (1373095205,), (1373095210,), (1373095220,), (1373095222,), (1373095223,), (1373095224,), (1373095235,), (1373095237,), (1373095239,), (1373095240,), (1373095241,), (1373095243,), (1373095257,), (1373095264,), (1373095265,), (1373095266,), (1373095269,), (1373095272,), (1373095287,), (1373095288,), (1373095289,), (1373095290,), (1373095291,), (1373095292,), (1373095293,), (1373095299,), (1373095306,), (1373095307,), (1373095309,), (1373095312,), (1373095323,), (1373095326,), (1373095329,), (1373095331,), (1373095333,), (1373095334,), (1373095341,), (1373095348,), (1373095356,), (1373095361,), (1373095365,), (1373095367,), (1373095382,), (1373095385,), (1373095388,), (1373095391,), (1373095393,), (1373095395,), (1373095413,), (1373095436,), (1373095438,), (1373095439,), (1373095440,), (1373095441,), (1373095444,), (1373095626,), (1373095664,), (1373095689,), (1373095715,), (1373095740,), (1373095769,), (1373095820,), (1373095822,), (1373095824,), (1373095826,), (1373095827,), (1373095830,), (1373095839,), (1373095841,), (1373095852,), (1373095859,), (1373095861,), (1373095863,), (1373095886,), (1373095889,), (1373095892,), (1373095894,), (1373095895,), (1373095898,), (1373095907,), (1373095915,), (1373095918,), (1373095920,), (1373095922,), (1373095924,), (1373095927,), (1373095928,), (1373095929,), (1373095930,), (1373095932,), (1373095935,), (1373095941,), (1373095948,), (1373095949,), (1373095950,), (1373095953,), (1373095957,), (1373095978,), (1373095979,), (1373095980,), (1373095982,), (1373095985,), (1373095987,), (1373096002,), (1373096019,), (1373096022,), (1373096025,), (1373096027,), (1373096029,), (1373096032,), (1373096099,), (1373096143,), (1373096186,), (1373096226,), (1373096267,), (1373096323,), (1373097006,), (1373097045,), (1373097092,), (1373097115,), (1373097146,), (1373097195,), (1373140743,), (1373097443,), (1373097471,), (1373097502,), (1373097525,), (1373097551,), (1373097579,), (1373097819,), (1373097824,), (1373097827,), (1373097832,), (1373097837,), (1373097839,), (1373097979,), (1373098089,), (1373098092,), (1373098094,), (1373098105,), (1373098130,), (1373098153,), (1373098373,), (1373098377,), (1373098384,), (1373098389,), (1373098392,), (1373098395,), (1373098407,), (1373098445,), (1373098448,), (1373098450,), (1373098451,), (1373098453,), (1373098455,), (1373098478,), (1373098480,), (1373098486,), (1373098492,), (1373098495,), (1373098497,), (1373098520,), (1373098521,), (1373098523,), (1373098525,), (1373098526,), (1373098527,), (1373098539,), (1373098540,), (1373098542,), (1373098543,), (1373098545,), (1373098547,), (1373098587,), (1373098591,), (1373098593,), (1373098596,), (1373098597,), (1373098600,), (1373098611,), (1373098614,), (1373098617,), (1373098618,), (1373098619,), (1373098623,), (1373098637,), (1373098639,), (1373098640,), (1373098641,), (1373098642,), (1373098644,), (1373098667,), (1373098673,), (1373098677,), (1373098680,), (1373098683,), (1373098684,), (1373098708,), (1373098713,), (1373098716,), (1373098717,), (1373098719,), (1373098720,), (1373098731,), (1373098756,), (1373098757,), (1373098758,), (1373098759,), (1373098761,), (1373098762,), (1373098778,), (1373098780,), (1373098786,), (1373098787,), (1373098789,), (1373098791,), (1373098809,), (1373098812,), (1373098815,), (1373098818,), (1373098820,), (1373098821,), (1373098836,), (1373098846,), (1373098848,), (1373098849,), (1373098850,), (1373098852,), (1373098869,), (1373098870,), (1373098872,), (1373098873,), (1373098876,), (1373098877,), (1373098898,), (1373098906,), (1373098909,), (1373098911,), (1373098912,), (1373098915,), (1373098933,), (1373098953,), (1373098957,), (1373098958,), (1373098959,), (1373098961,), (1373098962,), (1373098980,), (1373098982,), (1373098983,), (1373098984,), (1373098985,), (1373098987,), (1373099012,), (1373099038,), (1373099041,), (1373099044,), (1373099048,), (1373099052,), (1373099054,), (1373099072,), (1373099079,), (1373099082,), (1373099084,), (1373099085,), (1373099087,), (1373099108,), (1373099134,), (1373099143,), (1373099147,), (1373099151,), (1373099153,), (1373099154,), (1373099174,), (1373099178,), (1373099181,), (1373099183,), (1373099186,), (1373099188,), (1373099202,), (1373099206,), (1373099208,), (1373099209,), (1373099210,), (1373099211,), (1373099219,), (1373099245,), (1373099251,), (1373099255,), (1373099256,), (1373099258,), (1373099260,), (1373099274,), (1373099278,), (1373099281,), (1373099282,), (1373099284,), (1373099285,), (1373099300,), (1373099316,), (1373099318,), (1373099320,), (1373099321,), (1373099325,), (1373099330,), (1373099350,), (1373099355,), (1373099359,), (1373099361,), (1373099362,), (1373099363,), (1373099376,), (1373099378,), (1373099381,), (1373099382,), (1373099383,), (1373099384,), (1373099402,), (1373099403,), (1373099406,), (1373099408,), (1373099410,), (1373099412,), (1373099426,), (1373099429,), (1373099432,), (1373099434,), (1373099437,), (1373099439,), (1373099455,), (1373099457,), (1373099458,), (1373099459,), (1373099461,), (1373099462,), (1373099485,), (1373099502,), (1373099508,), (1373099511,), (1373099513,), (1373099514,), (1373099515,), (1373099536,), (1373099537,), (1373099539,), (1373099540,), (1373099541,), (1373099542,), (1373099564,), (1373099567,), (1373099568,), (1373099569,), (1373099571,), (1373099574,), (1373099594,), (1373099597,), (1373099599,), (1373099602,), (1373099605,), (1373099606,), (1373099648,), (1373099652,), (1373099654,), (1373099656,), (1373099658,), (1373099660,), (1373099674,), (1373099676,), (1373099677,), (1373099679,), (1373099681,), (1373099682,), (1373099705,), (1373099710,), (1373099714,), (1373099715,), (1373099716,), (1373099717,), (1373099728,), (1373099730,), (1373099732,), (1373099734,), (1373099736,), (1373099738,), (1373099756,), (1373099761,), (1373099763,), (1373099764,), (1373099767,), (1373099769,), (1373099790,), (1373099807,), (1373099814,), (1373099817,), (1373099819,), (1373099822,), (1373099825,), (1373099844,), (1373099847,), (1373099850,), (1373099852,), (1373099853,), (1373099855,), (1373099872,), (1373099888,), (1373099911,), (1373099916,), (1373099918,), (1373099919,), (1373099932,), (1373099956,), (1373100859,), (1373101086,), (1373101092,), (1373101097,), (1373101106,), (1373101111,), (1373101168,), (1373101193,), (1373101221,), (1373101250,), (1373101273,), (1373101297,), (1373101573,), (1373101940,), (1373101950,), (1373101952,), (1373101954,), (1373101956,), (1373101959,), (1373102182,), (1373102183,), (1373102225,), (1373102253,), (1373102274,), (1373102283,), (1373102313,), (1373102336,), (1373102365,), (1373102370,), (1373102373,), (1373102374,), (1373102376,), (1373102377,), (1373102397,), (1373102398,), (1373102399,), (1373102400,), (1373102401,), (1373102403,), (1373102422,), (1373102429,), (1373102431,), (1373102434,), (1373102437,), (1373102439,), (1373102456,), (1373102458,), (1373102461,), (1373102463,), (1373102465,), (1373102466,), (1373102478,), (1373102481,), (1373102484,), (1373102486,), (1373102487,), (1373102489,), (1373102498,), (1373102513,), (1373102520,), (1373102524,), (1373102525,), (1373102528,), (1373102530,), (1373102542,), (1373102544,), (1373102545,), (1373102546,), (1373102548,), (1373102550,), (1373102573,), (1373102600,), (1373102601,), (1373102602,), (1373102603,), (1373102605,), (1373102608,), (1373102620,), (1373102632,), (1373102635,), (1373102637,), (1373102639,), (1373102642,), (1373102653,), (1373102656,), (1373102659,), (1373102662,), (1373102664,), (1373102666,), (1373102675,), (1373102682,), (1373102686,), (1373102688,), (1373102690,), (1373102693,), (1373102709,), (1373102711,), (1373102713,), (1373102714,), (1373102715,), (1373102716,), (1373102731,), (1373102739,), (1373102746,), (1373102747,), (1373102748,), (1373102750,), (1373102768,), (1373102790,), (1373102795,), (1373102798,), (1373102799,), (1373102802,), (1373102805,), (1373102827,), (1373102829,), (1373102832,), (1373102835,), (1373102836,), (1373102838,), (1373102855,), (1373102873,), (1373102875,), (1373102877,), (1373102878,), (1373102881,), (1373102884,), (1373102908,), (1373102913,), (1373102915,), (1373102916,), (1373102918,), (1373102920,), (1373102933,), (1373102935,), (1373102937,), (1373102938,), (1373102941,), (1373102943,), (1373102955,), (1373102962,), (1373102967,), (1373102971,), (1373102972,), (1373102974,), (1373102991,), (1373102993,), (1373102995,), (1373102996,), (1373102997,), (1373102998,), (1373103018,), (1373103021,), (1373103022,), (1373103025,), (1373103027,), (1373103028,), (1373103038,), (1373103055,), (1373103064,), (1373103068,), (1373103071,), (1373103074,), (1373103077,), (1373103085,), (1373103087,), (1373103089,), (1373103091,), (1373103092,), (1373103094,), (1373103107,), (1373103122,), (1373103124,), (1373103126,), (1373103128,), (1373103130,), (1373103131,), (1373103151,), (1373103159,), (1373103167,), (1373103171,), (1373103173,), (1373103175,), (1373103184,), (1373103186,), (1373103188,), (1373103190,), (1373103191,), (1373103193,), (1373103214,), (1373103215,), (1373103216,), (1373103217,), (1373103218,), (1373103220,), (1373103242,), (1373103244,), (1373103247,), (1373103250,), (1373103252,), (1373103256,), (1373103270,), (1373103277,), (1373103282,), (1373103285,), (1373103289,), (1373103290,), (1373103298,), (1373103318,), (1373103322,), (1373103326,), (1373103329,), (1373103334,), (1373103336,), (1373103356,), (1373103358,), (1373103360,), (1373103362,), (1373103364,), (1373103366,), (1373103379,), (1373103381,), (1373103384,), (1373103385,), (1373103387,), (1373103389,), (1373103405,), (1373103407,), (1373103409,), (1373103411,), (1373103413,), (1373103417,), (1373103429,), (1373103436,), (1373103444,), (1373103451,), (1373103453,), (1373103456,), (1373103470,), (1373103472,), (1373103474,), (1373103476,), (1373103477,), (1373103478,), (1373103497,), (1373103501,), (1373103503,), (1373103505,), (1373103509,), (1373103511,), (1373103537,), (1373103539,), (1373103541,), (1373103542,), (1373103544,), (1373103547,), (1373103559,), (1373103562,), (1373103565,), (1373103568,), (1373103571,), (1373103574,), (1373103590,), (1373103606,), (1373103613,), (1373103616,), (1373103619,), (1373103621,), (1373103624,), (1373103638,), (1373103641,), (1373103644,), (1373103646,), (1373103648,), (1373103650,), (1373103658,), (1373103698,), (1373103722,), (1373103747,), (1373103770,), (1373103793,), (1373103818,), (1373104039,), (1373104068,), (1373104083,), (1373104085,), (1373104098,), (1373104125,), (1373104482,), (1373109145,), (1373104786,), (1373104788,), (1373104790,), (1373104791,), (1373104794,), (1373105122,), (1373105148,), (1373105185,), (1373105232,), (1373105268,), (1373105296,), (1373105657,), (1373105839,), (1373105847,), (1373105867,), (1373105893,), (1373105918,), (1373105944,), (1373106080,), (1373106083,), (1373106086,), (1373106088,), (1373106091,), (1373106094,), (1373106099,), (1373106101,), (1373106102,), (1373106104,), (1373106106,), (1373106107,), (1373106117,), (1373106118,), (1373106120,), (1373106122,), (1373106123,), (1373106124,), (1373106133,), (1373106138,), (1373106141,), (1373106143,), (1373106144,), (1373106148,), (1373106161,), (1373106165,), (1373106166,), (1373106168,), (1373106171,), (1373106173,), (1373106195,), (1373106201,), (1373106207,), (1373106208,), (1373106210,), (1373106213,), (1373106254,), (1373106256,), (1373106258,), (1373106259,), (1373106261,), (1373106263,), (1373106273,), (1373106280,), (1373106291,), (1373106296,), (1373106298,), (1373106301,), (1373106315,), (1373106328,), (1373106336,), (1373106345,), (1373106357,), (1373106360,), (1373106362,), (1373106387,), (1373106391,), (1373106393,), (1373106395,), (1373106397,), (1373106400,), (1373106413,), (1373106829,), (1373106451,), (1373106452,), (1373106453,), (1373106454,), (1373106455,), (1373106456,), (1373106464,), (1373106478,), (1373106481,), (1373106482,), (1373106484,), (1373106488,), (1373106496,), (1373106499,), (1373106501,), (1373106503,), (1373106506,), (1373106507,), (1373106516,), (1373106518,), (1373106520,), (1373106521,), (1373106523,), (1373106526,), (1373106562,), (1373106585,), (1373106590,), (1373106593,), (1373106596,), (1373106599,), (1373106602,), (1373106629,), (1373106644,), (1373106653,), (1373106655,), (1373106657,), (1373106660,), (1373106664,), (1373106674,), (1373106679,), (1373106681,), (1373106683,), (1373106685,), (1373106687,), (1373106690,), (1373106711,), (1373106740,), (1373106742,), (1373106745,), (1373106747,), (1373106750,), (1373106753,), (1373106769,), (1373106770,), (1373106778,), (1373106784,), (1373106786,), (1373106787,), (1373106805,), (1373106807,), (1373106810,), (1373106813,), (1373106818,), (1373106822,), (1373106843,), (1373106846,), (1373106848,), (1373106850,), (1373106852,), (1373106856,), (1373106892,), (1373106894,), (1373106897,), (1373106899,), (1373106902,), (1373106905,), (1373106918,), (1373106927,), (1373106929,), (1373106930,), (1373106933,), (1373106936,), (1373106955,), (1373106967,), (1373106977,), (1373106979,), (1373106982,), (1373106985,), (1373106990,), (1373106997,), (1373107002,), (1373107004,), (1373107006,), (1373107008,), (1373107009,), (1373107010,), (1373107028,), (1373107050,), (1373107053,), (1373107055,), (1373107056,), (1373107059,), (1373107063,), (1373107080,), (1373107083,), (1373107100,), (1373107103,), (1373107104,), (1373107105,), (1373107122,), (1373107124,), (1373107127,), (1373107128,), (1373107129,), (1373107130,), (1373107150,), (1373107152,), (1373107154,), (1373107156,), (1373107158,), (1373107160,), (1373107213,), (1373107216,), (1373107221,), (1373107223,), (1373107226,), (1373107229,), (1373107245,), (1373107253,), (1373107264,), (1373107271,), (1373107274,), (1373107278,), (1373107306,), (1373107328,), (1373107337,), (1373107347,), (1373107350,), (1373107355,), (1373107358,), (1373107366,), (1373107369,), (1373107373,), (1373107375,), (1373107377,), (1373107379,), (1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,), (1373107662,), (1373107676,), (1373107687,), (1373107692,), (1373107695,), (1373107698,), (1373107702,), (1373107725,), (1373107729,), (1373107732,), (1373107735,), (1373107737,), (1373107739,), (1373107759,), (1373107785,), (1373107786,), (1373107787,), (1373107788,), (1373107790,), (1373107791,), (1373107808,), (1373107811,), (1373107813,), (1373107814,), (1373107815,), (1373107817,), (1373108580,), (1373109100,), (1373109110,), (1373109124,), (1373109137,), (1373109141,), (1373109446,), (1373109477,), (1373109503,), (1373109533,), (1373109576,), (1373109614,), (1373109942,), (1373110206,), (1373110209,), (1373110212,), (1373110232,), (1373110256,), (1373110281,), (1373110442,), (1373110457,), (1373110462,), (1373110464,), (1373110466,), (1373110469,), (1373110505,), (1373110622,), (1373110643,), (1373110669,), (1373110686,), (1373110688,), (1373110691,), (1373110715,), (1373110726,), (1373110732,), (1373110733,), (1373110735,), (1373110739,), (1373110769,), (1373110794,), (1373110818,), (1373110820,), (1373110822,), (1373110824,), (1373110957,), (1373110986,), (1373111012,), (1373111042,), (1373111074,), (1373111082,), (1373111345,), (1373111612,), (1373111749,), (1373111751,), (1373111754,), (1373111757,), (1373111761,), (1373111764,), (1373111780,), (1373111782,), (1373111784,), (1373111786,), (1373111788,), (1373111791,), (1373111824,), (1373111827,), (1373111832,), (1373111835,), (1373111838,), (1373111855,), (1373111938,), (1373111970,), (1373111974,), (1373111977,), (1373111979,), (1373111981,), (1373111985,), (1373112021,), (1373112031,), (1373112047,), (1373112075,), (1373112106,), (1373112118,), (1373112142,), (1373112145,), (1373112147,), (1373112150,), (1373112153,), (1373112156,), (1373112175,), (1373112177,), (1373112180,), (1373112183,), (1373112186,), (1373112188,), (1373112374,), (1373112404,), (1373112429,), (1373112454,), (1373112479,), (1373112505,), (1373112619,), (1373112665,), (1373112691,), (1373112720,), (1373112747,), (1373112792,), (1373112994,), (1373113148,), (1373113163,), (1373113169,), (1373113172,), (1373113174,), (1373113176,), (1373113277,), (1373113302,), (1373113332,), (1373113379,), (1373113408,), (1373113436,), (1373113681,), (1373113757,), (1373113760,), (1373113763,), (1373113766,), (1373113772,), (1373113775,), (1373113796,), (1373113801,), (1373113804,), (1373113807,), (1373113810,), (1373113814,), (1373113841,), (1373113880,), (1373113882,), (1373113885,), (1373113888,), (1373113891,), (1373113893,), (1373113919,), (1373113922,), (1373113924,), (1373113926,), (1373113928,), (1373113930,), (1373113989,), (1373113991,), (1373113993,), (1373113997,), (1373114032,), (1373114037,), (1373114077,), (1373114117,), (1373114119,), (1373114121,), (1373114123,), (1373114126,), (1373114131,), (1373114145,), (1373114183,), (1373114185,), (1373114187,), (1373114189,), (1373114192,), (1373114207,), (1373114308,), (1373114316,), (1373114323,), (1373114325,), (1373114326,), (1373114329,), (1373114404,), (1373114441,), (1373114443,), (1373114451,), (1373114453,), (1373114456,), (1373114478,), (1373114480,), (1373114483,), (1373114484,), (1373114487,), (1373114490,), (1373114508,), (1373114511,), (1373114513,), (1373114515,), (1373114517,), (1373114521,), (1373114544,), (1373114562,), (1373114564,), (1373114566,), (1373114567,), (1373114570,), (1373114624,), (1373114628,), (1373114631,), (1373114633,), (1373114635,), (1373114638,), (1373114664,), (1373114685,), (1373114687,), (1373114689,), (1373114690,), (1373114694,), (1373114698,), (1373114719,), (1373114723,), (1373114726,), (1373114730,), (1373114733,), (1373114735,), (1373114745,), (1373114779,), (1373114783,), (1373114784,), (1373114786,), (1373114788,), (1373114791,), (1373114807,), (1373114810,), (1373114813,), (1373114817,), (1373114820,), (1373114824,), (1373114845,), (1373114847,), (1373114850,), (1373114852,), (1373114856,), (1373114860,), (1373114880,), (1373114882,), (1373114884,), (1373114886,), (1373114889,), (1373114891,), (1373114910,), (1373114912,), (1373114914,), (1373114916,), (1373114917,), (1373114921,), (1373114939,), (1373114947,), (1373114950,), (1373114952,), (1373114954,), (1373114956,), (1373114984,), (1373115010,), (1373115011,), (1373115013,), (1373115014,), (1373115016,), (1373115018,), (1373115039,), (1373115041,), (1373115043,), (1373115045,), (1373115046,), (1373115049,), (1373115073,), (1373115103,), (1373115104,), (1373115105,), (1373115106,), (1373115108,), (1373115110,), (1373115196,), (1373115224,), (1373115249,), (1373115273,), (1373115298,), (1373115324,), (1373116319,), (1373116342,), (1373116366,), (1373116371,), (1373116391,), (1373116429,), (1373123185,), (1373140717,), (1373116468,), (1373116638,), (1373116662,), (1373116693,), (1373116728,), (1373116771,), (1373116799,), (1373117079,), (1373117275,), (1373117288,), (1373117316,), (1373117347,), (1373117373,), (1373117399,), (1373117520,), (1373117531,), (1373117534,), (1373117537,), (1373117538,), (1373117540,), (1373117573,), (1373117609,), (1373117610,), (1373117612,), (1373117614,), (1373117616,), (1373117619,), (1373117635,), (1373117642,), (1373117646,), (1373117663,), (1373117665,), (1373117667,), (1373117691,), (1373117693,), (1373117695,), (1373117696,), (1373117698,), (1373117700,), (1373117712,), (1373117719,), (1373117734,), (1373117735,), (1373117736,), (1373117738,), (1373117780,), (1373117809,), (1373117815,), (1373117822,), (1373117824,), (1373117826,), (1373117829,), (1373117857,), (1373117886,), (1373117887,), (1373117889,), (1373117890,), (1373117892,), (1373117894,), (1373117910,), (1373117912,), (1373117915,), (1373117917,), (1373117920,), (1373117926,), (1373117949,), (1373117971,), (1373117973,), (1373117975,), (1373117977,), (1373117980,), (1373117981,), (1373118003,), (1373118004,), (1373118006,), (1373118009,), (1373118019,), (1373118029,), (1373118048,), (1373118051,), (1373118053,), (1373118055,), (1373118059,), (1373118063,), (1373118084,), (1373118088,), (1373118096,), (1373118119,), (1373118126,), (1373118129,), (1373118144,), (1373118146,), (1373118148,), (1373118150,), (1373118152,), (1373118154,), (1373118175,), (1373118177,), (1373118186,), (1373118194,), (1373118196,), (1373118199,), (1373118229,), (1373118246,), (1373118247,), (1373118250,), (1373118257,), (1373118258,), (1373118260,), (1373118281,), (1373118284,), (1373118287,), (1373118289,), (1373118291,), (1373118295,), (1373118319,), (1373118344,), (1373118346,), (1373118348,), (1373118350,), (1373118353,), (1373118356,), (1373118372,), (1373118375,), (1373118379,), (1373118383,), (1373118384,), (1373118388,), (1373118407,), (1373118409,), (1373118412,), (1373118413,), (1373118415,), (1373118417,), (1373118440,), (1373118441,), (1373118445,), (1373118447,), (1373118450,), (1373118452,), (1373118499,), (1373118503,), (1373118505,), (1373118507,), (1373118508,), (1373118511,), (1373118534,), (1373118538,), (1373118542,), (1373118545,), (1373118548,), (1373118551,), (1373118573,), (1373118575,), (1373118577,), (1373118579,), (1373118582,), (1373118585,), (1373118606,), (1373118608,), (1373118611,), (1373118613,), (1373118616,), (1373118619,), (1373118636,), (1373118638,), (1373118641,), (1373118643,), (1373118644,), (1373118646,), (1373118664,), (1373118693,), (1373118694,), (1373118696,), (1373118697,), (1373118701,), (1373118705,), (1373118723,), (1373118731,), (1373118735,), (1373118737,), (1373118740,), (1373118743,), (1373118760,), (1373118762,), (1373118765,), (1373118768,), (1373118770,), (1373118774,), (1373118805,), (1373118814,), (1373118815,), (1373118817,), (1373118819,), (1373118821,), (1373118842,), (1373118865,), (1373118873,), (1373118875,), (1373118878,), (1373118881,), (1373118884,), (1373118901,), (1373118903,), (1373118905,), (1373118906,), (1373118908,), (1373118911,), (1373118931,), (1373118937,), (1373118944,), (1373118945,), (1373118946,), (1373118949,), (1373118976,), (1373118979,), (1373118981,), (1373118982,), (1373118984,), (1373118987,), (1373119008,), (1373119036,), (1373119037,), (1373119038,), (1373119039,), (1373119041,), (1373119044,), (1373119062,), (1373119065,), (1373119068,), (1373119070,), (1373119071,), (1373119075,), (1373119091,), (1373119094,), (1373119097,), (1373119100,), (1373119102,), (1373119105,), (1373119199,), (1373119217,), (1373119229,), (1373119242,), (1373119257,), (1373119259,), (1373119324,), (1373119327,), (1373119330,), (1373119331,), (1373119332,), (1373119335,), (1373119561,), (1373119613,), (1373119664,), (1373119729,), (1373119767,), (1373119793,), (1373120036,), (1373120607,), (1373120641,), (1373120685,), (1373120712,), (1373120725,), (1373120728,), (1373120796,), (1373120799,), (1373120802,), (1373120804,), (1373120806,), (1373120809,), (1373120888,), (1373121189,), (1373121204,), (1373121206,), (1373121218,), (1373121239,), (1373121252,), (1373121276,), (1373121278,), (1373121280,), (1373121282,), (1373121283,), (1373121285,), (1373121838,), (1373122989,), (1373122780,), (1373122842,), (1373122886,), (1373122935,), (1373122962,), (1373123293,), (1373123348,), (1373123422,), (1373123520,), (1373123616,), (1373123690,), (1373124280,), (1373124872,), (1373124952,), (1373125032,), (1373125100,), (1373125174,), (1373125225,), (1373125721,), (1373125765,), (1373125811,), (1373125876,), (1373125948,), (1373125991,), (1373126548,), (1373127041,), (1373127092,), (1373127140,), (1373127173,), (1373127201,), (1373127248,), (1373127528,), (1373127561,), (1373127611,), (1373127670,), (1373127726,), (1373127760,), (1373128104,), (1373128158,), (1373128223,), (1373128270,), (1373128321,), (1373128367,), (1373128690,), (1373128715,), (1373128739,), (1373128741,), (1373128743,), (1373128745,), (1373128863,), (1373128888,), (1373128913,), (1373128936,), (1373128994,), (1373129055,), (1373129528,), (1373129572,), (1373129616,), (1373129643,), (1373129680,), (1373129739,), (1373129945,), (1373129976,), (1373129977,), (1373129978,), (1373129983,), (1373130008,), (1373130035,), (1373130176,), (1373130188,), (1373130213,), (1373130218,), (1373130222,), (1373130226,), (1373130246,), (1373130308,), (1373130334,), (1373130359,), (1373130383,), (1373130406,), (1373130428,), (1373130814,), (1373130860,), (1373130909,), (1373130960,), (1373131008,), (1373131061,), (1373131568,), (1373131615,), (1373131677,), (1373131745,), (1373131787,), (1373131839,), (1373132477,), (1373132591,), (1373132674,), (1373132749,), (1373132857,), (1373132936,), (1373133432,), (1373133498,), (1373133561,), (1373133603,), (1373133632,), (1373133658,), (1373133996,), (1373134044,), (1373134088,), (1373134121,), (1373134165,), (1373134203,), (1373134433,), (1373134533,), (1373134534,), (1373134536,), (1373134537,), (1373134539,), (1373134541,), (1373134669,), (1373135191,), (1373135228,), (1373135252,), (1373135276,), (1373135300,), (1373135323,), (1373135732,), (1373135780,), (1373135821,), (1373135840,), (1373135850,), (1373135860,), (1373136278,), (1373136349,), (1373136418,), (1373136486,), (1373136551,), (1373136656,), (1373137285,), (1373137342,), (1373137390,), (1373137425,), (1373137449,), (1373137462,), (1373137849,), (1373137875,), (1373137891,), (1373137921,), (1373137942,), (1373137947,), (1373138089,), (1373138115,), (1373138122,), (1373138124,), (1373138126,), (1373138128,), (1373138156,), (1373138159,), (1373138161,), (1373138162,), (1373138165,), (1373138167,), (1373138190,), (1373138211,), (1373138213,), (1373138216,), (1373138218,), (1373138220,), (1373138223,), (1373138236,), (1373138240,), (1373138243,), (1373138244,), (1373138246,), (1373138249,), (1373138262,), (1373138284,), (1373138286,), (1373138288,), (1373138290,), (1373138292,), (1373138295,), (1373138321,), (1373138328,), (1373138332,), (1373138334,), (1373138336,), (1373138341,), (1373138366,), (1373138368,), (1373138369,), (1373138370,), (1373138372,), (1373138374,), (1373138395,), (1373138396,), (1373138400,), (1373138401,), (1373138403,), (1373138407,), (1373138446,), (1373138449,), (1373138452,), (1373138454,), (1373138455,), (1373138458,), (1373138477,), (1373138480,), (1373138483,), (1373138486,), (1373138488,), (1373138491,), (1373138513,), (1373138547,), (1373138549,), (1373138552,), (1373138553,), (1373138557,), (1373138561,), (1373138596,), (1373138599,), (1373138602,), (1373138605,), (1373138607,), (1373138611,), (1373140662,), (1373140690,), (1373138631,), (1373138659,), (1373138662,), (1373138666,), (1373138669,), (1373138671,), (1373138674,), (1373138700,), (1373138703,), (1373138705,), (1373138706,), (1373138708,), (1373138710,), (1373138743,), (1373138745,), (1373138748,), (1373138750,), (1373138754,), (1373138758,), (1373138784,), (1373138786,), (1373138788,), (1373138790,), (1373138793,), (1373138797,), (1373138867,), (1373138870,), (1373138872,), (1373138875,), (1373138876,), (1373138880,), (1373138899,), (1373138903,), (1373138907,), (1373138909,), (1373138910,), (1373138913,), (1373138946,), (1373138968,), (1373138974,), (1373138977,), (1373138978,), (1373138980,), (1373138982,), (1373139011,), (1373139013,), (1373139015,), (1373139017,), (1373139019,), (1373139022,), (1373139041,), (1373139061,), (1373139064,), (1373139066,), (1373139067,), (1373139069,), (1373139071,), (1373139289,), (1373139317,), (1373139344,), (1373139370,), (1373139397,), (1373139420,), (1373140629,), (1373141065,), (1373141355,), (1373141360,), (1373141363,), (1373141364,), (1373141365,), (1373141366,), (1373141387,), (1373141410,), (1373141417,), (1373141424,), (1373141426,), (1373141429,), (1373141433,), (1373141451,), (1373141452,), (1373141453,), (1373141454,), (1373141456,), (1373141458,), (1373141498,), (1373141534,), (1373141535,), (1373141537,), (1373141539,), (1373141540,), (1373141543,), (1373141565,), (1373141568,), (1373141570,), (1373141571,), (1373141573,), (1373141576,), (1373141607,), (1373141610,), (1373141613,), (1373141615,), (1373141616,), (1373141618,), (1373141634,), (1373141635,), (1373141638,), (1373141640,), (1373141642,), (1373141646,), (1373141682,), (1373141684,), (1373141685,), (1373141686,), (1373141687,), (1373141689,), (1373141702,), (1373141704,), (1373141706,), (1373141708,), (1373141710,), (1373141712,), (1373141741,), (1373141743,), (1373141744,), (1373141746,), (1373141748,), (1373141751,), (1373141771,), (1373141774,), (1373141776,), (1373141777,), (1373141779,), (1373141783,), (1373141807,), (1373141810,), (1373141814,), (1373141817,), (1373141820,), (1373141824,), (1373141845,), (1373141872,), (1373141875,), (1373141878,), (1373141880,), (1373141882,), (1373141885,), (1373141912,), (1373141918,), (1373141921,), (1373141924,), (1373141925,), (1373141929,), (1373141957,), (1373141958,), (1373141960,), (1373141963,), (1373141966,), (1373141970,), (1373142008,), (1373142014,), (1373142016,), (1373142017,), (1373142019,), (1373142020,), (1373142061,), (1373142063,), (1373142065,), (1373142066,), (1373142068,), (1373142071,), (1373142104,), (1373142108,), (1373142112,), (1373142114,), (1373142116,), (1373142119,), (1373142142,), (1373142169,), (1373142172,), (1373142175,), (1373142176,), (1373142177,), (1373142179,), (1373142210,), (1373142213,), (1373142215,), (1373142216,), (1373142219,), (1373142223,), (1373142244,), (1373142266,), (1373142267,), (1373142268,), (1373142270,), (1373142273,), (1373142277,), (1373142295,), (1373142297,), (1373142298,), (1373142299,), (1373142301,), (1373142303,), (1373142318,), (1373142320,), (1373142323,), (1373142326,), (1373142328,), (1373142330,), (1373142346,), (1373142348,), (1373142350,), (1373142351,), (1373142353,), (1373142356,), (1373147261,), (1373142362,), (1373142363,), (1373142364,), (1373142365,), (1373142367,), (1373142370,), (1373142385,), (1373142387,), (1373142389,), (1373142390,), (1373142392,), (1373142394,), (1373142403,), (1373142427,), (1373142430,), (1373142432,), (1373142433,), (1373142435,), (1373142436,), (1373142458,), (1373142474,), (1373142476,), (1373142478,), (1373142479,), (1373142480,), (1373142482,), (1373142491,), (1373142493,), (1373142494,), (1373142495,), (1373142497,), (1373142498,), (1373142504,), (1373142506,), (1373142508,), (1373142509,), (1373142512,), (1373142516,), (1373142527,), (1373142528,), (1373142529,), (1373142530,), (1373142533,), (1373142537,), (1373142556,), (1373142559,), (1373142561,), (1373142562,), (1373142563,), (1373142569,), (1373142632,), (1373142636,), (1373142640,), (1373142643,), (1373142645,), (1373142647,), (1373142663,), (1373142670,), (1373142673,), (1373142674,), (1373142676,), (1373142678,), (1373142703,), (1373142718,), (1373142720,), (1373142723,), (1373142726,), (1373142729,), (1373142732,), (1373142749,), (1373142781,), (1373142788,), (1373142794,), (1373142799,), (1373142801,), (1373142804,), (1373142832,), (1373142862,), (1373142870,), (1373142872,), (1373142874,), (1373142875,), (1373142878,), (1373142912,), (1373142938,), (1373142950,), (1373142954,), (1373142955,), (1373142958,), (1373142961,), (1373143018,), (1373143020,), (1373143022,), (1373143024,), (1373143025,), (1373143028,), (1373143054,), (1373143060,), (1373143061,), (1373143064,), (1373143066,), (1373143068,), (1373143088,), (1373143112,), (1373143115,), (1373143118,), (1373143120,), (1373143121,), (1373143123,), (1373143164,), (1373143167,), (1373143169,), (1373143170,), (1373143171,), (1373143173,), (1373143180,), (1373143206,), (1373143208,), (1373143211,), (1373143214,), (1373143215,), (1373143219,), (1373143312,), (1373143339,), (1373143368,), (1373143403,), (1373143432,), (1373143460,), (1373144279,), (1373144308,), (1373144337,), (1373144369,), (1373144398,), (1373144424,), (1373144728,), (1373144755,), (1373144763,), (1373144766,), (1373144796,), (1373144810,), (1373144828,), (1373144837,), (1373144844,), (1373144845,), (1373144847,), (1373144851,), (1373144874,), (1373144895,), (1373144899,), (1373144902,), (1373144905,), (1373144909,), (1373144912,), (1373144931,), (1373144933,), (1373144935,), (1373144937,), (1373144938,), (1373144942,), (1373144972,), (1373144976,), (1373144977,), (1373144979,), (1373144981,), (1373144985,), (1373145002,), (1373145003,), (1373145005,), (1373145007,), (1373145010,), (1373145017,), (1373145035,), (1373145038,), (1373145040,), (1373145042,), (1373145046,), (1373145048,), (1373145074,), (1373145077,), (1373145079,), (1373145081,), (1373145083,), (1373145086,), (1373145103,), (1373145109,), (1373145118,), (1373145120,), (1373145121,), (1373145123,), (1373145155,), (1373145157,), (1373145159,), (1373145161,), (1373145163,), (1373145165,), (1373145189,), (1373145191,), (1373145194,), (1373145196,), (1373145198,), (1373145202,), (1373145233,), (1373145236,), (1373145237,), (1373145239,), (1373145240,), (1373145242,), (1373145267,), (1373145271,), (1373145274,), (1373145275,), (1373145276,), (1373145279,), (1373145307,), (1373145312,), (1373145317,), (1373145320,), (1373145324,), (1373145328,), (1373145347,), (1373145386,), (1373145389,), (1373145390,), (1373145392,), (1373145393,), (1373145395,), (1373145422,), (1373145428,), (1373145430,), (1373145432,), (1373145433,), (1373145436,), (1373145459,), (1373145461,), (1373145464,), (1373145467,), (1373145469,), (1373145473,), (1373145502,), (1373145517,), (1373145520,), (1373145522,), (1373145524,), (1373145526,), (1373145553,), (1373145555,), (1373145557,), (1373145559,), (1373145562,), (1373145565,), (1373145592,), (1373145593,), (1373145594,), (1373145595,), (1373145596,), (1373145598,), (1373145630,), (1373145633,), (1373145636,), (1373145639,), (1373145641,), (1373145645,), (1373145662,), (1373145672,), (1373145683,), (1373145688,), (1373145690,), (1373145694,), (1373145725,), (1373145726,), (1373145728,), (1373145729,), (1373145730,), (1373145732,), (1373145754,), (1373145789,), (1373145823,), (1373145856,), (1373145858,), (1373145860,), (1373145861,), (1373145863,), (1373145866,), (1373145884,), (1373145890,), (1373145899,), (1373145902,), (1373145904,), (1373145906,), (1373147204,), (1373145995,), (1373145997,), (1373145999,), (1373146001,), (1373146004,), (1373146008,), (1373146031,), (1373146033,), (1373146036,), (1373146039,), (1373146041,), (1373146043,), (1373146060,), (1373146062,), (1373146064,), (1373146066,), (1373146067,), (1373146070,), (1373146090,), (1373146093,), (1373146095,), (1373146097,), (1373146098,), (1373146103,), (1373146133,), (1373146162,), (1373146164,), (1373146165,), (1373146166,), (1373146167,), (1373146169,), (1373146199,), (1373146200,), (1373146201,), (1373146202,), (1373146204,), (1373146206,), (1373146232,), (1373146238,), (1373146240,), (1373146241,), (1373146243,), (1373146246,), (1373146271,), (1373146273,), (1373146275,), (1373146276,), (1373146278,), (1373146281,), (1373146311,), (1373146317,), (1373146320,), (1373146323,), (1373146328,), (1373146333,), (1373146362,), (1373146365,), (1373146368,), (1373146370,), (1373146372,), (1373146375,), (1373146396,), (1373146398,), (1373146400,), (1373146401,), (1373146402,), (1373146404,), (1373146431,), (1373146450,), (1373146458,), (1373146460,), (1373146462,), (1373146464,), (1373146468,), (1373146500,), (1373147149,), (1373146525,), (1373146531,), (1373146540,), (1373146550,), (1373146556,), (1373146561,), (1373146579,), (1373146581,), (1373146583,), (1373146585,), (1373146586,), (1373146589,), (1373146624,), (1373146631,), (1373146642,), (1373146643,), (1373146644,), (1373146646,), (1373146669,), (1373146670,), (1373146672,), (1373146675,), (1373146678,), (1373146683,), (1373146707,), (1373146709,), (1373146711,), (1373146713,), (1373146715,), (1373146717,), (1373146734,), (1373146736,), (1373146738,), (1373146739,), (1373146741,), (1373146745,), (1373146780,), (1373146783,), (1373146787,), (1373146790,), (1373146791,), (1373146793,), (1373146827,), (1373146859,), (1373146862,), (1373146864,), (1373146866,), (1373146868,), (1373146872,), (1373146913,), (1373146915,), (1373146918,), (1373146919,), (1373146921,), (1373146923,), (1373146947,), (1373146966,), (1373146967,), (1373146969,), (1373146971,), (1373146973,), (1373146976,), (1373146996,), (1373147002,), (1373147009,), (1373147015,), (1373147017,), (1373147020,), (1373147080,), (1373147111,), (1373147926,), (1373148749,), (1373148775,), (1373148802,), (1373148826,), (1373148851,), (1373148877,), (1373149168,), (1373149193,), (1373149203,), (1373149219,), (1373149241,), (1373149248,), (1373149578,), (1373149586,), (1373149588,), (1373149601,), (1373149631,), (1373149637,), (1373149703,), (1373149704,), (1373149705,), (1373149706,), (1373149708,), (1373149711,), (1373149747,), (1373149786,), (1373149788,), (1373149790,), (1373149792,), (1373149793,), (1373149796,), (1373149820,), (1373149822,), (1373149824,), (1373149825,), (1373149827,), (1373149829,), (1373149861,), (1373149864,), (1373149866,), (1373149867,), (1373149868,), (1373149870,), (1373149899,), (1373149901,), (1373149902,), (1373149903,), (1373149906,), (1373149908,), (1373149962,), (1373149996,), (1373150044,), (1373150095,), (1373150143,), (1373150187,), (1373150367,), (1373150368,), (1373150370,), (1373150372,), (1373150376,), (1373150384,), (1373150509,), (1373150649,), (1373150653,), (1373150655,), (1373150658,), (1373150660,), (1373150664,), (1373150675,), (1373150697,), (1373150812,), (1373150838,), (1373150855,), (1373150857,), (1373150859,), (1373150867,), (1373150951,), (1373150954,), (1373150956,), (1373150976,), (1373151005,), (1373151032,), (1373151096,), (1373151103,), (1373151105,), (1373151107,), (1373151114,), (1373151119,), (1373151474,), (1373151521,), (1373151548,), (1373151556,), (1373151560,), (1373151562,), (1373151701,), (1373151712,), (1373151721,), (1373151723,), (1373151727,), (1373151730,), (1373151780,), (1373151787,), (1373151790,), (1373151792,), (1373151794,), (1373151796,), (1373151914,), (1373151922,), (1373151940,), (1373151941,), (1373151942,), (1373151953,), (1373152037,), (1373152101,), (1373152117,), (1373152142,), (1373152168,), (1373152193,), (1373152198,), (1373152224,), (1373152226,), (1373152228,), (1373152230,), (1373152232,), (1373152235,), (1373152282,), (1373152340,), (1373152343,), (1373152346,), (1373152348,), (1373152351,), (1373152354,), (1373152501,), (1373152514,), (1373152526,), (1373152533,), (1373152538,), (1373152541,), (1373152605,), (1373152611,), (1373152614,), (1373152617,), (1373152620,), (1373152621,), (1373152653,), (1373152657,), (1373152660,), (1373152662,), (1373152665,), (1373152679,), (1373152651,), (1373152715,), (1373152717,), (1373152719,), (1373152720,), (1373152721,), (1373152723,), (1373152740,), (1373152823,), (1373152832,), (1373152835,), (1373152837,), (1373152838,), (1373152840,), (1373152858,), (1373152861,), (1373152863,), (1373152864,), (1373152866,), (1373152870,), (1373152905,), (1373152930,), (1373152933,), (1373152936,), (1373152937,), (1373152939,), (1373152942,), (1373152957,), (1373152963,), (1373152972,), (1373152974,), (1373152977,), (1373152980,), (1373152991,), (1373152993,), (1373152995,), (1373152997,), (1373152998,), (1373153010,), (1373153042,), (1373153049,), (1373153053,), (1373153056,), (1373153058,), (1373153061,), (1373153078,), (1373153081,), (1373153084,), (1373153086,), (1373153089,), (1373153102,), (1373153136,), (1373153144,), (1373153145,), (1373153147,), (1373153149,), (1373153152,), (1373153175,), (1373153198,), (1373153206,), (1373153209,), (1373153212,), (1373153215,), (1373153219,), (1373153254,), (1373153280,), (1373153282,), (1373153286,), (1373153296,), (1373153299,), (1373153302,), (1373153338,), (1373153375,), (1373153384,), (1373153387,), (1373153389,), (1373153392,), (1373153396,), (1373153416,), (1373153419,), (1373153421,), (1373153422,), (1373153424,), (1373153427,), (1373153453,), (1373153457,), (1373153459,), (1373153462,), (1373153464,), (1373153467,), (1373153484,), (1373153486,), (1373153488,), (1373153490,), (1373153499,), (1373153504,), (1373153533,), (1373153534,), (1373153536,), (1373153537,), (1373153538,), (1373153540,), (1373153564,), (1373153592,), (1373153594,), (1373153597,), (1373153599,), (1373153602,), (1373153607,), (1373153634,), (1373153636,), (1373153638,), (1373153639,), (1373153640,), (1373153642,), (1373153661,), (1373153689,), (1373153691,), (1373153693,), (1373153695,), (1373153697,), (1373153700,), (1373153723,), (1373153754,), (1373153786,), (1373153811,), (1373153846,), (1373153898,), (1373154838,), (1373154847,), (1373154849,), (1373154853,), (1373154882,), (1373154907,), (1373155296,), (1373155604,), (1373155722,), (1373155723,), (1373155725,), (1373155727,), (1373155728,), (1373155730,), (1373155743,), (1373155746,), (1373155748,), (1373155750,), (1373155751,), (1373155754,), (1373155767,), (1373155769,), (1373155771,), (1373155773,), (1373155774,), (1373155792,), (1373155820,), (1373155848,), (1373155850,), (1373155852,), (1373155853,), (1373155856,), (1373155862,), (1373155872,), (1373155905,), (1373155913,), (1373155920,), (1373155929,), (1373155930,), (1373155932,), (1373155943,), (1373155952,), (1373155960,), (1373155963,), (1373155965,), (1373155967,), (1373155969,), (1373155991,), (1373155994,), (1373155998,), (1373156003,), (1373156009,), (1373156011,), (1373156033,), (1373156040,), (1373156054,), (1373156057,), (1373156069,), (1373156081,), (1373156097,), (1373156109,), (1373156114,), (1373156117,), (1373156124,), (1373156128,), (1373156137,), (1373156155,), (1373156190,), (1373156245,), (1373156291,), (1373156328,), (1373156383,), (1373156464,), (1373156603,), (1373156611,), (1373156619,), (1373156626,), (1373156630,), (1373156655,), (1373156666,), (1373156674,), (1373156677,), (1373156682,), (1373156685,), (1373156690,), (1373156691,), (1373156697,), (1373156700,), (1373156702,), (1373156704,), (1373156708,), (1373156714,), (1373157105,), (1373157180,), (1373157344,), (1373157412,), (1373157503,), (1373157618,), (1373157628,), (1373157679,), (1373157685,), (1373157713,), (1373179003,), (1373179007,), (1373156718,), (1373156721,), (1373156723,), (1373156826,), (1373156827,), (1373156828,), (1373156829,), (1373156830,), (1373156834,), (1373156836,), (1373156845,), (1373156858,), (1373156870,), (1373156875,), (1373157183,), (1373157331,), (1373157499,), (1373157626,), (1373157677,), (1373157726,), (1373157650,), (1373157673,), (1373157717,), (1373157776,), (1373157807,), (1373157832,), (1373158079,), (1373158092,), (1373158110,), (1373158117,), (1373158118,), (1373158120,), (1373158156,), (1373158157,), (1373158159,), (1373158161,), (1373158164,), (1373158167,), (1373158198,), (1373158203,), (1373158210,), (1373158217,), (1373158231,), (1373158241,), (1373158368,), (1373158376,), (1373158384,), (1373158392,), (1373158398,), (1373158401,), (1373158525,), (1373158529,), (1373158532,), (1373158534,), (1373158536,), (1373158539,), (1373158571,), (1373158584,), (1373158590,), (1373158593,), (1373158598,), (1373158603,), (1373158630,), (1373158633,), (1373158635,), (1373158655,), (1373158681,), (1373158683,), (1373158766,), (1373158767,), (1373158769,), (1373158771,), (1373158773,), (1373158776,), (1373158802,), (1373158850,), (1373158889,), (1373158891,), (1373158893,), (1373158895,), (1373158896,), (1373158899,), (1373158927,), (1373158931,), (1373158935,), (1373158938,), (1373158942,), (1373158947,), (1373159476,), (1373159510,), (1373159523,), (1373159535,), (1373159553,), (1373159558,), (1373160038,), (1373160096,), (1373160155,), (1373160215,), (1373160282,), (1373160325,), (1373160551,), (1373160557,), (1373160582,), (1373160609,), (1373160645,), (1373160697,), (1373160868,), (1373160892,), (1373160895,), (1373160896,), (1373160897,), (1373160898,), (1373160916,), (1373160918,), (1373160920,), (1373160922,), (1373160925,), (1373160929,), (1373161057,), (1373161224,), (1373161231,), (1373161250,), (1373161254,), (1373161255,), (1373161256,), (1373161443,), (1373161489,), (1373161492,), (1373161495,), (1373161497,), (1373161499,), (1373161502,), (1373161545,), (1373161549,), (1373161554,), (1373161556,), (1373161557,), (1373161559,), (1373161587,), (1373161595,), (1373161598,), (1373161600,), (1373161601,), (1373161606,), (1373161654,), (1373161658,), (1373161662,), (1373161666,), (1373161670,), (1373161673,), (1373161697,), (1373161701,), (1373161705,), (1373161709,), (1373161714,), (1373161718,), (1373161759,), (1373161762,), (1373161764,), (1373161766,), (1373161769,), (1373161772,), (1373161787,), (1373161795,), (1373161801,), (1373161804,), (1373161807,), (1373161811,), (1373161831,), (1373161833,), (1373161837,), (1373161840,), (1373161844,), (1373161846,), (1373161869,), (1373161906,), (1373161910,), (1373161914,), (1373161922,), (1373161929,), (1373161938,), (1373161968,), (1373161974,), (1373161977,), (1373161979,), (1373161981,), (1373161984,), (1373162016,), (1373162021,), (1373162025,), (1373162029,), (1373162032,), (1373162035,), (1373162059,), (1373162063,), (1373162067,), (1373162069,), (1373162072,), (1373162073,), (1373162105,), (1373162107,), (1373162109,), (1373162128,), (1373162151,), (1373162161,), (1373162180,), (1373162183,), (1373162186,), (1373162188,), (1373162191,), (1373162193,), (1373162216,), (1373162218,), (1373162221,), (1373162239,), (1373162260,), (1373162267,), (1373162281,), (1373162282,), (1373162283,), (1373162284,), (1373162285,), (1373162287,), (1373162308,), (1373162313,), (1373162317,), (1373162322,), (1373162325,), (1373162330,), (1373162358,), (1373162385,), (1373162388,), (1373162391,), (1373162393,), (1373162395,), (1373162398,), (1373162420,), (1373162423,), (1373162425,), (1373162427,), (1373162429,), (1373162431,), (1373162458,), (1373162460,), (1373162462,), (1373162463,), (1373162464,), (1373162465,), (1373162494,), (1373162502,), (1373162510,), (1373162511,), (1373162513,), (1373162516,), (1373162562,), (1373162564,), (1373162566,), (1373162568,), (1373162570,), (1373162574,), (1373162642,), (1373162648,), (1373162651,), (1373162654,), (1373162656,), (1373162660,), (1373162684,), (1373162685,), (1373162686,), (1373162688,), (1373162691,), (1373162694,), (1373162711,), (1373162718,), (1373162721,), (1373162725,), (1373162727,), (1373162731,), (1373162753,), (1373162758,), (1373162760,), (1373162762,), (1373162763,), (1373162765,), (1373162783,), (1373162820,), (1373162822,), (1373162825,), (1373162826,), (1373162827,), (1373162829,), (1373162852,), (1373162862,), (1373162869,), (1373162871,), (1373162876,), (1373162881,), (1373162905,), (1373162912,), (1373162916,), (1373162919,), (1373162921,), (1373162925,), (1373162953,), (1373162956,), (1373162959,), (1373162960,), (1373162961,), (1373162962,), (1373163026,), (1373163120,), (1373163126,), (1373163129,), (1373163134,), (1373163137,), (1373163141,), (1373163178,), (1373163180,), (1373163182,), (1373163183,), (1373163184,), (1373163185,), (1373163198,), (1373163204,), (1373163206,), (1373163208,), (1373163217,), (1373163246,), (1373163289,), (1373163293,), (1373163299,), (1373163302,), (1373163304,), (1373163323,), (1373163371,), (1373163598,), (1373163622,), (1373163656,), (1373163661,), (1373163663,), (1373163666,), (1373163682,), (1373163686,), (1373163689,), (1373163694,), (1373163698,), (1373163702,), (1373163736,), (1373163739,), (1373163743,), (1373163745,), (1373163747,), (1373163748,), (1373163771,), (1373163779,), (1373163784,), (1373163786,), (1373163797,), (1373163823,), (1373163984,), (1373163992,), (1373163996,), (1373163999,), (1373164002,), (1373164007,), (1373164031,), (1373164037,), (1373164041,), (1373164047,), (1373164050,), (1373164053,), (1373164078,), (1373164085,), (1373164089,), (1373164098,), (1373164112,), (1373164114,), (1373164125,), (1373164128,), (1373164131,), (1373164133,), (1373164134,), (1373164136,), (1373164263,), (1373164375,), (1373164389,), (1373164393,), (1373164396,), (1373164397,), (1373164420,), (1373164468,), (1373164469,), (1373164470,), (1373164471,), (1373164472,), (1373164474,), (1373164500,), (1373164502,), (1373164504,), (1373164506,), (1373164509,), (1373164512,), (1373165353,), (1373165431,), (1373165503,), (1373165578,), (1373165652,), (1373165717,), (1373166251,), (1373166464,), (1373166465,), (1373166467,), (1373166469,), (1373166472,), (1373166477,), (1373166496,), (1373166497,), (1373166498,), (1373166500,), (1373166502,), (1373166505,), (1373166513,), (1373166515,), (1373166517,), (1373166518,), (1373166520,), (1373166524,), (1373166541,), (1373166544,), (1373166547,), (1373166549,), (1373166550,), (1373166553,), (1373166577,), (1373166620,), (1373166621,), (1373166623,), (1373166624,), (1373166625,), (1373166627,), (1373166646,), (1373166648,), (1373166650,), (1373166652,), (1373166655,), (1373166659,), (1373166692,), (1373166694,), (1373166696,), (1373166699,), (1373166701,), (1373166703,), (1373166734,), (1373166735,), (1373166737,), (1373166739,), (1373166742,), (1373166746,), (1373166770,), (1373166773,), (1373166776,), (1373166778,), (1373166780,), (1373166783,), (1373166808,), (1373166812,), (1373166815,), (1373166818,), (1373166821,), (1373166825,), (1373166857,), (1373166859,), (1373166861,), (1373166862,), (1373166864,), (1373166866,), (1373166877,), (1373166879,), (1373166881,), (1373166883,), (1373166885,), (1373166890,), (1373166911,), (1373166933,), (1373166939,), (1373166946,), (1373166948,), (1373166952,), (1373166957,), (1373166975,), (1373166976,), (1373166977,), (1373166979,), (1373166982,), (1373166986,), (1373167002,), (1373167004,), (1373167006,), (1373167009,), (1373167013,), (1373167017,), (1373167035,), (1373167038,), (1373167040,), (1373167042,), (1373167046,), (1373167048,), (1373167063,), (1373167074,), (1373167083,), (1373167087,), (1373167091,), (1373167095,), (1373167121,), (1373167135,), (1373167137,), (1373167140,), (1373167143,), (1373167146,), (1373167171,), (1373167177,), (1373167178,), (1373167183,), (1373167187,), (1373167193,), (1373167216,), (1373167237,), (1373167238,), (1373167239,), (1373167241,), (1373167244,), (1373167248,), (1373167277,), (1373167281,), (1373167284,), (1373167287,), (1373167290,), (1373167292,), (1373167303,), (1373167320,), (1373167322,), (1373167324,), (1373167326,), (1373167329,), (1373167333,), (1373167354,), (1373167357,), (1373167361,), (1373167364,), (1373167367,), (1373167369,), (1373167394,), (1373167397,), (1373167400,), (1373167403,), (1373167405,), (1373167409,), (1373167437,), (1373167439,), (1373167441,), (1373167443,), (1373167445,), (1373167450,), (1373167494,), (1373167495,), (1373167496,), (1373167497,), (1373167498,), (1373167501,), (1373167525,), (1373167555,), (1373167578,), (1373167579,), (1373167580,), (1373167581,), (1373167583,), (1373167587,), (1373167612,), (1373167615,), (1373167618,), (1373167621,), (1373167623,), (1373167627,), (1373167639,), (1373167655,), (1373167656,), (1373167658,), (1373167659,), (1373167661,), (1373167663,), (1373167694,), (1373167699,), (1373167702,), (1373167705,), (1373167708,), (1373167711,), (1373167728,), (1373167731,), (1373167734,), (1373167746,), (1373167749,), (1373167754,), (1373167802,), (1373167810,), (1373167815,), (1373167817,), (1373167818,), (1373167821,), (1373167867,), (1373167870,), (1373167873,), (1373167876,), (1373167878,), (1373167885,), (1373167908,), (1373167910,), (1373167913,), (1373167915,), (1373167918,), (1373167921,), (1373167945,), (1373167947,), (1373167949,), (1373167951,), (1373167953,), (1373167956,), (1373167979,), (1373167983,), (1373167986,), (1373167989,), (1373167990,), (1373167994,), (1373168023,), (1373168024,), (1373168026,), (1373168029,), (1373168030,), (1373168032,), (1373179001,), (1373168044,), (1373168066,), (1373168069,), (1373168071,), (1373168072,), (1373168074,), (1373168078,), (1373168100,), (1373168102,), (1373168104,), (1373168105,), (1373168106,), (1373168108,), (1373168132,), (1373168136,), (1373168140,), (1373168142,), (1373168145,), (1373168148,), (1373168169,), (1373168173,), (1373168177,), (1373168180,), (1373168181,), (1373168184,), (1373168232,), (1373168235,), (1373168238,), (1373168240,), (1373168244,), (1373168247,), (1373168263,), (1373168271,), (1373168277,), (1373168279,), (1373168280,), (1373168291,), (1373168332,), (1373168334,), (1373168336,), (1373168337,), (1373168339,), (1373168342,), (1373168352,), (1373168353,), (1373168354,), (1373168355,), (1373168356,), (1373168358,), (1373168378,), (1373168380,), (1373168382,), (1373168383,), (1373168385,), (1373168390,), (1373168407,), (1373168437,), (1373168439,), (1373168442,), (1373168443,), (1373168445,), (1373168448,), (1373168548,), (1373168577,), (1373168603,), (1373168630,), (1373168658,), (1373168688,), (1373169353,), (1373169384,), (1373169412,), (1373169442,), (1373169469,), (1373169484,), (1373169655,), (1373169684,), (1373169711,), (1373169743,), (1373169791,), (1373169844,), (1373170172,), (1373170205,), (1373170234,), (1373170262,), (1373170272,), (1373170274,), (1373170343,), (1373170371,), (1373170398,), (1373170422,), (1373170445,), (1373170479,), (1373170605,), (1373170606,), (1373170608,), (1373170609,), (1373170611,), (1373170614,), (1373170650,), (1373170651,), (1373170667,), (1373170670,), (1373170675,), (1373170679,), (1373170710,), (1373170731,), (1373170760,), (1373170764,), (1373170768,), (1373170773,), (1373170776,), (1373170779,), (1373170806,), (1373170843,), (1373170845,), (1373170848,), (1373170850,), (1373170852,), (1373170854,), (1373170928,), (1373170931,), (1373170934,), (1373170936,), (1373170939,), (1373170942,), (1373170962,), (1373170965,), (1373170969,), (1373170972,), (1373170975,), (1373170979,), (1373170999,), (1373171002,), (1373171004,), (1373171007,), (1373171009,), (1373171012,), (1373171025,), (1373171026,), (1373171027,), (1373171028,), (1373171030,), (1373171032,), (1373171044,), (1373171045,), (1373171047,), (1373171050,), (1373171053,), (1373171059,), (1373171093,), (1373171115,), (1373171119,), (1373171123,), (1373171125,), (1373171127,), (1373171130,), (1373171150,), (1373171164,), (1373171166,), (1373171168,), (1373171170,), (1373171174,), (1373171222,), (1373171224,), (1373171226,), (1373171228,), (1373171229,), (1373171231,), (1373171256,), (1373171257,), (1373171259,), (1373171260,), (1373171262,), (1373171265,), (1373171324,), (1373171327,), (1373171328,), (1373171330,), (1373171332,), (1373171336,), (1373171358,), (1373171360,), (1373171362,), (1373171364,), (1373171377,), (1373171390,), (1373171427,), (1373171453,), (1373171477,), (1373171500,), (1373171525,), (1373171534,), (1373171554,), (1373171565,), (1373171567,), (1373171568,), (1373171570,), (1373171573,), (1373171598,), (1373171602,), (1373171609,), (1373171614,), (1373171619,), (1373171624,), (1373171685,), (1373171726,), (1373171729,), (1373171732,), (1373171734,), (1373171736,), (1373171739,), (1373171753,), (1373171760,), (1373171763,), (1373171765,), (1373171768,), (1373171770,), (1373171786,), (1373171788,), (1373171790,), (1373171792,), (1373171796,), (1373171812,), (1373171956,), (1373171961,), (1373171964,), (1373171967,), (1373171971,), (1373171979,), (1373172183,), (1373172227,), (1373172264,), (1373172310,), (1373172352,), (1373172355,), (1373172387,), (1373172388,), (1373172390,), (1373172392,), (1373172418,), (1373172445,), (1373172547,), (1373172549,), (1373172550,), (1373172551,), (1373172552,), (1373172554,), (1373172600,), (1373172603,), (1373172608,), (1373172613,), (1373172639,), (1373172671,), (1373172848,), (1373173162,), (1373173165,), (1373173167,), (1373173169,), (1373173172,), (1373173177,), (1373173194,), (1373173197,), (1373173200,), (1373173203,), (1373173204,), (1373173208,), (1373173387,), (1373173390,), (1373173396,), (1373173413,), (1373173416,), (1373173440,), (1373173492,), (1373173497,), (1373173503,), (1373173508,), (1373173516,), (1373173532,), (1373173569,), (1373173576,), (1373173580,), (1373173582,), (1373173584,), (1373173586,), (1373173637,), (1373173638,), (1373173640,), (1373173641,), (1373173642,), (1373173644,), (1373173697,), (1373173700,), (1373173702,), (1373173704,), (1373173722,), (1373173751,), (1373173957,), (1373173982,), (1373174008,), (1373174033,), (1373174059,), (1373174085,), (1373174149,), (1373174153,), (1373174166,), (1373174167,), (1373174168,), (1373174170,), (1373174183,), (1373174185,), (1373174187,), (1373174190,), (1373174191,), (1373174194,), (1373174217,), (1373174259,), (1373174281,), (1373174284,), (1373174287,), (1373174289,), (1373174293,), (1373174296,), (1373174311,), (1373174314,), (1373174316,), (1373174319,), (1373174322,), (1373174324,), (1373174349,), (1373174352,), (1373174354,), (1373174355,), (1373174356,), (1373174359,), (1373174396,), (1373174399,), (1373174401,), (1373174402,), (1373174404,), (1373174407,), (1373174430,), (1373174433,), (1373174434,), (1373174436,), (1373174438,), (1373174440,), (1373174457,), (1373174459,), (1373174462,), (1373174463,), (1373174465,), (1373174467,), (1373174480,), (1373174485,), (1373174486,), (1373174487,), (1373174488,), (1373174490,), (1373174507,), (1373174508,), (1373174509,), (1373174511,), (1373174513,), (1373174518,), (1373174543,), (1373174570,), (1373174572,), (1373174574,), (1373174576,), (1373174578,), (1373174580,), (1373174598,), (1373174600,), (1373174602,), (1373174603,), (1373174604,), (1373174606,), (1373175288,), (1373175344,), (1373175407,), (1373175454,), (1373175502,), (1373175556,), (1373178995,), (1373178999,), (1373176019,), (1373176639,), (1373176665,), (1373176692,), (1373176717,), (1373176743,), (1373176772,), (1373176825,), (1373176843,), (1373176869,), (1373176893,), (1373176922,), (1373176955,), (1373177097,), (1373177104,), (1373177106,), (1373177108,), (1373177109,), (1373177112,), (1373177131,), (1373177133,), (1373177135,), (1373177137,), (1373177138,), (1373177140,), (1373177163,), (1373177192,), (1373177193,), (1373177195,), (1373177196,), (1373177199,), (1373177204,), (1373177227,), (1373177234,), (1373177235,), (1373177236,), (1373177238,), (1373177241,), (1373177260,), (1373177262,), (1373177264,), (1373177266,), (1373177267,), (1373177270,), (1373177305,), (1373177307,), (1373177309,), (1373177310,), (1373177312,), (1373177314,), (1373177372,), (1373177375,), (1373177378,), (1373177379,), (1373177380,), (1373177382,), (1373177414,), (1373177416,), (1373177418,), (1373177420,), (1373177423,), (1373177426,), (1373177439,), (1373177441,), (1373177443,), (1373177445,), (1373177446,), (1373177448,), (1373177462,), (1373177465,), (1373177467,), (1373177469,), (1373177471,), (1373177473,), (1373177492,), (1373177495,), (1373177498,), (1373177502,), (1373177505,), (1373177510,), (1373177529,), (1373177544,), (1373177547,), (1373177550,), (1373177552,), (1373177553,), (1373177554,), (1373177568,), (1373177576,), (1373177580,), (1373177582,), (1373177584,), (1373177586,), (1373177602,), (1373177604,), (1373177608,), (1373177611,), (1373177615,), (1373177618,), (1373177640,), (1373177647,), (1373177649,), (1373177651,), (1373177653,), (1373177656,), (1373177696,), (1373177699,), (1373177702,), (1373177705,), (1373177708,), (1373177710,), (1373177725,), (1373177734,), (1373177740,), (1373177741,), (1373177744,), (1373177746,), (1373177749,), (1373177766,), (1373177770,), (1373177774,), (1373177776,), (1373177778,), (1373177779,), (1373177800,), (1373177803,), (1373177805,), (1373177807,), (1373177808,), (1373177812,), (1373177827,), (1373177845,), (1373177846,), (1373177848,), (1373177849,), (1373177850,), (1373177852,), (1373177872,), (1373177873,), (1373177875,), (1373177876,), (1373177877,), (1373177878,), (1373177894,), (1373177896,), (1373177898,), (1373177900,), (1373177901,), (1373177903,), (1373177922,), (1373177928,), (1373177931,), (1373177934,), (1373177935,), (1373177937,), (1373177952,), (1373177954,), (1373177956,), (1373177957,), (1373177958,), (1373177959,), (1373177972,), (1373177973,), (1373177974,), (1373177975,), (1373177976,), (1373177978,), (1373177993,), (1373177994,), (1373177995,), (1373177996,), (1373177997,), (1373177998,), (1373178003,), (1373178005,), (1373178007,), (1373178008,), (1373178010,), (1373178012,), (1373178019,), (1373178021,), (1373178022,), (1373178024,), (1373178027,), (1373178028,), (1373178041,), (1373178070,), (1373178072,), (1373178074,), (1373178076,), (1373178079,), (1373178082,), (1373178100,), (1373178102,), (1373178103,), (1373178105,), (1373178107,), (1373178110,), (1373178126,), (1373178127,), (1373178129,), (1373178130,), (1373178132,), (1373178134,), (1373178156,), (1373178157,), (1373178158,), (1373178159,), (1373178161,), (1373178164,), (1373178185,), (1373178187,), (1373178189,), (1373178192,), (1373178194,), (1373178197,), (1373178216,), (1373178218,), (1373178220,), (1373178222,), (1373178223,), (1373178225,), (1373178235,), (1373178237,), (1373178239,), (1373178240,), (1373178241,), (1373178242,), (1373178251,), (1373178257,), (1373178258,), (1373178259,), (1373178260,), (1373178262,), (1373178280,), (1373178303,), (1373178306,), (1373178307,), (1373178308,), (1373178309,), (1373178310,), (1373178323,), (1373178324,), (1373178326,), (1373178327,), (1373178328,), (1373178331,), (1373178346,), (1373178348,), (1373178351,), (1373178354,), (1373178357,), (1373178359,), (1373178378,), (1373178380,), (1373178382,), (1373178383,), (1373178385,), (1373178387,), (1373178410,), (1373178414,), (1373178418,), (1373178422,), (1373178424,), (1373178426,), (1373178433,), (1373178435,), (1373178437,), (1373178438,), (1373178440,), (1373178441,), (1373178457,), (1373178460,), (1373178463,), (1373178464,), (1373178465,), (1373178467,), (1373178485,), (1373178508,), (1373178510,), (1373178511,), (1373178512,), (1373178513,), (1373178517,), (1373178537,), (1373178538,), (1373178539,), (1373178540,), (1373178541,), (1373178542,), (1373178551,), (1373178714,), (1373178773,), (1373178798,), (1373178824,), (1373178832,), (1373178838,), (1373178944,), (1373178947,), (1373178951,), (1373178953,), (1373178955,), (1373178958,), (1373178990,), (1373179041,), (1373179048,), (1373179051,), (1373179054,), (1373179057,), (1373179322,), (1373179348,), (1373179377,), (1373179407,), (1373179434,), (1373179474,), (1373179905,), (1373179951,), (1373179978,), (1373180007,), (1373180021,), (1373180024,), (1373180235,), (1373180270,), (1373180301,), (1373180331,), (1373180354,), (1373180356,), (1373180439,), (1373180452,), (1373180454,), (1373180455,), (1373180457,), (1373180460,), (1373180497,), (1373180525,), (1373180555,), (1373180566,), (1373180580,), (1373180586,), (1373180587,), (1373180589,), (1373180619,), (1373180656,), (1373180659,), (1373180663,), (1373180664,), (1373180666,), (1373180669,), (1373180714,), (1373180717,), (1373180720,), (1373180721,), (1373180723,), (1373180725,), (1373180745,), (1373180752,), (1373180756,), (1373180759,), (1373180761,), (1373180763,), (1373180787,), (1373180790,), (1373180792,), (1373180793,), (1373180794,), (1373180795,), (1373180808,), (1373180815,), (1373180818,), (1373180820,), (1373180823,), (1373180826,), (1373180844,), (1373180849,), (1373180854,), (1373180856,), (1373180859,), (1373180861,), (1373180881,), (1373180904,), (1373180905,), (1373180906,), (1373180907,), (1373180909,), (1373180912,), (1373180933,), (1373180940,), (1373180942,), (1373180946,), (1373180948,), (1373180954,), (1373180969,), (1373180972,), (1373180974,), (1373180976,), (1373180978,), (1373180980,), (1373180998,), (1373181001,), (1373181005,), (1373181007,), (1373181008,), (1373181009,), (1373181041,), (1373181047,), (1373181050,), (1373181052,), (1373181053,), (1373181054,), (1373181077,), (1373181081,), (1373181084,), (1373181086,), (1373181089,), (1373181091,), (1373181106,), (1373181109,), (1373181114,), (1373181117,), (1373181119,), (1373181122,), (1373181136,), (1373181138,), (1373181140,), (1373181141,), (1373181142,), (1373181143,), (1373181165,), (1373181166,), (1373181167,), (1373181168,), (1373181169,), (1373181171,), (1373181208,), (1373181245,), (1373181249,), (1373181252,), (1373181254,), (1373181256,), (1373181258,), (1373181282,), (1373181288,), (1373181291,), (1373181294,), (1373181297,), (1373181301,), (1373181320,), (1373181324,), (1373181328,), (1373181331,), (1373181333,), (1373181336,), (1373181358,), (1373181362,), (1373181367,), (1373181368,), (1373181369,), (1373181373,), (1373181401,), (1373181402,), (1373181403,), (1373181404,), (1373181406,), (1373181410,), (1373181428,), (1373181430,), (1373181433,), (1373181436,), (1373181440,), (1373181445,), (1373181466,), (1373181470,), (1373181473,), (1373181475,), (1373181476,), (1373181478,), (1373181491,), (1373181514,), (1373181517,), (1373181520,), (1373181522,), (1373181525,), (1373181528,), (1373181549,), (1373181570,), (1373181579,), (1373181586,), (1373181587,), (1373181589,), (1373181593,), (1373181617,), (1373181620,), (1373181623,), (1373181626,), (1373181628,), (1373181631,), (1373181653,), (1373181656,), (1373181661,), (1373181664,), (1373181666,), (1373181668,), (1373181683,), (1373181686,), (1373181690,), (1373181691,), (1373181693,), (1373181695,), (1373181718,), (1373181720,), (1373181722,), (1373181723,), (1373181724,), (1373181726,), (1373181751,), (1373181754,), (1373181756,), (1373181760,), (1373181763,), (1373181768,), (1373181786,), (1373181790,), (1373181793,), (1373181794,), (1373181796,), (1373181798,), (1373181813,), (1373181814,), (1373181815,), (1373181816,), (1373181817,), (1373181820,), (1373181851,), (1373181870,), (1373181873,), (1373181875,), (1373181876,), (1373181877,), (1373181878,), (1373181895,), (1373181904,), (1373181907,), (1373181908,), (1373181910,), (1373181912,), (1373181936,), (1373181940,), (1373181943,), (1373181946,), (1373181948,), (1373181951,), (1373181972,), (1373181976,), (1373181980,), (1373181982,), (1373181984,), (1373181987,), (1373182011,), (1373182015,), (1373182018,), (1373182020,), (1373182022,), (1373182024,), (1373182049,), (1373182077,), (1373182080,), (1373182083,), (1373182086,), (1373182088,), (1373182091,), (1373182109,), (1373182111,), (1373182113,), (1373182114,), (1373182115,), (1373182116,), (1373182142,), (1373182154,), (1373182156,), (1373182157,), (1373182159,), (1373182161,), (1373182180,), (1373182203,), (1373182206,), (1373182208,), (1373182209,), (1373182211,), (1373182214,), (1373182232,), (1373182236,), (1373182238,), (1373182241,), (1373182244,), (1373182247,), (1373182260,), (1373182265,), (1373182278,), (1373182305,), (1373182333,), (1373182359,), (1373182882,), (1373183483,), (1373184242,), (1373184521,), (1373184552,), (1373184606,), (1373184635,), (1373184661,), (1373184674,), (1373184755,), (1373184759,), (1373184763,), (1373184765,), (1373184767,), (1373184770,), (1373185031,), (1373185062,), (1373185090,), (1373185115,), (1373185137,), (1373185167,), (1373185469,), (1373185635,), (1373185656,), (1373185664,), (1373185666,), (1373185668,), (1373185671,), (1373185688,), (1373185700,), (1373185703,), (1373185706,), (1373185710,), (1373185715,), (1373185728,), (1373185732,), (1373185737,), (1373185755,), (1373185758,), (1373185761,), (1373185780,), (1373185786,), (1373185798,), (1373185799,), (1373185801,), (1373185803,), (1373185824,), (1373185825,), (1373185827,), (1373185829,), (1373185830,), (1373185833,), (1373185856,), (1373185868,), (1373185872,), (1373185874,), (1373185876,), (1373185882,), (1373185896,), (1373185903,), (1373185913,), (1373185915,), (1373185917,), (1373185919,), (1373185943,), (1373185948,), (1373185955,), (1373185962,), (1373185967,), (1373185969,), (1373185986,), (1373186018,), (1373186050,), (1373186054,), (1373186057,), (1373186058,), (1373186060,), (1373186061,), (1373186086,), (1373186088,), (1373186090,), (1373186091,), (1373186092,), (1373186094,), (1373186114,), (1373186117,), (1373186120,), (1373186123,), (1373186125,), (1373186127,), (1373186149,), (1373186155,), (1373186159,), (1373186162,), (1373186164,), (1373186168,), (1373186193,), (1373186196,), (1373186198,), (1373186200,), (1373186202,), (1373186204,), (1373186227,), (1373186232,), (1373186235,), (1373186237,), (1373186239,), (1373186241,), (1373186260,), (1373186262,), (1373186265,), (1373186266,), (1373186268,), (1373186270,), (1373186302,), (1373186303,), (1373186305,), (1373186306,), (1373186307,), (1373186310,), (1373186322,), (1373186350,), (1373186358,), (1373186361,), (1373186362,), (1373186363,), (1373186364,), (1373186379,), (1373186382,), (1373186384,), (1373186387,), (1373186388,), (1373186392,), (1373186417,), (1373186427,), (1373186433,), (1373186436,), (1373186440,), (1373186442,), (1373186456,), (1373186460,), (1373186464,), (1373186468,), (1373186470,), (1373186475,), (1373186489,), (1373186506,), (1373186509,), (1373186511,), (1373186513,), (1373186516,), (1373186540,), (1373186573,), (1373186580,), (1373186587,), (1373186589,), (1373186592,), (1373186595,), (1373186613,), (1373186616,), (1373186619,), (1373186620,), (1373186622,), (1373186624,), (1373186644,), (1373186651,), (1373186653,), (1373186655,), (1373186657,), (1373186659,), (1373186674,), (1373186695,), (1373186698,), (1373186699,), (1373186700,), (1373186701,), (1373186703,), (1373186726,), (1373186735,), (1373186738,), (1373186740,), (1373186742,), (1373186744,), (1373186761,), (1373186771,), (1373186775,), (1373186779,), (1373186783,), (1373186785,), (1373186803,), (1373186807,), (1373186810,), (1373186812,), (1373186814,), (1373186815,), (1373186842,), (1373186845,), (1373186846,), (1373186848,), (1373186851,), (1373186853,), (1373186864,), (1373186868,), (1373186871,), (1373186874,), (1373186877,), (1373186879,), (1373186901,), (1373186903,), (1373186906,), (1373186907,), (1373186909,), (1373186911,), (1373186928,), (1373186931,), (1373186933,), (1373186934,), (1373186936,), (1373186939,), (1373186962,), (1373186971,), (1373186975,), (1373186979,), (1373186981,), (1373186983,), (1373186998,), (1373187021,), (1373187028,), (1373187029,), (1373187030,), (1373187031,), (1373187035,), (1373187047,), (1373187049,), (1373187051,), (1373187053,), (1373187054,), (1373187057,), (1373187078,), (1373187081,), (1373187084,), (1373187086,), (1373187088,), (1373187090,), (1373187111,), (1373187146,), (1373187147,), (1373187149,), (1373187151,), (1373187153,), (1373187156,), (1373187182,), (1373187189,), (1373187195,), (1373187197,), (1373187199,), (1373187202,), (1373187231,), (1373187233,), (1373187234,), (1373187235,), (1373187236,), (1373187238,), (1373187256,), (1373187258,), (1373187260,), (1373187262,), (1373187263,), (1373187266,), (1373187296,), (1373187298,), (1373187300,), (1373187301,), (1373187302,), (1373187304,), (1373187313,), (1373187342,), (1373187344,), (1373187346,), (1373187347,), (1373187348,), (1373187350,), (1373187364,), (1373187367,), (1373187369,), (1373187370,), (1373187373,), (1373187377,), (1373187395,), (1373187396,), (1373187398,), (1373187399,), (1373187400,), (1373187402,), (1373187942,), (1373187971,), (1373188001,), (1373188042,), (1373188090,), (1373188141,), (1373188511,), (1373188538,), (1373188569,), (1373188604,), (1373188632,), (1373188660,), (1373189059,), (1373189085,), (1373189135,), (1373189172,), (1373189203,), (1373189253,), (1373189406,), (1373189419,), (1373189459,), (1373189483,), (1373189509,), (1373189534,), (1373189618,), (1373189627,), (1373189628,), (1373189630,), (1373189633,), (1373189636,), (1373189644,), (1373189672,), (1373189675,), (1373189678,), (1373189680,), (1373189683,), (1373189686,), (1373189700,), (1373189702,), (1373189704,), (1373189706,), (1373189708,), (1373189711,), (1373189733,), (1373189744,), (1373189745,), (1373189748,), (1373189751,), (1373189755,), (1373189767,), (1373189768,), (1373189770,), (1373189772,), (1373189775,), (1373189777,), (1373189798,), (1373189799,), (1373189801,), (1373189802,), (1373189803,), (1373189805,), (1373189821,), (1373189849,), (1373189858,), (1373189861,), (1373189863,), (1373189865,), (1373189868,), (1373189894,), (1373189897,), (1373189899,), (1373189900,), (1373189901,), (1373189903,), (1373189925,), (1373189933,), (1373189937,), (1373189939,), (1373189940,), (1373189943,), (1373189976,), (1373189996,), (1373190004,), (1373190007,), (1373190008,), (1373190010,), (1373190013,), (1373190027,), (1373190029,), (1373190031,), (1373190032,), (1373190035,), (1373190038,), (1373190053,), (1373190055,), (1373190057,), (1373190058,), (1373190061,), (1373190065,), (1373190081,), (1373190091,), (1373190095,), (1373190096,), (1373190097,), (1373190099,), (1373190118,), (1373190119,), (1373190120,), (1373190121,), (1373190123,), (1373190126,), (1373190142,), (1373190144,), (1373190146,), (1373190147,), (1373190148,), (1373190150,), (1373190168,), (1373190179,), (1373190185,), (1373190186,), (1373190188,), (1373190192,), (1373190229,), (1373190267,), (1373190272,), (1373190274,), (1373190275,), (1373190277,), (1373190279,), (1373190301,), (1373190303,), (1373190306,), (1373190310,), (1373190314,), (1373190318,), (1373190341,), (1373190342,), (1373190344,), (1373190345,), (1373190346,), (1373190350,), (1373190373,), (1373190380,), (1373190384,), (1373190385,), (1373190387,), (1373190390,), (1373190419,), (1373190424,), (1373190429,), (1373190432,), (1373190434,), (1373190438,), (1373190466,), (1373190470,), (1373190473,), (1373190475,), (1373190477,), (1373190480,), (1373190512,), (1373190515,), (1373190518,), (1373190520,), (1373190522,), (1373190524,), (1373190565,), (1373190572,), (1373190575,), (1373190578,), (1373190582,), (1373190586,), (1373190604,), (1373190606,), (1373190608,), (1373190609,), (1373190611,), (1373190612,), (1373190630,), (1373190633,), (1373190635,), (1373190638,), (1373190640,), (1373190643,), (1373190666,), (1373190669,), (1373190672,), (1373190674,), (1373190675,), (1373190677,), (1373190699,), (1373190729,), (1373190757,), (1373190760,), (1373190762,), (1373190763,), (1373190764,), (1373190766,), (1373190780,), (1373190795,), (1373190797,), (1373190798,), (1373190800,), (1373190802,), (1373190805,), (1373190820,), (1373190824,), (1373190826,), (1373190828,), (1373190830,), (1373190834,), (1373190881,), (1373190883,), (1373190885,), (1373190886,), (1373190888,), (1373190890,), (1373190903,), (1373190906,), (1373190909,), (1373190910,), (1373190912,), (1373190915,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'22072025': {'nb_upload': 57, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25191157]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881] map_info['map_portfolio_photo'] : {25191157: [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881, 1373190834, 1373190830, 1373190828, 1373190826, 1373190824, 1373190820, 1373190805, 1373190802, 1373190800, 1373190798, 1373190797, 1373190795, 1373190780, 1373190766, 1373190764, 1373190763, 1373190762, 1373190760, 1373190757, 1373190729, 1373190699, 1373190677, 1373190675, 1373190674, 1373190672, 1373190669, 1373190666, 1373190643, 1373190640, 1373190638, 1373190635, 1373190633, 1373190630, 1373190612, 1373190611, 1373190609, 1373190608, 1373190606, 1373190604, 1373190586, 1373190582, 1373190578, 1373190575, 1373190572, 1373190565]} final : True mtd_id 4302 list_pids : [1373190915, 1373190912, 1373190910, 1373190909, 1373190906, 1373190903, 1373190890, 1373190888, 1373190886, 1373190885, 1373190883, 1373190881] Looping around the photos to save general results len do output : 1 /25191157Didn'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, '3320983') ('4302', '25191157', '1373190915', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190912', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190910', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190909', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190906', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190903', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190890', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190888', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190886', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190885', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190883', None, None, None, None, None, '3320983') ('4302', None, None, None, None, None, None, None, '3320983') ('4302', '25191157', '1373190881', None, None, None, None, None, '3320983') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25191157', 'None', None, None, None, None, '3320983'), ('4302', '25191157', '1373190915', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190912', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190910', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190909', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190906', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190903', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190890', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190888', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190886', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190885', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190883', None, None, None, None, None, '3320983'), ('4302', '25191157', '1373190881', None, None, None, None, None, '3320983')] time used for this insertion : 0.012922048568725586 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.3746466636657715 time spend to save output : 0.013195514678955078 total time spend for step 5 : 4.387842178344727 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 (3320983) 2.36user 2.38system 0:09.86elapsed 48%CPU (0avgtext+0avgdata 161528maxresident)k 0inputs+9936outputs (0major+74570minor)pagefaults 0swaps