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 : 3817930 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 (3284567) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3284567) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24936920 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3284567'] with mtr_portfolio_ids : ['24936920'] and first list_photo_ids : [] new path : /proc/3817930/ Name: python3 Umask: 0002 State: R (running) Tgid: 3817930 Ngid: 0 Pid: 3817930 PPid: 3817929 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3817930 NSpid: 3817930 NSpgid: 3813179 NSsid: 3813179 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100116 kB VmRSS: 100116 kB RssAnon: 59812 kB RssFile: 40304 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/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: 44 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3817930', 'Ngid': '0', 'Pid': '3817930', 'PPid': '3817929', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3817930', 'NSpid': '3817930', 'NSpgid': '3813179', 'NSsid': '3813179', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100116 kB', 'VmRSS': '100116 kB', 'RssAnon': '59812 kB', 'RssFile': '40304 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/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': '44', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '3817930', '1106868', '0', '1106868', '865620', '100116', b'', 'marlene', '3284567') 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 (24936920) 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 (3284567 ) ) 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 (24936920) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1372144254, 'portfolio_id': 24936920}, {'photo_id': 1372144088, 'portfolio_id': 24936920}, {'photo_id': 1372144086, 'portfolio_id': 24936920}, {'photo_id': 1372144061, 'portfolio_id': 24936920}, {'photo_id': 1372144035, 'portfolio_id': 24936920}, {'photo_id': 1372144008, 'portfolio_id': 24936920}, {'photo_id': 1372143980, 'portfolio_id': 24936920}, {'photo_id': 1372143714, 'portfolio_id': 24936920}, {'photo_id': 1372143690, 'portfolio_id': 24936920}, {'photo_id': 1372143664, 'portfolio_id': 24936920}, {'photo_id': 1372143650, 'portfolio_id': 24936920}, {'photo_id': 1372143649, 'portfolio_id': 24936920}, {'photo_id': 1372143648, 'portfolio_id': 24936920}, {'photo_id': 1372143642, 'portfolio_id': 24936920}, {'photo_id': 1372143641, 'portfolio_id': 24936920}, {'photo_id': 1372143639, 'portfolio_id': 24936920}, {'photo_id': 1372143638, 'portfolio_id': 24936920}, {'photo_id': 1372143637, 'portfolio_id': 24936920}, {'photo_id': 1372143635, 'portfolio_id': 24936920}, {'photo_id': 1372143623, 'portfolio_id': 24936920}, {'photo_id': 1372143621, 'portfolio_id': 24936920}, {'photo_id': 1372143620, 'portfolio_id': 24936920}, {'photo_id': 1372143619, 'portfolio_id': 24936920}, {'photo_id': 1372143618, 'portfolio_id': 24936920}, {'photo_id': 1372143617, 'portfolio_id': 24936920}, {'photo_id': 1372143612, 'portfolio_id': 24936920}, {'photo_id': 1372143610, 'portfolio_id': 24936920}, {'photo_id': 1372143609, 'portfolio_id': 24936920}, {'photo_id': 1372143608, 'portfolio_id': 24936920}, {'photo_id': 1372143607, 'portfolio_id': 24936920}, {'photo_id': 1372143606, 'portfolio_id': 24936920}, {'photo_id': 1372143594, 'portfolio_id': 24936920}, {'photo_id': 1372143592, 'portfolio_id': 24936920}, {'photo_id': 1372143591, 'portfolio_id': 24936920}, {'photo_id': 1372143590, 'portfolio_id': 24936920}, {'photo_id': 1372143589, 'portfolio_id': 24936920}, {'photo_id': 1372143588, 'portfolio_id': 24936920}, {'photo_id': 1372143576, 'portfolio_id': 24936920}, {'photo_id': 1372143563, 'portfolio_id': 24936920}, {'photo_id': 1372143555, 'portfolio_id': 24936920}, {'photo_id': 1372143553, 'portfolio_id': 24936920}, {'photo_id': 1372143551, 'portfolio_id': 24936920}, {'photo_id': 1372143549, 'portfolio_id': 24936920}, {'photo_id': 1372143548, 'portfolio_id': 24936920}, {'photo_id': 1372143547, 'portfolio_id': 24936920}, {'photo_id': 1372143538, 'portfolio_id': 24936920}, {'photo_id': 1372143536, 'portfolio_id': 24936920}, {'photo_id': 1372143535, 'portfolio_id': 24936920}, {'photo_id': 1372143534, 'portfolio_id': 24936920}, {'photo_id': 1372143533, 'portfolio_id': 24936920}, {'photo_id': 1372143531, 'portfolio_id': 24936920}, {'photo_id': 1372143525, 'portfolio_id': 24936920}, {'photo_id': 1372143523, 'portfolio_id': 24936920}, {'photo_id': 1372143522, 'portfolio_id': 24936920}, {'photo_id': 1372143521, 'portfolio_id': 24936920}, {'photo_id': 1372143520, 'portfolio_id': 24936920}, {'photo_id': 1372143519, 'portfolio_id': 24936920}, {'photo_id': 1372143514, 'portfolio_id': 24936920}, {'photo_id': 1372143512, 'portfolio_id': 24936920}, {'photo_id': 1372143511, 'portfolio_id': 24936920}, {'photo_id': 1372143510, 'portfolio_id': 24936920}, {'photo_id': 1372143509, 'portfolio_id': 24936920}, {'photo_id': 1372143507, 'portfolio_id': 24936920}, {'photo_id': 1372143499, 'portfolio_id': 24936920}, {'photo_id': 1372143497, 'portfolio_id': 24936920}, {'photo_id': 1372143496, 'portfolio_id': 24936920}, {'photo_id': 1372143494, 'portfolio_id': 24936920}, {'photo_id': 1372143492, 'portfolio_id': 24936920}, {'photo_id': 1372143490, 'portfolio_id': 24936920}] map_portfolio_id_photo_id: {24936920: [1372144254, 1372144088, 1372144086, 1372144061, 1372144035, 1372144008, 1372143980, 1372143714, 1372143690, 1372143664, 1372143650, 1372143649, 1372143648, 1372143642, 1372143641, 1372143639, 1372143638, 1372143637, 1372143635, 1372143623, 1372143621, 1372143620, 1372143619, 1372143618, 1372143617, 1372143612, 1372143610, 1372143609, 1372143608, 1372143607, 1372143606, 1372143594, 1372143592, 1372143591, 1372143590, 1372143589, 1372143588, 1372143576, 1372143563, 1372143555, 1372143553, 1372143551, 1372143549, 1372143548, 1372143547, 1372143538, 1372143536, 1372143535, 1372143534, 1372143533, 1372143531, 1372143525, 1372143523, 1372143522, 1372143521, 1372143520, 1372143519, 1372143514, 1372143512, 1372143511, 1372143510, 1372143509, 1372143507, 1372143499, 1372143497, 1372143496, 1372143494, 1372143492, 1372143490]} ##### 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.015076398849487305 #### 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 15 00:00: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 (24936920) 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 : 24936920 get user id for portfolio 24936920 get sub ptf for main ptf 24936920, type 3726 and hashtags ['kraft', 'plastique', 'flou', 'environnement', 'Carton_brun', 'autre_refus', 'Teint_Dans_La_Masse', 'Carton_gris', 'cartonnette', 'metal', 'mal_croppe', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24936920 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','flou','environnement','Carton_brun','autre_refus','Teint_Dans_La_Masse','Carton_gris','cartonnette','metal','mal_croppe','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24936920 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','flou','environnement','Carton_brun','autre_refus','Teint_Dans_La_Masse','Carton_gris','cartonnette','metal','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24936920, 'sub_port_id': 24936993, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794957, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}, 'Carton_gris': {'main_port_id': 24936920, 'sub_port_id': 24936994, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794958, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}, 'Carton_brun': {'main_port_id': 24936920, 'sub_port_id': 24936995, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794959, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}, 'mal_croppe': {'main_port_id': 24936920, 'sub_port_id': 24936996, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794960, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}, 'environnement': {'main_port_id': 24936920, 'sub_port_id': 24936997, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794961, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 24936920, 'sub_port_id': 24936998, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794962, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}, 'papier': {'main_port_id': 24936920, 'sub_port_id': 24936999, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794963, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}, 'cartonnette': {'main_port_id': 24936920, 'sub_port_id': 24937000, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794964, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}, 'kraft': {'main_port_id': 24936920, 'sub_port_id': 24937002, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794965, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}, 'autre_refus': {'main_port_id': 24936920, 'sub_port_id': 24937003, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794966, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}, 'flou': {'main_port_id': 24936920, 'sub_port_id': 24937004, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794967, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}, 'plastique': {'main_port_id': 24936920, 'sub_port_id': 24937005, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794968, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24936993 , 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=24936920 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 (24936993) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24936994 , 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=24936920 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 (24936994) result : ((1372143586,), (1372143604,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24936995 , 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=24936920 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 (24936995) result : ((1372143550,), (1372143573,), (1372143574,), (1372143587,), (1372143605,), (1372143926,), (1372144225,), (1372144227,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24936996 , 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=24936920 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 (24936996) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24936997 , 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=24936920 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 (24936997) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24936998 , 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=24936920 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 (24936998) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24936999 , 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=24936920 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 (24936999) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24937000 , 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=24936920 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 (24937000) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24937002 , 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=24936920 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 (24937002) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24937003 , 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=24936920 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 (24937003) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24937004 , 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=24936920 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 (24937004) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24937005 , 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=24936920 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 (24937005) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24936920) result : ((1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24936920 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','flou','environnement','Carton_brun','autre_refus','Teint_Dans_La_Masse','Carton_gris','cartonnette','metal','mal_croppe','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24936920 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','flou','environnement','Carton_brun','autre_refus','Teint_Dans_La_Masse','Carton_gris','cartonnette','metal','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24936920, 'sub_port_id': 24937007, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794969, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}, 'Carton_gris': {'main_port_id': 24936920, 'sub_port_id': 24937008, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794970, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}, 'Carton_brun': {'main_port_id': 24936920, 'sub_port_id': 24937009, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794971, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}, 'mal_croppe': {'main_port_id': 24936920, 'sub_port_id': 24937010, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794972, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}, 'environnement': {'main_port_id': 24936920, 'sub_port_id': 24937011, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794973, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 24936920, 'sub_port_id': 24937012, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794974, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}, 'papier': {'main_port_id': 24936920, 'sub_port_id': 24937013, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794975, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}, 'cartonnette': {'main_port_id': 24936920, 'sub_port_id': 24937014, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794976, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}, 'kraft': {'main_port_id': 24936920, 'sub_port_id': 24937015, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794977, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}, 'autre_refus': {'main_port_id': 24936920, 'sub_port_id': 24937016, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794978, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}, 'flou': {'main_port_id': 24936920, 'sub_port_id': 24937017, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794979, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}, 'plastique': {'main_port_id': 24936920, 'sub_port_id': 24937018, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16794980, 'last_updated_at': datetime.datetime(2025, 7, 14, 23, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 23, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 23, 47, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937007,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24936993 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24936994 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24936995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24936996 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24936997 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24936998 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24936999 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937014,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24937000 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937015,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24937002 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937016,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24937003 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937017,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24937004 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24937018,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24937005 lien utilise dans velours : https://www.fotonower.com/velours/24937007,24937008,24937009,24937010,24937011,24937012,24937013,24937014,24937015,24937016,24937017,24937018?tags=metal,Carton_gris,Carton_brun,mal_croppe,environnement,Teint_Dans_La_Masse,papier,cartonnette,kraft,autre_refus,flou,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24936920]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1372144254] map_info['map_portfolio_photo'] : {24936920: [1372144254, 1372144088, 1372144086, 1372144061, 1372144035, 1372144008, 1372143980, 1372143714, 1372143690, 1372143664, 1372143650, 1372143649, 1372143648, 1372143642, 1372143641, 1372143639, 1372143638, 1372143637, 1372143635, 1372143623, 1372143621, 1372143620, 1372143619, 1372143618, 1372143617, 1372143612, 1372143610, 1372143609, 1372143608, 1372143607, 1372143606, 1372143594, 1372143592, 1372143591, 1372143590, 1372143589, 1372143588, 1372143576, 1372143563, 1372143555, 1372143553, 1372143551, 1372143549, 1372143548, 1372143547, 1372143538, 1372143536, 1372143535, 1372143534, 1372143533, 1372143531, 1372143525, 1372143523, 1372143522, 1372143521, 1372143520, 1372143519, 1372143514, 1372143512, 1372143511, 1372143510, 1372143509, 1372143507, 1372143499, 1372143497, 1372143496, 1372143494, 1372143492, 1372143490]} final : False mtd_id 4302 list_pids : [1372144254] Looping around the photos to save general results len do output : 1 /24936920. 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, '3284567') ('4302', '24936920', '1372144254', None, None, None, None, None, '3284567') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '24936920', "{'metal': 24936993, 'Carton_gris': 24936994, 'Carton_brun': 24936995, 'mal_croppe': 24936996, 'environnement': 24936997, 'Teint_Dans_La_Masse': 24936998, 'papier': 24936999, 'cartonnette': 24937000, 'kraft': 24937002, 'autre_refus': 24937003, 'flou': 24937004, 'plastique': 24937005}", None, None, None, None, '3284567'), ('4302', '24936920', '1372144254', None, None, None, None, None, '3284567')] time used for this insertion : 0.01266932487487793 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4685215950012207 time spend to save output : 0.012952804565429688 total time spend for step 1 : 1.4814743995666504 step2:final Tue Jul 15 00:00: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 ! 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 (24936920) 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 24936920 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1372143499,1372143497,1372143496,1372143494,1372143492,1372143490,1372143514,1372143512,1372143511,1372143510,1372143509,1372143507,1372143525,1372143523,1372143522,1372143521,1372143520,1372143519,1372143538,1372143536,1372143535,1372143534,1372143533,1372143531,1372143555,1372143553,1372143551,1372143549,1372143548,1372143547,1372143563,1372143576,1372143594,1372143592,1372143591,1372143590,1372143589,1372143588,1372143612,1372143610,1372143609,1372143608,1372143607,1372143606,1372143623,1372143621,1372143620,1372143619,1372143618,1372143617,1372143642,1372143641,1372143639,1372143638,1372143637,1372143635,1372143714,1372143690,1372143664,1372143650,1372143649,1372143648,1372144088,1372144086,1372144061,1372144035,1372144008,1372143980,1372144254); 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([24936920]) Inside saveOutput : final : False verbose : True original output for save of step final : {1372144254: ('0.0426877675801179',)} new output for save of step final : {1372144254: ('0.0426877675801179',)} [1372144254] map_info['map_portfolio_photo'] : {24936920: [1372144254, 1372144088, 1372144086, 1372144061, 1372144035, 1372144008, 1372143980, 1372143714, 1372143690, 1372143664, 1372143650, 1372143649, 1372143648, 1372143642, 1372143641, 1372143639, 1372143638, 1372143637, 1372143635, 1372143623, 1372143621, 1372143620, 1372143619, 1372143618, 1372143617, 1372143612, 1372143610, 1372143609, 1372143608, 1372143607, 1372143606, 1372143594, 1372143592, 1372143591, 1372143590, 1372143589, 1372143588, 1372143576, 1372143563, 1372143555, 1372143553, 1372143551, 1372143549, 1372143548, 1372143547, 1372143538, 1372143536, 1372143535, 1372143534, 1372143533, 1372143531, 1372143525, 1372143523, 1372143522, 1372143521, 1372143520, 1372143519, 1372143514, 1372143512, 1372143511, 1372143510, 1372143509, 1372143507, 1372143499, 1372143497, 1372143496, 1372143494, 1372143492, 1372143490]} final : False mtd_id 4302 list_pids : [1372144254] Looping around the photos to save general results len do output : 1 /1372144254.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, '3284567') ('4302', '24936920', '1372144254', None, None, None, None, None, '3284567') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '24936920', '1372144254', '0.0426877675801179', None, None, None, None, '3284567')] time used for this insertion : 0.0108795166015625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06981396675109863 time spend to save output : 0.011061906814575195 total time spend for step 2 : 0.08087587356567383 step3:velours_tree Tue Jul 15 00:00:58 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 : {24936920: [{'metal': 24936993, 'Carton_gris': 24936994, 'Carton_brun': 24936995, 'mal_croppe': 24936996, 'environnement': 24936997, 'Teint_Dans_La_Masse': 24936998, 'papier': 24936999, 'cartonnette': 24937000, 'kraft': 24937002, 'autre_refus': 24937003, 'flou': 24937004, 'plastique': 24937005}]} input_args_next_step : {24936920: ()} output_args : {24936920: [{'metal': 24936993, 'Carton_gris': 24936994, 'Carton_brun': 24936995, 'mal_croppe': 24936996, 'environnement': 24936997, 'Teint_Dans_La_Masse': 24936998, 'papier': 24936999, 'cartonnette': 24937000, 'kraft': 24937002, 'autre_refus': 24937003, 'flou': 24937004, 'plastique': 24937005}]} args : 24936920 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 : ({'metal': 24936993, 'Carton_gris': 24936994, 'Carton_brun': 24936995, 'mal_croppe': 24936996, 'environnement': 24936997, 'Teint_Dans_La_Masse': 24936998, 'papier': 24936999, 'cartonnette': 24937000, 'kraft': 24937002, 'autre_refus': 24937003, 'flou': 24937004, 'plastique': 24937005},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24936920) 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([24936920]) 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.2936580181121826 time spend to save output : 5.14984130859375e-05 total time spend for step 3 : 0.29370951652526855 step4:send_mail_cod Tue Jul 15 00:00:58 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 : {1372144254: ('0.0426877675801179',)} input_args_next_step : {1372144254: ()} output_args : {1372144254: ('0.0426877675801179',)} args : 1372144254 depend.output_id : 0 complete output_args for input 3 : {24936920: [{'metal': 24936993, 'Carton_gris': 24936994, 'Carton_brun': 24936995, 'mal_croppe': 24936996, 'environnement': 24936997, 'Teint_Dans_La_Masse': 24936998, 'papier': 24936999, 'cartonnette': 24937000, 'kraft': 24937002, 'autre_refus': 24937003, 'flou': 24937004, 'plastique': 24937005}]} input_args_next_step : {1372144254: ('0.0426877675801179',), 24936920: ()} output_args : {24936920: [{'metal': 24936993, 'Carton_gris': 24936994, 'Carton_brun': 24936995, 'mal_croppe': 24936996, 'environnement': 24936997, 'Teint_Dans_La_Masse': 24936998, 'papier': 24936999, 'cartonnette': 24937000, 'kraft': 24937002, 'autre_refus': 24937003, 'flou': 24937004, 'plastique': 24937005}]} args : 24936920 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 :2, first value : ('0.0426877675801179',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24936920) 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 (1372144254) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1372144254 download finish for photo 1372144254 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette249369931752530458/ imagette249369961752530458/ imagette249370001752530458/ imagette249370021752530458/ imagette249370031752530458/ imagette249370041752530458/ imagette249370051752530458/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P24936920_15-07-2025_00_00_58.pdf 24936993 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=24936993 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249369931752530458 24936996 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=24936996 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249369961752530458 24937000 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=24937000 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249370001752530458 24937002 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=24937002 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249370021752530458 24937003 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=24937003 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249370031752530458 24937004 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=24937004 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249370041752530458 24937005 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=24937005 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249370051752530458 24936994 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=24936994 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372143586: '1752529945_311330_1372143555_b9e3ff106ed0bb5874d5bdb74e6f4029_rle_crop_3883251180_0.png', 1372143604: '1752530007_313432_1372143534_ed288225b2931540c61d9357a1698c83_rle_crop_3883253076_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/d58c08c792d63a61388ef99b18dbee73_49727357.png change filename to text .imagette249369941752530458/ imagette249369941752530458/1752529945_311330_1372143555_b9e3ff106ed0bb5874d5bdb74e6f4029_rle_crop_3883251180_0.png.png imagette249369941752530458/1752530007_313432_1372143534_ed288225b2931540c61d9357a1698c83_rle_crop_3883253076_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/95336094e0e2b589202234b39db159b8_60924494.png imagette249369941752530458 24936995 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=24936995 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372143550: '1752529765_301891_1372143496_c9dc0e89a07e11d1b05bdb15ae3b7e48_rle_crop_3883248044_0.png', 1372143573: '1752529884_307748_1372143522_5281336a7e5f07711dc87c58c28469fd_rle_crop_3883248325_0.png', 1372143574: '1752529884_307748_1372143519_a557304f3aaa27415fc96332b55f4b52_rle_crop_3883248346_0.png', 1372143587: '1752529945_311330_1372143553_57bb13e93721acca9f56ab3de750957c_rle_crop_3883251188_0.png', 1372143605: '1752530007_313432_1372143531_215089c13d74e780f34cdb76b46ca1aa_rle_crop_3883253090_0.png', 1372143926: '1752530247_320781_1372143512_0cf0d13c166ece9b7ec382b4a2af7851_rle_crop_3883256590_0.png', 1372144225: '1752530305_323049_1372143638_9c90af02e44f9de9e214b2d560cf214b_rle_crop_3883262105_0.png', 1372144227: '1752530305_323049_1372143635_513f0a47fdb54ead3e1f9484b3406301_rle_crop_3883262121_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/72a41d0d93bd12926b3770f05d644df4_18191182.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/390fdc32037564867b8f6e88ab09c8f2_70443554.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/148ab7a4267bc0fc82963dbdc266132b_59812800.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/31cee1c6b5f84b8325005e382a917f1f_62800058.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/5022e51bd2f610273fce908f01a96da7_30728711.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/04de415e3233634341fd0f49010dc312_93196277.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/7240f7cc9392dfe70041bd92beaca3bc_35457568.png change filename to text .imagette249369951752530458/ imagette249369951752530458/1752530305_323049_1372143635_513f0a47fdb54ead3e1f9484b3406301_rle_crop_3883262121_0.png.png imagette249369951752530458/1752530305_323049_1372143638_9c90af02e44f9de9e214b2d560cf214b_rle_crop_3883262105_0.png.png imagette249369951752530458/1752529884_307748_1372143519_a557304f3aaa27415fc96332b55f4b52_rle_crop_3883248346_0.png.png imagette249369951752530458/1752530247_320781_1372143512_0cf0d13c166ece9b7ec382b4a2af7851_rle_crop_3883256590_0.png.png imagette249369951752530458/1752529765_301891_1372143496_c9dc0e89a07e11d1b05bdb15ae3b7e48_rle_crop_3883248044_0.png.png imagette249369951752530458/1752529945_311330_1372143553_57bb13e93721acca9f56ab3de750957c_rle_crop_3883251188_0.png.png imagette249369951752530458/1752530007_313432_1372143531_215089c13d74e780f34cdb76b46ca1aa_rle_crop_3883253090_0.png.png imagette249369951752530458/1752529884_307748_1372143522_5281336a7e5f07711dc87c58c28469fd_rle_crop_3883248325_0.png.png imagette249369981752530459/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/51d62dc4bc04d7fbd53cde3521be4726_23804825.png imagette249369951752530458 24936998 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=24936998 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249369981752530459 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24936920 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24937007,24937008,24937009,24937010,24937011,24937012,24937013,24937014,24937015,24937016,24937017,24937018?tags=metal,Carton_gris,Carton_brun,mal_croppe,environnement,Teint_Dans_La_Masse,papier,cartonnette,kraft,autre_refus,flou,plastique your option no_mail is active, we will not send the real mail to your client args[1372144254] : ('0.0426877675801179',) no score found for photo 1372144254 We are sending mail with results at report@fotonower.com refus_total : 0.0426877675801179 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=24936920 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_P24936920_15-07-2025_00_00_58.pdf results_Auto_P24936920_15-07-2025_00_00_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24936920_15-07-2025_00_00_58.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','24936920','results_Auto_P24936920_15-07-2025_00_00_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24936920_15-07-2025_00_00_58.pdf','pdf','','0.08','0.0426877675801179') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24936920]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1372144254] map_info['map_portfolio_photo'] : {24936920: [1372144254, 1372144088, 1372144086, 1372144061, 1372144035, 1372144008, 1372143980, 1372143714, 1372143690, 1372143664, 1372143650, 1372143649, 1372143648, 1372143642, 1372143641, 1372143639, 1372143638, 1372143637, 1372143635, 1372143623, 1372143621, 1372143620, 1372143619, 1372143618, 1372143617, 1372143612, 1372143610, 1372143609, 1372143608, 1372143607, 1372143606, 1372143594, 1372143592, 1372143591, 1372143590, 1372143589, 1372143588, 1372143576, 1372143563, 1372143555, 1372143553, 1372143551, 1372143549, 1372143548, 1372143547, 1372143538, 1372143536, 1372143535, 1372143534, 1372143533, 1372143531, 1372143525, 1372143523, 1372143522, 1372143521, 1372143520, 1372143519, 1372143514, 1372143512, 1372143511, 1372143510, 1372143509, 1372143507, 1372143499, 1372143497, 1372143496, 1372143494, 1372143492, 1372143490]} final : False mtd_id 4302 list_pids : [1372144254] 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, '3284567') ('4302', '24936920', '1372144254', None, None, None, None, None, '3284567') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '24936920', '1372144254', None, None, None, None, None, '3284567')] time used for this insertion : 0.010895490646362305 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8972258567810059 time spend to save output : 0.011089324951171875 total time spend for step 4 : 1.9083151817321777 step5:split_time_score Tue Jul 15 00:01:00 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 : ['24936920'] 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 : [('24936920',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24936920) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1372144254: {'path': 'temp/1752530458_3817930_1372144254_775fedeca619eda1ebcd8c5e9846f1de.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 = 24936920; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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 = 24936920 group by h (('23', 69),) 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=24936920 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 (24936920) 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 (24936920) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14072025 24936920 Nombre de photos uploadées : 69 / 23040 (0%) 14072025 24936920 Nombre de photos taguées (types de déchets): 0 / 69 (0%) 14072025 24936920 Nombre de photos taguées (volume) : 0 / 69 (0%) [{'photo_id': 1372143499, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/2c1f365bb038ece9668e0706940958e4.jpg', 'username': None, 'uploaded_at': 1752529563, 'text': 'image_14072025_23_45_04_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1372143497, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/d4a179c8d9779687fdf723ffa97ead61.jpg', 'username': None, 'uploaded_at': 1752529563, 'text': 'image_14072025_23_45_13_009124m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1372143496, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/c9dc0e89a07e11d1b05bdb15ae3b7e48.jpg', 'username': None, 'uploaded_at': 1752529563, 'text': 'image_14072025_23_45_23_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1372143494, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/0cee642de29860c9c3ac73a08468fae1.jpg', 'username': None, 'uploaded_at': 1752529563, 'text': 'image_14072025_23_45_33_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 1.0013580322265625e-05 ????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004052877426147461 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24936920, '2025-07-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1975044,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022859811782836914 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= 1975044 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24901827, 'dashboard_result_id': 12542071, '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_P24901827_14-07-2025_05_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24901853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24901854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24901855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24901856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24901857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24901858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24901859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24901860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24901861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24901862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24901863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24901864, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24902221, 'dashboard_result_id': 12542072, '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_P24902221_14-07-2025_05_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902235, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24902636, 'dashboard_result_id': 12542073, '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_P24902636_14-07-2025_05_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902675, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24903073, 'dashboard_result_id': 12542074, '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_P24903073_14-07-2025_06_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903110, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24903581, 'dashboard_result_id': 12542075, '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_P24903581_14-07-2025_06_17_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903619, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24904018, 'dashboard_result_id': 12542076, '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_P24904018_14-07-2025_06_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904032, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24904386, 'dashboard_result_id': 12542077, '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_P24904386_14-07-2025_06_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904425, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24904901, 'dashboard_result_id': 12542078, '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_P24904901_14-07-2025_07_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904915, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24905304, 'dashboard_result_id': 12542079, '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_P24905304_14-07-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24905314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905317, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24905756, 'dashboard_result_id': 12542080, '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_P24905756_14-07-2025_07_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24905761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905772, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24906253, 'dashboard_result_id': 12542081, '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_P24906253_14-07-2025_07_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24906288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906291, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24906760, 'dashboard_result_id': 12542082, '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_P24906760_14-07-2025_08_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24906765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906767, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906776, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24907240, 'dashboard_result_id': 12542083, '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_P24907240_14-07-2025_08_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24907242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907253, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24907680, 'dashboard_result_id': 12542084, '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_P24907680_14-07-2025_08_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24907686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907694, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24908086, 'dashboard_result_id': 12542085, '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_P24908086_14-07-2025_08_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908123, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24908514, 'dashboard_result_id': 12542086, '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_P24908514_14-07-2025_09_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908555, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24909075, 'dashboard_result_id': 12542087, '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_P24909075_14-07-2025_09_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909087, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24909513, 'dashboard_result_id': 12542088, '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_P24909513_14-07-2025_09_30_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909553, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24910025, 'dashboard_result_id': 12542089, '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_P24910025_14-07-2025_09_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24910061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910064, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24910502, 'dashboard_result_id': 12542090, '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_P24910502_14-07-2025_10_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24910531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910542, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24911035, 'dashboard_result_id': 12542091, '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_P24911035_14-07-2025_10_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24911061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911072, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24911443, 'dashboard_result_id': 12542092, '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_P24911443_14-07-2025_10_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911458, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24911823, 'dashboard_result_id': 12542093, '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_P24911823_14-07-2025_10_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911861, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24912308, 'dashboard_result_id': 12542094, '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_P24912308_14-07-2025_11_01_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24912310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24912311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24912312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24912313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24912314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24912315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24912316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24912317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24912318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24912319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24912320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24912321, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24912749, 'dashboard_result_id': 12542095, '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_P24912749_14-07-2025_11_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24912775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24912776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24912777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24912778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24912779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24912780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24912781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24912782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24912783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24912784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24912785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24912786, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24913241, 'dashboard_result_id': 12542096, '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_P24913241_14-07-2025_11_30_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24913266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24913267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24913268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24913269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24913270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24913271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24913272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24913273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24913274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24913275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24913276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24913277, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24913718, 'dashboard_result_id': 12542097, '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_P24913718_14-07-2025_11_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24913745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24913746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24913747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24913748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24913749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24913750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24913751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24913752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24913753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24913754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24913755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24913756, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24914204, 'dashboard_result_id': 12542098, '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_P24914204_14-07-2025_12_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24914208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24914209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24914210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24914211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24914212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24914213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24914214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24914215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24914216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24914217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24914218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24914219, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24914645, 'dashboard_result_id': 12542099, '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_P24914645_14-07-2025_12_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24914646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24914647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24914648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24914649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24914650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24914651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24914652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24914653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24914654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24914655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24914656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24914657, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24915098, 'dashboard_result_id': 12542100, '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_P24915098_14-07-2025_12_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24915106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24915107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24915108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24915109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24915110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24915111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24915112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24915113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24915114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24915115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24915116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24915117, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24915507, 'dashboard_result_id': 12542101, '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_P24915507_14-07-2025_12_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24915535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24915536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24915537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24915538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24915539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24915540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24915541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24915542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24915543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24915544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24915545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24915546, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24915988, 'dashboard_result_id': 12542102, '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_P24915988_14-07-2025_13_00_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24916014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24916015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24916016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24916017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24916018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24916019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24916020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24916021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24916022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24916023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24916024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24916025, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24916428, 'dashboard_result_id': 12542103, '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_P24916428_14-07-2025_13_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24916431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24916432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24916433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24916434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24916435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24916436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24916437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24916438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24916439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24916440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24916441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24916442, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24916885, 'dashboard_result_id': 12542104, '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_P24916885_14-07-2025_13_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24916913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24916914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24916915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24916916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24916917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24916918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24916919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24916920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24916921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24916922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24916923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24916924, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24917391, 'dashboard_result_id': 12542105, '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_P24917391_14-07-2025_13_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24917419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24917420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24917421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24917422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24917423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24917424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24917425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24917426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24917427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24917428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24917429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24917430, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24917852, 'dashboard_result_id': 12542106, '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_P24917852_14-07-2025_14_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24917878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24917879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24917880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24917881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24917882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24917883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24917884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24917885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24917886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24917887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24917888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24917889, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24918291, 'dashboard_result_id': 12542107, '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_P24918291_14-07-2025_14_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24918295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24918296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24918297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24918298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24918299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24918300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24918301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24918302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24918303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24918304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24918305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24918306, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24918749, 'dashboard_result_id': 12542108, '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_P24918749_14-07-2025_14_30_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24918755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24918756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24918757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24918758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24918759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24918760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24918761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24918762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24918763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24918764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24918765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24918766, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24919255, 'dashboard_result_id': 12542109, '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_P24919255_14-07-2025_14_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24919282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24919283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24919284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24919285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24919286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24919287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24919288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24919289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24919290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24919291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24919292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24919293, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24919604, 'dashboard_result_id': 12542110, '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_P24919604_14-07-2025_15_00_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24919633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24919634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24919635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24919636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24919637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24919638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24919639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24919640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24919641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24919642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24919643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24919644, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24920124, 'dashboard_result_id': 12542111, '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_P24920124_14-07-2025_15_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24920126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24920127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24920128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24920129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24920130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24920131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24920132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24920133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24920134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24920135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24920136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24920137, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24920589, 'dashboard_result_id': 12542112, '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_P24920589_14-07-2025_15_30_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24920619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24920620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24920621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24920622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24920623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24920624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24920625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24920626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24920627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24920628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24920629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24920630, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24921042, 'dashboard_result_id': 12542113, '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_P24921042_14-07-2025_15_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24921068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24921069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24921070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24921071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24921072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24921073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24921074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24921075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24921076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24921077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24921078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24921079, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24921465, 'dashboard_result_id': 12542114, '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_P24921465_14-07-2025_16_00_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24921469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24921470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24921471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24921472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24921473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24921474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24921475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24921476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24921477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24921478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24921479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24921480, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24922007, 'dashboard_result_id': 12542115, '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_P24922007_14-07-2025_16_15_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24922011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24922012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24922013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24922014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24922015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24922016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24922017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24922018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24922019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24922020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24922021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24922022, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24922378, 'dashboard_result_id': 12542116, '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_P24922378_14-07-2025_16_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24922383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24922384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24922385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24922386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24922387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24922388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24922389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24922390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24922391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24922392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24922393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24922394, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24922786, 'dashboard_result_id': 12542117, '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_P24922786_14-07-2025_16_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24922817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24922818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24922819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24922820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24922821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24922822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24922824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24922825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24922826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24922827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24922828, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24923267, 'dashboard_result_id': 12542118, '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_P24923267_14-07-2025_17_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24923294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24923295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24923296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24923297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24923298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24923299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24923300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24923301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24923302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24923303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24923304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24923305, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24923737, 'dashboard_result_id': 12542119, '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_P24923737_14-07-2025_17_17_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24923738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24923739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24923740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24923741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24923742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24923743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24923744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24923745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24923746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24923747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24923748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24923749, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24924108, 'dashboard_result_id': 12542120, '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_P24924108_14-07-2025_17_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24924138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24924139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24924140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24924141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24924142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24924143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24924144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24924145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24924146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24924147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24924148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24924149, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24924539, 'dashboard_result_id': 12542121, '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_P24924539_14-07-2025_17_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24924545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24924546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24924547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24924548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24924549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24924550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24924551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24924552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24924553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24924554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24924555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24924556, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24924757, 'dashboard_result_id': 12542122, '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_P24924757_14-07-2025_18_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24924783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24924784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24924785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24924786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24924787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24924788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24924789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24924790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24924791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24924792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24924793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24924794, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24925155, 'dashboard_result_id': 12542123, '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_P24925155_14-07-2025_18_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24925161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24925162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24925163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24925164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24925165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24925166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24925167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24925168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24925169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24925170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24925171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24925172, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24925655, 'dashboard_result_id': 12542124, '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_P24925655_14-07-2025_18_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24925695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24925696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24925697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24925698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24925699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24925700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24925701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24925702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24925703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24925704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24925705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24925706, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24926194, 'dashboard_result_id': 12542125, '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_P24926194_14-07-2025_18_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24926200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24926201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24926202, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24926203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24926204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24926205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24926206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24926207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24926208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24926209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24926210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24926211, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24926656, 'dashboard_result_id': 12542126, '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_P24926656_14-07-2025_19_00_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24926694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24926695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24926696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24926697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24926698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24926699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24926700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24926701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24926702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24926703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24926704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24926705, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24927198, 'dashboard_result_id': 12542127, '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_P24927198_14-07-2025_19_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24927240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24927241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24927242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24927243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24927244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24927245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24927246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24927247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24927248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24927249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24927250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24927251, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24927672, 'dashboard_result_id': 12542128, '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_P24927672_14-07-2025_19_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24927710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24927711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24927712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24927713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24927714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24927715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24927716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24927717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24927718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24927719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24927720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24927721, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24928220, 'dashboard_result_id': 12542129, '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_P24928220_14-07-2025_19_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24928226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24928227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24928228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24928229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24928230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24928231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24928232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24928233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24928234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24928235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24928236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24928237, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24928701, 'dashboard_result_id': 12542130, '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_P24928701_14-07-2025_20_00_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24928739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24928740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24928741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24928742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24928743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24928744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24928745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24928746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24928747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24928748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24928749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24928750, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24929214, 'dashboard_result_id': 12542131, '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_P24929214_14-07-2025_20_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24929256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24929257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24929258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24929259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24929260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24929261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24929262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24929263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24929264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24929265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24929266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24929267, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24929704, 'dashboard_result_id': 12542132, '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_P24929704_14-07-2025_20_30_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24929714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24929715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24929716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24929717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24929718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24929719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24929720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24929721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24929722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24929723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24929725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24929726, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24930118, 'dashboard_result_id': 12542133, '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_P24930118_14-07-2025_20_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24930124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24930125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24930126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24930127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24930128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24930129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24930130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24930131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24930132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24930133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24930134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24930135, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24930598, 'dashboard_result_id': 12542134, '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_P24930598_14-07-2025_21_00_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24930624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24930626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24930627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24930628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24930629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24930630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24930631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24930632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24930633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24930634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24930635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24930636, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24931008, 'dashboard_result_id': 12542135, '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_P24931008_14-07-2025_21_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24931009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24931010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24931011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24931012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24931013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24931014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24931015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24931016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24931017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24931018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24931019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24931020, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24931445, 'dashboard_result_id': 12542136, '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_P24931445_14-07-2025_21_33_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24931482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24931483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24931484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24931486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24931487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24931488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24931489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24931490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24931491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24931492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24931493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24931494, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24931856, 'dashboard_result_id': 12542137, '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_P24931856_14-07-2025_21_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24931862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24931863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24931864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24931865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24931866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24931867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24931868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24931869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24931870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24931871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24931872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24931873, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24932241, 'dashboard_result_id': 12542138, '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_P24932241_14-07-2025_22_00_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24932269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24932270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24932271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24932272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24932273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24932274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24932275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24932276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24932277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24932278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24932279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24932280, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24932805, 'dashboard_result_id': 12542139, '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_P24932805_14-07-2025_22_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24932829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24932830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24932831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24932832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24932833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24932834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24932835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24932836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24932837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24932838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24932839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24932840, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24933440, 'dashboard_result_id': 12542140, '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_P24933440_14-07-2025_22_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24933476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24933477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24933478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24933479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24933480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24933481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24933482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24933484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24933485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24933486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24933487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24933488, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24934144, 'dashboard_result_id': 12542141, '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_P24934144_14-07-2025_22_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24934157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24934158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24934159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24934160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24934161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24934162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24934163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24934164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24934165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24934166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24934167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24934168, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24934771, 'dashboard_result_id': 12542142, '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_P24934771_14-07-2025_23_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24934779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24934780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24934781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24934782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24934783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24934784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24934785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24934786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24934787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24934788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24934789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24934790, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24935230, 'dashboard_result_id': 12542143, '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_P24935230_14-07-2025_23_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24935237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24935238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24935239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24935240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24935241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24935242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24935243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24935244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24935245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24935246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24935247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24935248, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24935755, 'dashboard_result_id': 12542144, '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_P24935755_14-07-2025_23_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24935767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24935768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24935769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24935770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24935771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24935772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24935773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24935774, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24935775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24935776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24935777, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24935778, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24936318, 'dashboard_result_id': 12542145, '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_P24936318_14-07-2025_23_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24936390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24936391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24936392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24936393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24936394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24936395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24936396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24936397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24936398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24936399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24936400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24936401, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1985706, 'mtr_portfolio_id': 24936920, 'dashboard_result_id': 12542146, '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_P24936920_14-07-2025_23_59_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24936993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24936994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24936995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24936996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24936997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24936998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24936999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24937000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24937002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24937003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24937004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24937005, '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 = 24901827 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': 3277881, 'mtr_portfolio_id': 24901827, 'created_at': datetime.datetime(2025, 7, 14, 5, 16, 56), 'result': '0.020520187424531714', 'result_long': None, 'result_double': None}] Qualite : 0.020520187424531714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24901827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24901827_14-07-2025_05_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24901827 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_P24901827_14-07-2025_05_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24901853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24901854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24901855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24901856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24901857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24901858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24901859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24901860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24901861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24901862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24901863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24901864, 'pht': 3726}}" where mtr_portfolio_id = 24901827 and dashboard_run_id = 1985706 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`=24901827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542071, 0.020520187424531714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24901827_14-07-2025_05_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24901853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24901854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24901855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24901856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24901857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24901858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24901859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24901860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24901861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24901862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24901863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24901864, '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 = 24902221 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': 3277914, 'mtr_portfolio_id': 24902221, 'created_at': datetime.datetime(2025, 7, 14, 5, 32, 58), 'result': '0.020039778539176004', 'result_long': None, 'result_double': None}] Qualite : 0.020039778539176004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24902221 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24902221_14-07-2025_05_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24902221 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_P24902221_14-07-2025_05_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902235, 'pht': 3726}}" where mtr_portfolio_id = 24902221 and dashboard_run_id = 1985706 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`=24902221 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542072, 0.020039778539176004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24902221_14-07-2025_05_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902235, '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 = 24902636 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': 3277963, 'mtr_portfolio_id': 24902636, 'created_at': datetime.datetime(2025, 7, 14, 5, 46, 58), 'result': '0.017684671803411177', 'result_long': None, 'result_double': None}] Qualite : 0.017684671803411177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24902636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24902636_14-07-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24902636 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_P24902636_14-07-2025_05_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902675, 'pht': 3726}}" where mtr_portfolio_id = 24902636 and dashboard_run_id = 1985706 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`=24902636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542073, 0.017684671803411177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24902636_14-07-2025_05_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902675, '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 = 24903073 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': 3278008, 'mtr_portfolio_id': 24903073, 'created_at': datetime.datetime(2025, 7, 14, 6, 0, 58), 'result': '0.019063080712617073', 'result_long': None, 'result_double': None}] Qualite : 0.019063080712617073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24903073 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24903073_14-07-2025_06_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24903073 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_P24903073_14-07-2025_06_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903110, 'pht': 3726}}" where mtr_portfolio_id = 24903073 and dashboard_run_id = 1985706 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`=24903073 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542074, 0.019063080712617073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24903073_14-07-2025_06_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903110, '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 = 24903581 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': 3278066, 'mtr_portfolio_id': 24903581, 'created_at': datetime.datetime(2025, 7, 14, 6, 17, 28), 'result': '0.041257047313408374', 'result_long': None, 'result_double': None}] Qualite : 0.041257047313408374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24903581 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24903581_14-07-2025_06_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24903581 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_P24903581_14-07-2025_06_17_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903619, 'pht': 3726}}" where mtr_portfolio_id = 24903581 and dashboard_run_id = 1985706 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`=24903581 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542075, 0.041257047313408374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24903581_14-07-2025_06_17_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903619, '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 = 24904018 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': 3278106, 'mtr_portfolio_id': 24904018, 'created_at': datetime.datetime(2025, 7, 14, 6, 31), 'result': '0.03460715103708139', 'result_long': None, 'result_double': None}] Qualite : 0.03460715103708139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24904018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904018_14-07-2025_06_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24904018 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_P24904018_14-07-2025_06_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904032, 'pht': 3726}}" where mtr_portfolio_id = 24904018 and dashboard_run_id = 1985706 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`=24904018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542076, 0.03460715103708139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904018_14-07-2025_06_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904032, '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 = 24904386 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': 3278152, 'mtr_portfolio_id': 24904386, 'created_at': datetime.datetime(2025, 7, 14, 6, 46, 29), 'result': '0.03139351803924442', 'result_long': None, 'result_double': None}] Qualite : 0.03139351803924442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24904386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904386_14-07-2025_06_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24904386 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_P24904386_14-07-2025_06_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904425, 'pht': 3726}}" where mtr_portfolio_id = 24904386 and dashboard_run_id = 1985706 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`=24904386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542077, 0.03139351803924442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904386_14-07-2025_06_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904425, '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 = 24904901 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': 3278204, 'mtr_portfolio_id': 24904901, 'created_at': datetime.datetime(2025, 7, 14, 7, 0, 59), 'result': '0.038422930226965094', 'result_long': None, 'result_double': None}] Qualite : 0.038422930226965094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24904901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904901_14-07-2025_07_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24904901 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_P24904901_14-07-2025_07_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904915, 'pht': 3726}}" where mtr_portfolio_id = 24904901 and dashboard_run_id = 1985706 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`=24904901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542078, 0.038422930226965094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904901_14-07-2025_07_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904915, '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 = 24905304 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': 3278256, 'mtr_portfolio_id': 24905304, 'created_at': datetime.datetime(2025, 7, 14, 7, 17, 1), 'result': '0.0434550702202736', 'result_long': None, 'result_double': None}] Qualite : 0.0434550702202736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24905304 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24905304_14-07-2025_07_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24905304 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_P24905304_14-07-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24905314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905317, 'pht': 3726}}" where mtr_portfolio_id = 24905304 and dashboard_run_id = 1985706 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`=24905304 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542079, 0.0434550702202736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24905304_14-07-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24905314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905317, '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 = 24905756 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': 3278311, 'mtr_portfolio_id': 24905756, 'created_at': datetime.datetime(2025, 7, 14, 7, 30, 58), 'result': '0.032441134716623576', 'result_long': None, 'result_double': None}] Qualite : 0.032441134716623576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24905756 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24905756_14-07-2025_07_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24905756 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_P24905756_14-07-2025_07_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24905761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905772, 'pht': 3726}}" where mtr_portfolio_id = 24905756 and dashboard_run_id = 1985706 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`=24905756 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542080, 0.032441134716623576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24905756_14-07-2025_07_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24905761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905772, '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 = 24906253 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': 3278374, 'mtr_portfolio_id': 24906253, 'created_at': datetime.datetime(2025, 7, 14, 7, 47), 'result': '0.039380079576465374', 'result_long': None, 'result_double': None}] Qualite : 0.039380079576465374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24906253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24906253_14-07-2025_07_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24906253 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_P24906253_14-07-2025_07_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24906288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906291, 'pht': 3726}}" where mtr_portfolio_id = 24906253 and dashboard_run_id = 1985706 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`=24906253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542081, 0.039380079576465374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24906253_14-07-2025_07_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24906288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906291, '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 = 24906760 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': 3278419, 'mtr_portfolio_id': 24906760, 'created_at': datetime.datetime(2025, 7, 14, 8, 1), 'result': '0.03265007446875006', 'result_long': None, 'result_double': None}] Qualite : 0.03265007446875006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24906760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24906760_14-07-2025_08_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24906760 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_P24906760_14-07-2025_08_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24906765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906767, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906776, 'pht': 3726}}" where mtr_portfolio_id = 24906760 and dashboard_run_id = 1985706 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`=24906760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542082, 0.03265007446875006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24906760_14-07-2025_08_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24906765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906767, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906776, '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 = 24907240 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': 3278486, 'mtr_portfolio_id': 24907240, 'created_at': datetime.datetime(2025, 7, 14, 8, 16, 58), 'result': '0.040364620903346894', 'result_long': None, 'result_double': None}] Qualite : 0.040364620903346894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24907240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24907240_14-07-2025_08_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24907240 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_P24907240_14-07-2025_08_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24907242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907253, 'pht': 3726}}" where mtr_portfolio_id = 24907240 and dashboard_run_id = 1985706 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`=24907240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542083, 0.040364620903346894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24907240_14-07-2025_08_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24907242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907253, '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 = 24907680 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': 3278539, 'mtr_portfolio_id': 24907680, 'created_at': datetime.datetime(2025, 7, 14, 8, 30, 59), 'result': '0.03871581370502936', 'result_long': None, 'result_double': None}] Qualite : 0.03871581370502936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24907680 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24907680_14-07-2025_08_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24907680 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_P24907680_14-07-2025_08_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24907686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907694, 'pht': 3726}}" where mtr_portfolio_id = 24907680 and dashboard_run_id = 1985706 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`=24907680 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542084, 0.03871581370502936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24907680_14-07-2025_08_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24907686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907694, '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 = 24908086 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': 3278597, 'mtr_portfolio_id': 24908086, 'created_at': datetime.datetime(2025, 7, 14, 8, 46, 58), 'result': '0.029453610529616064', 'result_long': None, 'result_double': None}] Qualite : 0.029453610529616064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24908086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24908086_14-07-2025_08_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24908086 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_P24908086_14-07-2025_08_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908123, 'pht': 3726}}" where mtr_portfolio_id = 24908086 and dashboard_run_id = 1985706 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`=24908086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542085, 0.029453610529616064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24908086_14-07-2025_08_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908123, '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 = 24908514 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': 3278660, 'mtr_portfolio_id': 24908514, 'created_at': datetime.datetime(2025, 7, 14, 9, 0, 58), 'result': '0.019846087577955487', 'result_long': None, 'result_double': None}] Qualite : 0.019846087577955487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24908514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24908514_14-07-2025_09_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24908514 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_P24908514_14-07-2025_09_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908555, 'pht': 3726}}" where mtr_portfolio_id = 24908514 and dashboard_run_id = 1985706 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`=24908514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542086, 0.019846087577955487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24908514_14-07-2025_09_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908555, '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 = 24909075 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': 3278726, 'mtr_portfolio_id': 24909075, 'created_at': datetime.datetime(2025, 7, 14, 9, 16, 58), 'result': '0.0477148266371259', 'result_long': None, 'result_double': None}] Qualite : 0.0477148266371259 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24909075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24909075_14-07-2025_09_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24909075 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_P24909075_14-07-2025_09_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909087, 'pht': 3726}}" where mtr_portfolio_id = 24909075 and dashboard_run_id = 1985706 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`=24909075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542087, 0.0477148266371259, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24909075_14-07-2025_09_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909087, '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 = 24909513 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': 3278781, 'mtr_portfolio_id': 24909513, 'created_at': datetime.datetime(2025, 7, 14, 9, 30, 57), 'result': '0.04204467601156263', 'result_long': None, 'result_double': None}] Qualite : 0.04204467601156263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24909513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24909513_14-07-2025_09_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24909513 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_P24909513_14-07-2025_09_30_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909553, 'pht': 3726}}" where mtr_portfolio_id = 24909513 and dashboard_run_id = 1985706 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`=24909513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542088, 0.04204467601156263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24909513_14-07-2025_09_30_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909553, '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 = 24910025 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': 3278856, 'mtr_portfolio_id': 24910025, 'created_at': datetime.datetime(2025, 7, 14, 9, 46, 58), 'result': '0.05106990517368116', 'result_long': None, 'result_double': None}] Qualite : 0.05106990517368116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24910025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24910025_14-07-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24910025 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_P24910025_14-07-2025_09_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24910061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910064, 'pht': 3726}}" where mtr_portfolio_id = 24910025 and dashboard_run_id = 1985706 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`=24910025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542089, 0.05106990517368116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24910025_14-07-2025_09_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24910061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910064, '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 = 24910502 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': 3278907, 'mtr_portfolio_id': 24910502, 'created_at': datetime.datetime(2025, 7, 14, 10, 1), 'result': '0.05820772783996079', 'result_long': None, 'result_double': None}] Qualite : 0.05820772783996079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24910502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24910502_14-07-2025_10_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24910502 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_P24910502_14-07-2025_10_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24910531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910542, 'pht': 3726}}" where mtr_portfolio_id = 24910502 and dashboard_run_id = 1985706 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`=24910502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542090, 0.05820772783996079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24910502_14-07-2025_10_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24910531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910542, '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 = 24911035 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': 3278978, 'mtr_portfolio_id': 24911035, 'created_at': datetime.datetime(2025, 7, 14, 10, 16, 59), 'result': '0.049242692038900304', 'result_long': None, 'result_double': None}] Qualite : 0.049242692038900304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24911035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911035_14-07-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24911035 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_P24911035_14-07-2025_10_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24911061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911072, 'pht': 3726}}" where mtr_portfolio_id = 24911035 and dashboard_run_id = 1985706 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`=24911035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542091, 0.049242692038900304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911035_14-07-2025_10_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24911061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911072, '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 = 24911443 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': 3279025, 'mtr_portfolio_id': 24911443, 'created_at': datetime.datetime(2025, 7, 14, 10, 30, 58), 'result': '0.05401401419586676', 'result_long': None, 'result_double': None}] Qualite : 0.05401401419586676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24911443 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911443_14-07-2025_10_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24911443 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_P24911443_14-07-2025_10_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911458, 'pht': 3726}}" where mtr_portfolio_id = 24911443 and dashboard_run_id = 1985706 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`=24911443 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542092, 0.05401401419586676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911443_14-07-2025_10_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911458, '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 = 24911823 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': 3279083, 'mtr_portfolio_id': 24911823, 'created_at': datetime.datetime(2025, 7, 14, 10, 46, 58), 'result': '0.052792309226215556', 'result_long': None, 'result_double': None}] Qualite : 0.052792309226215556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24911823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911823_14-07-2025_10_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24911823 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_P24911823_14-07-2025_10_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911861, 'pht': 3726}}" where mtr_portfolio_id = 24911823 and dashboard_run_id = 1985706 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`=24911823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542093, 0.052792309226215556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911823_14-07-2025_10_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911861, '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 = 24912308 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': 3279133, 'mtr_portfolio_id': 24912308, 'created_at': datetime.datetime(2025, 7, 14, 11, 1), 'result': '0.06071912126563584', 'result_long': None, 'result_double': None}] Qualite : 0.06071912126563584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24912308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24912308_14-07-2025_11_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24912308 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_P24912308_14-07-2025_11_01_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24912310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24912311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24912312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24912313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24912314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24912315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24912316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24912317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24912318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24912319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24912320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24912321, 'pht': 3726}}" where mtr_portfolio_id = 24912308 and dashboard_run_id = 1985706 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`=24912308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542094, 0.06071912126563584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24912308_14-07-2025_11_01_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24912310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24912311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24912312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24912313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24912314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24912315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24912316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24912317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24912318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24912319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24912320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24912321, '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 = 24912749 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': 3279203, 'mtr_portfolio_id': 24912749, 'created_at': datetime.datetime(2025, 7, 14, 11, 16, 59), 'result': '0.04921124648297088', 'result_long': None, 'result_double': None}] Qualite : 0.04921124648297088 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24912749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24912749_14-07-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24912749 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_P24912749_14-07-2025_11_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24912775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24912776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24912777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24912778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24912779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24912780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24912781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24912782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24912783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24912784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24912785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24912786, 'pht': 3726}}" where mtr_portfolio_id = 24912749 and dashboard_run_id = 1985706 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`=24912749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542095, 0.04921124648297088, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24912749_14-07-2025_11_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24912775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24912776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24912777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24912778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24912779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24912780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24912781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24912782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24912783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24912784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24912785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24912786, '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 = 24913241 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': 3279253, 'mtr_portfolio_id': 24913241, 'created_at': datetime.datetime(2025, 7, 14, 11, 30, 31), 'result': '0.039660991521937854', 'result_long': None, 'result_double': None}] Qualite : 0.039660991521937854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24913241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24913241_14-07-2025_11_30_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24913241 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_P24913241_14-07-2025_11_30_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24913266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24913267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24913268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24913269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24913270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24913271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24913272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24913273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24913274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24913275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24913276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24913277, 'pht': 3726}}" where mtr_portfolio_id = 24913241 and dashboard_run_id = 1985706 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`=24913241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542096, 0.039660991521937854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24913241_14-07-2025_11_30_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24913266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24913267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24913268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24913269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24913270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24913271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24913272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24913273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24913274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24913275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24913276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24913277, '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 = 24913718 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': 3279315, 'mtr_portfolio_id': 24913718, 'created_at': datetime.datetime(2025, 7, 14, 11, 46, 30), 'result': '0.04841667270379792', 'result_long': None, 'result_double': None}] Qualite : 0.04841667270379792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24913718 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24913718_14-07-2025_11_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24913718 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_P24913718_14-07-2025_11_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24913745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24913746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24913747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24913748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24913749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24913750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24913751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24913752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24913753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24913754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24913755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24913756, 'pht': 3726}}" where mtr_portfolio_id = 24913718 and dashboard_run_id = 1985706 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`=24913718 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542097, 0.04841667270379792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24913718_14-07-2025_11_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24913745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24913746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24913747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24913748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24913749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24913750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24913751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24913752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24913753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24913754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24913755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24913756, '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 = 24914204 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': 3279372, 'mtr_portfolio_id': 24914204, 'created_at': datetime.datetime(2025, 7, 14, 12, 1), 'result': '0.03992282204152798', 'result_long': None, 'result_double': None}] Qualite : 0.03992282204152798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24914204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24914204_14-07-2025_12_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24914204 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_P24914204_14-07-2025_12_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24914208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24914209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24914210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24914211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24914212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24914213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24914214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24914215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24914216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24914217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24914218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24914219, 'pht': 3726}}" where mtr_portfolio_id = 24914204 and dashboard_run_id = 1985706 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`=24914204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542098, 0.03992282204152798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24914204_14-07-2025_12_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24914208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24914209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24914210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24914211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24914212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24914213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24914214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24914215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24914216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24914217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24914218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24914219, '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 = 24914645 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': 3279435, 'mtr_portfolio_id': 24914645, 'created_at': datetime.datetime(2025, 7, 14, 12, 17), 'result': '0.02106948826530392', 'result_long': None, 'result_double': None}] Qualite : 0.02106948826530392 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24914645 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24914645_14-07-2025_12_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24914645 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_P24914645_14-07-2025_12_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24914646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24914647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24914648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24914649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24914650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24914651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24914652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24914653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24914654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24914655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24914656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24914657, 'pht': 3726}}" where mtr_portfolio_id = 24914645 and dashboard_run_id = 1985706 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`=24914645 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542099, 0.02106948826530392, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24914645_14-07-2025_12_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24914646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24914647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24914648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24914649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24914650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24914651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24914652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24914653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24914654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24914655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24914656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24914657, '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 = 24915098 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': 3279491, 'mtr_portfolio_id': 24915098, 'created_at': datetime.datetime(2025, 7, 14, 12, 30, 57), 'result': '0.036285208167940224', 'result_long': None, 'result_double': None}] Qualite : 0.036285208167940224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24915098 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24915098_14-07-2025_12_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24915098 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_P24915098_14-07-2025_12_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24915106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24915107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24915108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24915109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24915110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24915111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24915112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24915113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24915114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24915115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24915116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24915117, 'pht': 3726}}" where mtr_portfolio_id = 24915098 and dashboard_run_id = 1985706 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`=24915098 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542100, 0.036285208167940224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24915098_14-07-2025_12_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24915106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24915107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24915108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24915109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24915110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24915111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24915112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24915113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24915114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24915115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24915116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24915117, '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 = 24915507 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': 3279555, 'mtr_portfolio_id': 24915507, 'created_at': datetime.datetime(2025, 7, 14, 12, 47), 'result': '0.03427156566845744', 'result_long': None, 'result_double': None}] Qualite : 0.03427156566845744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24915507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24915507_14-07-2025_12_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24915507 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_P24915507_14-07-2025_12_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24915535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24915536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24915537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24915538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24915539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24915540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24915541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24915542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24915543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24915544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24915545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24915546, 'pht': 3726}}" where mtr_portfolio_id = 24915507 and dashboard_run_id = 1985706 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`=24915507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542101, 0.03427156566845744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24915507_14-07-2025_12_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24915535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24915536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24915537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24915538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24915539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24915540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24915541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24915542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24915543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24915544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24915545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24915546, '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 = 24915988 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': 3279616, 'mtr_portfolio_id': 24915988, 'created_at': datetime.datetime(2025, 7, 14, 13, 0, 56), 'result': '0.025711760730561948', 'result_long': None, 'result_double': None}] Qualite : 0.025711760730561948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24915988 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24915988_14-07-2025_13_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24915988 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_P24915988_14-07-2025_13_00_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24916014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24916015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24916016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24916017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24916018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24916019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24916020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24916021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24916022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24916023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24916024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24916025, 'pht': 3726}}" where mtr_portfolio_id = 24915988 and dashboard_run_id = 1985706 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`=24915988 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542102, 0.025711760730561948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24915988_14-07-2025_13_00_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24916014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24916015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24916016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24916017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24916018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24916019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24916020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24916021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24916022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24916023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24916024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24916025, '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 = 24916428 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': 3279683, 'mtr_portfolio_id': 24916428, 'created_at': datetime.datetime(2025, 7, 14, 13, 16, 57), 'result': '0.04337796649220229', 'result_long': None, 'result_double': None}] Qualite : 0.04337796649220229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24916428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24916428_14-07-2025_13_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24916428 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_P24916428_14-07-2025_13_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24916431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24916432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24916433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24916434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24916435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24916436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24916437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24916438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24916439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24916440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24916441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24916442, 'pht': 3726}}" where mtr_portfolio_id = 24916428 and dashboard_run_id = 1985706 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`=24916428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542103, 0.04337796649220229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24916428_14-07-2025_13_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24916431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24916432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24916433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24916434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24916435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24916436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24916437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24916438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24916439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24916440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24916441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24916442, '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 = 24916885 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': 3279731, 'mtr_portfolio_id': 24916885, 'created_at': datetime.datetime(2025, 7, 14, 13, 30, 58), 'result': '0.03934762031928024', 'result_long': None, 'result_double': None}] Qualite : 0.03934762031928024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24916885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24916885_14-07-2025_13_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24916885 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_P24916885_14-07-2025_13_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24916913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24916914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24916915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24916916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24916917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24916918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24916919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24916920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24916921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24916922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24916923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24916924, 'pht': 3726}}" where mtr_portfolio_id = 24916885 and dashboard_run_id = 1985706 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`=24916885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542104, 0.03934762031928024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24916885_14-07-2025_13_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24916913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24916914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24916915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24916916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24916917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24916918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24916919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24916920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24916921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24916922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24916923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24916924, '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 = 24917391 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': 3279799, 'mtr_portfolio_id': 24917391, 'created_at': datetime.datetime(2025, 7, 14, 13, 46, 30), 'result': '0.035770077445520874', 'result_long': None, 'result_double': None}] Qualite : 0.035770077445520874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24917391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24917391_14-07-2025_13_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24917391 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_P24917391_14-07-2025_13_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24917419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24917420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24917421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24917422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24917423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24917424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24917425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24917426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24917427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24917428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24917429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24917430, 'pht': 3726}}" where mtr_portfolio_id = 24917391 and dashboard_run_id = 1985706 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`=24917391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542105, 0.035770077445520874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24917391_14-07-2025_13_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24917419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24917420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24917421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24917422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24917423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24917424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24917425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24917426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24917427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24917428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24917429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24917430, '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 = 24917852 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': 3279859, 'mtr_portfolio_id': 24917852, 'created_at': datetime.datetime(2025, 7, 14, 14, 0, 58), 'result': '0.050041803620207874', 'result_long': None, 'result_double': None}] Qualite : 0.050041803620207874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24917852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24917852_14-07-2025_14_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24917852 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_P24917852_14-07-2025_14_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24917878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24917879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24917880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24917881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24917882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24917883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24917884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24917885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24917886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24917887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24917888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24917889, 'pht': 3726}}" where mtr_portfolio_id = 24917852 and dashboard_run_id = 1985706 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`=24917852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542106, 0.050041803620207874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24917852_14-07-2025_14_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24917878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24917879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24917880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24917881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24917882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24917883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24917884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24917885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24917886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24917887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24917888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24917889, '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 = 24918291 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': 3279919, 'mtr_portfolio_id': 24918291, 'created_at': datetime.datetime(2025, 7, 14, 14, 16, 58), 'result': '0.03036757228993899', 'result_long': None, 'result_double': None}] Qualite : 0.03036757228993899 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24918291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24918291_14-07-2025_14_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24918291 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_P24918291_14-07-2025_14_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24918295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24918296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24918297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24918298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24918299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24918300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24918301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24918302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24918303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24918304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24918305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24918306, 'pht': 3726}}" where mtr_portfolio_id = 24918291 and dashboard_run_id = 1985706 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`=24918291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542107, 0.03036757228993899, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24918291_14-07-2025_14_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24918295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24918296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24918297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24918298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24918299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24918300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24918301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24918302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24918303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24918304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24918305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24918306, '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 = 24918749 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': 3279970, 'mtr_portfolio_id': 24918749, 'created_at': datetime.datetime(2025, 7, 14, 14, 30, 57), 'result': '0.029819307408678893', 'result_long': None, 'result_double': None}] Qualite : 0.029819307408678893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24918749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24918749_14-07-2025_14_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24918749 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_P24918749_14-07-2025_14_30_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24918755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24918756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24918757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24918758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24918759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24918760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24918761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24918762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24918763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24918764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24918765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24918766, 'pht': 3726}}" where mtr_portfolio_id = 24918749 and dashboard_run_id = 1985706 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`=24918749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542108, 0.029819307408678893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24918749_14-07-2025_14_30_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24918755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24918756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24918757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24918758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24918759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24918760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24918761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24918762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24918763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24918764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24918765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24918766, '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 = 24919255 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': 3280037, 'mtr_portfolio_id': 24919255, 'created_at': datetime.datetime(2025, 7, 14, 14, 47, 28), 'result': '0.048777696012353884', 'result_long': None, 'result_double': None}] Qualite : 0.048777696012353884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24919255 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24919255_14-07-2025_14_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24919255 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_P24919255_14-07-2025_14_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24919282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24919283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24919284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24919285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24919286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24919287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24919288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24919289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24919290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24919291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24919292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24919293, 'pht': 3726}}" where mtr_portfolio_id = 24919255 and dashboard_run_id = 1985706 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`=24919255 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542109, 0.048777696012353884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24919255_14-07-2025_14_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24919282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24919283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24919284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24919285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24919286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24919287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24919288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24919289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24919290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24919291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24919292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24919293, '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 = 24919604 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': 3280082, 'mtr_portfolio_id': 24919604, 'created_at': datetime.datetime(2025, 7, 14, 15, 0, 56), 'result': '0.03712620887812416', 'result_long': None, 'result_double': None}] Qualite : 0.03712620887812416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24919604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24919604_14-07-2025_15_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24919604 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_P24919604_14-07-2025_15_00_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24919633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24919634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24919635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24919636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24919637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24919638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24919639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24919640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24919641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24919642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24919643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24919644, 'pht': 3726}}" where mtr_portfolio_id = 24919604 and dashboard_run_id = 1985706 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`=24919604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542110, 0.03712620887812416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24919604_14-07-2025_15_00_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24919633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24919634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24919635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24919636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24919637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24919638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24919639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24919640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24919641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24919642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24919643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24919644, '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 = 24920124 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': 3280153, 'mtr_portfolio_id': 24920124, 'created_at': datetime.datetime(2025, 7, 14, 15, 16, 57), 'result': '0.04185463846068905', 'result_long': None, 'result_double': None}] Qualite : 0.04185463846068905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24920124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24920124_14-07-2025_15_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24920124 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_P24920124_14-07-2025_15_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24920126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24920127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24920128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24920129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24920130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24920131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24920132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24920133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24920134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24920135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24920136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24920137, 'pht': 3726}}" where mtr_portfolio_id = 24920124 and dashboard_run_id = 1985706 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`=24920124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542111, 0.04185463846068905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24920124_14-07-2025_15_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24920126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24920127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24920128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24920129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24920130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24920131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24920132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24920133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24920134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24920135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24920136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24920137, '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 = 24920589 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': 3280210, 'mtr_portfolio_id': 24920589, 'created_at': datetime.datetime(2025, 7, 14, 15, 30, 29), 'result': '0.04164185311744629', 'result_long': None, 'result_double': None}] Qualite : 0.04164185311744629 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24920589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24920589_14-07-2025_15_30_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24920589 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_P24920589_14-07-2025_15_30_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24920619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24920620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24920621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24920622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24920623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24920624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24920625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24920626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24920627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24920628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24920629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24920630, 'pht': 3726}}" where mtr_portfolio_id = 24920589 and dashboard_run_id = 1985706 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`=24920589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542112, 0.04164185311744629, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24920589_14-07-2025_15_30_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24920619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24920620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24920621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24920622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24920623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24920624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24920625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24920626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24920627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24920628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24920629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24920630, '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 = 24921042 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': 3280271, 'mtr_portfolio_id': 24921042, 'created_at': datetime.datetime(2025, 7, 14, 15, 47), 'result': '0.025946922031431924', 'result_long': None, 'result_double': None}] Qualite : 0.025946922031431924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24921042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24921042_14-07-2025_15_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24921042 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_P24921042_14-07-2025_15_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24921068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24921069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24921070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24921071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24921072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24921073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24921074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24921075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24921076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24921077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24921078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24921079, 'pht': 3726}}" where mtr_portfolio_id = 24921042 and dashboard_run_id = 1985706 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`=24921042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542113, 0.025946922031431924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24921042_14-07-2025_15_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24921068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24921069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24921070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24921071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24921072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24921073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24921074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24921075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24921076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24921077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24921078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24921079, '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 = 24921465 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': 3280319, 'mtr_portfolio_id': 24921465, 'created_at': datetime.datetime(2025, 7, 14, 16, 0, 30), 'result': '0.04693369266294756', 'result_long': None, 'result_double': None}] Qualite : 0.04693369266294756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24921465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24921465_14-07-2025_16_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24921465 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_P24921465_14-07-2025_16_00_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24921469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24921470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24921471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24921472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24921473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24921474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24921475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24921476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24921477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24921478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24921479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24921480, 'pht': 3726}}" where mtr_portfolio_id = 24921465 and dashboard_run_id = 1985706 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`=24921465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542114, 0.04693369266294756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24921465_14-07-2025_16_00_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24921469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24921470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24921471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24921472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24921473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24921474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24921475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24921476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24921477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24921478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24921479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24921480, '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 = 24922007 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': 3280394, 'mtr_portfolio_id': 24922007, 'created_at': datetime.datetime(2025, 7, 14, 16, 15, 58), 'result': '0.022555100220904224', 'result_long': None, 'result_double': None}] Qualite : 0.022555100220904224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24922007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24922007_14-07-2025_16_15_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24922007 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_P24922007_14-07-2025_16_15_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24922011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24922012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24922013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24922014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24922015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24922016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24922017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24922018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24922019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24922020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24922021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24922022, 'pht': 3726}}" where mtr_portfolio_id = 24922007 and dashboard_run_id = 1985706 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`=24922007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542115, 0.022555100220904224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24922007_14-07-2025_16_15_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24922011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24922012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24922013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24922014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24922015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24922016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24922017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24922018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24922019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24922020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24922021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24922022, '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 = 24922378 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': 3280440, 'mtr_portfolio_id': 24922378, 'created_at': datetime.datetime(2025, 7, 14, 16, 32, 57), 'result': '0.017637519468063755', 'result_long': None, 'result_double': None}] Qualite : 0.017637519468063755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24922378 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24922378_14-07-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24922378 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_P24922378_14-07-2025_16_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24922383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24922384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24922385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24922386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24922387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24922388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24922389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24922390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24922391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24922392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24922393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24922394, 'pht': 3726}}" where mtr_portfolio_id = 24922378 and dashboard_run_id = 1985706 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`=24922378 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542116, 0.017637519468063755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24922378_14-07-2025_16_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24922383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24922384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24922385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24922386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24922387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24922388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24922389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24922390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24922391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24922392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24922393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24922394, '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 = 24922786 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': 3280500, 'mtr_portfolio_id': 24922786, 'created_at': datetime.datetime(2025, 7, 14, 16, 46, 58), 'result': '0.04588339330429624', 'result_long': None, 'result_double': None}] Qualite : 0.04588339330429624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24922786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24922786_14-07-2025_16_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24922786 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_P24922786_14-07-2025_16_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24922817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24922818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24922819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24922820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24922821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24922822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24922824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24922825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24922826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24922827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24922828, 'pht': 3726}}" where mtr_portfolio_id = 24922786 and dashboard_run_id = 1985706 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`=24922786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542117, 0.04588339330429624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24922786_14-07-2025_16_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24922817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24922818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24922819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24922820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24922821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24922822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24922824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24922825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24922826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24922827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24922828, '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 = 24923267 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': 3280559, 'mtr_portfolio_id': 24923267, 'created_at': datetime.datetime(2025, 7, 14, 17, 0, 31), 'result': '0.05482724914961032', 'result_long': None, 'result_double': None}] Qualite : 0.05482724914961032 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24923267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24923267_14-07-2025_17_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24923267 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_P24923267_14-07-2025_17_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24923294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24923295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24923296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24923297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24923298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24923299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24923300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24923301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24923302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24923303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24923304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24923305, 'pht': 3726}}" where mtr_portfolio_id = 24923267 and dashboard_run_id = 1985706 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`=24923267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542118, 0.05482724914961032, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24923267_14-07-2025_17_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24923294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24923295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24923296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24923297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24923298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24923299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24923300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24923301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24923302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24923303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24923304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24923305, '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 = 24923737 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': 3280617, 'mtr_portfolio_id': 24923737, 'created_at': datetime.datetime(2025, 7, 14, 17, 17), 'result': '0.04696206286248119', 'result_long': None, 'result_double': None}] Qualite : 0.04696206286248119 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24923737 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24923737_14-07-2025_17_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24923737 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_P24923737_14-07-2025_17_17_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24923738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24923739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24923740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24923741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24923742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24923743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24923744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24923745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24923746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24923747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24923748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24923749, 'pht': 3726}}" where mtr_portfolio_id = 24923737 and dashboard_run_id = 1985706 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`=24923737 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542119, 0.04696206286248119, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24923737_14-07-2025_17_17_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24923738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24923739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24923740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24923741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24923742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24923743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24923744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24923745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24923746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24923747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24923748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24923749, '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 = 24924108 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': 3280673, 'mtr_portfolio_id': 24924108, 'created_at': datetime.datetime(2025, 7, 14, 17, 30, 59), 'result': '0.017581090176585927', 'result_long': None, 'result_double': None}] Qualite : 0.017581090176585927 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24924108 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24924108_14-07-2025_17_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24924108 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_P24924108_14-07-2025_17_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24924138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24924139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24924140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24924141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24924142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24924143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24924144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24924145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24924146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24924147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24924148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24924149, 'pht': 3726}}" where mtr_portfolio_id = 24924108 and dashboard_run_id = 1985706 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`=24924108 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542120, 0.017581090176585927, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24924108_14-07-2025_17_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24924138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24924139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24924140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24924141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24924142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24924143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24924144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24924145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24924146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24924147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24924148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24924149, '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 = 24924539 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': 3280737, 'mtr_portfolio_id': 24924539, 'created_at': datetime.datetime(2025, 7, 14, 17, 46, 58), 'result': '0.015841450910499575', 'result_long': None, 'result_double': None}] Qualite : 0.015841450910499575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24924539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24924539_14-07-2025_17_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24924539 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_P24924539_14-07-2025_17_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24924545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24924546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24924547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24924548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24924549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24924550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24924551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24924552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24924553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24924554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24924555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24924556, 'pht': 3726}}" where mtr_portfolio_id = 24924539 and dashboard_run_id = 1985706 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`=24924539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542121, 0.015841450910499575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24924539_14-07-2025_17_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24924545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24924546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24924547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24924548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24924549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24924550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24924551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24924552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24924553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24924554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24924555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24924556, '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 = 24924757 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': 3280827, 'mtr_portfolio_id': 24924757, 'created_at': datetime.datetime(2025, 7, 14, 18, 0, 58), 'result': '0.057493429216459446', 'result_long': None, 'result_double': None}] Qualite : 0.057493429216459446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24924757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24924757_14-07-2025_18_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24924757 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_P24924757_14-07-2025_18_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24924783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24924784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24924785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24924786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24924787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24924788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24924789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24924790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24924791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24924792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24924793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24924794, 'pht': 3726}}" where mtr_portfolio_id = 24924757 and dashboard_run_id = 1985706 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`=24924757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542122, 0.057493429216459446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24924757_14-07-2025_18_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24924783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24924784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24924785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24924786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24924787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24924788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24924789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24924790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24924791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24924792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24924793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24924794, '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 = 24925155 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': 3280934, 'mtr_portfolio_id': 24925155, 'created_at': datetime.datetime(2025, 7, 14, 18, 16, 59), 'result': '0.040989062047147716', 'result_long': None, 'result_double': None}] Qualite : 0.040989062047147716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24925155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24925155_14-07-2025_18_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24925155 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_P24925155_14-07-2025_18_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24925161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24925162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24925163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24925164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24925165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24925166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24925167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24925168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24925169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24925170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24925171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24925172, 'pht': 3726}}" where mtr_portfolio_id = 24925155 and dashboard_run_id = 1985706 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`=24925155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542123, 0.040989062047147716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24925155_14-07-2025_18_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24925161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24925162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24925163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24925164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24925165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24925166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24925167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24925168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24925169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24925170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24925171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24925172, '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 = 24925655 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': 3281130, 'mtr_portfolio_id': 24925655, 'created_at': datetime.datetime(2025, 7, 14, 18, 30, 57), 'result': '0.03609287220427474', 'result_long': None, 'result_double': None}] Qualite : 0.03609287220427474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24925655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24925655_14-07-2025_18_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24925655 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_P24925655_14-07-2025_18_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24925695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24925696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24925697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24925698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24925699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24925700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24925701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24925702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24925703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24925704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24925705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24925706, 'pht': 3726}}" where mtr_portfolio_id = 24925655 and dashboard_run_id = 1985706 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`=24925655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542124, 0.03609287220427474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24925655_14-07-2025_18_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24925695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24925696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24925697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24925698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24925699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24925700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24925701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24925702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24925703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24925704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24925705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24925706, '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 = 24926194 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': 3281328, 'mtr_portfolio_id': 24926194, 'created_at': datetime.datetime(2025, 7, 14, 18, 46, 58), 'result': '0.04274717524549732', 'result_long': None, 'result_double': None}] Qualite : 0.04274717524549732 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24926194 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24926194_14-07-2025_18_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24926194 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_P24926194_14-07-2025_18_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24926200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24926201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24926202, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24926203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24926204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24926205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24926206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24926207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24926208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24926209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24926210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24926211, 'pht': 3726}}" where mtr_portfolio_id = 24926194 and dashboard_run_id = 1985706 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`=24926194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542125, 0.04274717524549732, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24926194_14-07-2025_18_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24926200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24926201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24926202, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24926203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24926204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24926205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24926206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24926207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24926208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24926209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24926210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24926211, '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 = 24926656 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': 3281500, 'mtr_portfolio_id': 24926656, 'created_at': datetime.datetime(2025, 7, 14, 19, 0, 58), 'result': '0.03643319970611764', 'result_long': None, 'result_double': None}] Qualite : 0.03643319970611764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24926656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24926656_14-07-2025_19_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24926656 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_P24926656_14-07-2025_19_00_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24926694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24926695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24926696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24926697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24926698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24926699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24926700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24926701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24926702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24926703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24926704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24926705, 'pht': 3726}}" where mtr_portfolio_id = 24926656 and dashboard_run_id = 1985706 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`=24926656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542126, 0.03643319970611764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24926656_14-07-2025_19_00_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24926694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24926695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24926696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24926697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24926698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24926699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24926700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24926701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24926702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24926703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24926704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24926705, '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 = 24927198 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': 3281694, 'mtr_portfolio_id': 24927198, 'created_at': datetime.datetime(2025, 7, 14, 19, 16, 59), 'result': '0.0516925664536906', 'result_long': None, 'result_double': None}] Qualite : 0.0516925664536906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24927198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24927198_14-07-2025_19_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24927198 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_P24927198_14-07-2025_19_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24927240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24927241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24927242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24927243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24927244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24927245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24927246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24927247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24927248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24927249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24927250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24927251, 'pht': 3726}}" where mtr_portfolio_id = 24927198 and dashboard_run_id = 1985706 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`=24927198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542127, 0.0516925664536906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24927198_14-07-2025_19_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24927240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24927241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24927242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24927243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24927244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24927245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24927246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24927247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24927248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24927249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24927250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24927251, '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 = 24927672 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': 3281868, 'mtr_portfolio_id': 24927672, 'created_at': datetime.datetime(2025, 7, 14, 19, 30, 58), 'result': '0.05876512517353236', 'result_long': None, 'result_double': None}] Qualite : 0.05876512517353236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24927672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24927672_14-07-2025_19_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24927672 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_P24927672_14-07-2025_19_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24927710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24927711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24927712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24927713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24927714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24927715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24927716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24927717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24927718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24927719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24927720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24927721, 'pht': 3726}}" where mtr_portfolio_id = 24927672 and dashboard_run_id = 1985706 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`=24927672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542128, 0.05876512517353236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24927672_14-07-2025_19_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24927710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24927711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24927712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24927713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24927714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24927715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24927716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24927717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24927718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24927719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24927720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24927721, '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 = 24928220 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': 3282081, 'mtr_portfolio_id': 24928220, 'created_at': datetime.datetime(2025, 7, 14, 19, 46, 59), 'result': '0.030273879232228147', 'result_long': None, 'result_double': None}] Qualite : 0.030273879232228147 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24928220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24928220_14-07-2025_19_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24928220 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_P24928220_14-07-2025_19_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24928226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24928227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24928228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24928229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24928230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24928231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24928232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24928233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24928234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24928235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24928236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24928237, 'pht': 3726}}" where mtr_portfolio_id = 24928220 and dashboard_run_id = 1985706 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`=24928220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542129, 0.030273879232228147, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24928220_14-07-2025_19_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24928226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24928227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24928228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24928229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24928230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24928231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24928232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24928233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24928234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24928235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24928236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24928237, '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 = 24928701 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': 3282270, 'mtr_portfolio_id': 24928701, 'created_at': datetime.datetime(2025, 7, 14, 20, 0, 30), 'result': '0.04747632770990679', 'result_long': None, 'result_double': None}] Qualite : 0.04747632770990679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24928701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24928701_14-07-2025_20_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24928701 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_P24928701_14-07-2025_20_00_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24928739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24928740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24928741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24928742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24928743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24928744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24928745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24928746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24928747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24928748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24928749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24928750, 'pht': 3726}}" where mtr_portfolio_id = 24928701 and dashboard_run_id = 1985706 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`=24928701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542130, 0.04747632770990679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24928701_14-07-2025_20_00_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24928739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24928740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24928741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24928742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24928743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24928744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24928745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24928746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24928747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24928748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24928749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24928750, '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 = 24929214 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': 3282466, 'mtr_portfolio_id': 24929214, 'created_at': datetime.datetime(2025, 7, 14, 20, 16, 58), 'result': '0.037191446899560866', 'result_long': None, 'result_double': None}] Qualite : 0.037191446899560866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24929214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24929214_14-07-2025_20_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24929214 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_P24929214_14-07-2025_20_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24929256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24929257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24929258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24929259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24929260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24929261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24929262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24929263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24929264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24929265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24929266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24929267, 'pht': 3726}}" where mtr_portfolio_id = 24929214 and dashboard_run_id = 1985706 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`=24929214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542131, 0.037191446899560866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24929214_14-07-2025_20_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24929256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24929257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24929258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24929259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24929260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24929261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24929262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24929263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24929264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24929265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24929266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24929267, '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 = 24929704 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': 3282620, 'mtr_portfolio_id': 24929704, 'created_at': datetime.datetime(2025, 7, 14, 20, 30, 58), 'result': '0.05147815396081803', 'result_long': None, 'result_double': None}] Qualite : 0.05147815396081803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24929704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24929704_14-07-2025_20_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24929704 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_P24929704_14-07-2025_20_30_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24929714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24929715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24929716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24929717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24929718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24929719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24929720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24929721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24929722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24929723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24929725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24929726, 'pht': 3726}}" where mtr_portfolio_id = 24929704 and dashboard_run_id = 1985706 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`=24929704 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542132, 0.05147815396081803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24929704_14-07-2025_20_30_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24929714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24929715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24929716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24929717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24929718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24929719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24929720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24929721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24929722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24929723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24929725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24929726, '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 = 24930118 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': 3282795, 'mtr_portfolio_id': 24930118, 'created_at': datetime.datetime(2025, 7, 14, 20, 46, 59), 'result': '0.06442700932842309', 'result_long': None, 'result_double': None}] Qualite : 0.06442700932842309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24930118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24930118_14-07-2025_20_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24930118 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_P24930118_14-07-2025_20_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24930124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24930125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24930126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24930127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24930128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24930129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24930130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24930131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24930132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24930133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24930134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24930135, 'pht': 3726}}" where mtr_portfolio_id = 24930118 and dashboard_run_id = 1985706 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`=24930118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542133, 0.06442700932842309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24930118_14-07-2025_20_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24930124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24930125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24930126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24930127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24930128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24930129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24930130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24930131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24930132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24930133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24930134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24930135, '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 = 24930598 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': 3282982, 'mtr_portfolio_id': 24930598, 'created_at': datetime.datetime(2025, 7, 14, 21, 0, 57), 'result': '0.0524711418110205', 'result_long': None, 'result_double': None}] Qualite : 0.0524711418110205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24930598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24930598_14-07-2025_21_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24930598 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_P24930598_14-07-2025_21_00_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24930624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24930626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24930627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24930628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24930629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24930630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24930631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24930632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24930633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24930634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24930635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24930636, 'pht': 3726}}" where mtr_portfolio_id = 24930598 and dashboard_run_id = 1985706 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`=24930598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542134, 0.0524711418110205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24930598_14-07-2025_21_00_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24930624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24930626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24930627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24930628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24930629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24930630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24930631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24930632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24930633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24930634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24930635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24930636, '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 = 24931008 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': 3283106, 'mtr_portfolio_id': 24931008, 'created_at': datetime.datetime(2025, 7, 14, 21, 16, 58), 'result': '0.06206602038680874', 'result_long': None, 'result_double': None}] Qualite : 0.06206602038680874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24931008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24931008_14-07-2025_21_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24931008 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_P24931008_14-07-2025_21_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24931009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24931010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24931011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24931012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24931013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24931014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24931015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24931016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24931017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24931018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24931019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24931020, 'pht': 3726}}" where mtr_portfolio_id = 24931008 and dashboard_run_id = 1985706 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`=24931008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542135, 0.06206602038680874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24931008_14-07-2025_21_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24931009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24931010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24931011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24931012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24931013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24931014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24931015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24931016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24931017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24931018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24931019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24931020, '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 = 24931445 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': 3283265, 'mtr_portfolio_id': 24931445, 'created_at': datetime.datetime(2025, 7, 14, 21, 33, 27), 'result': '0.05499084039020777', 'result_long': None, 'result_double': None}] Qualite : 0.05499084039020777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24931445 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24931445_14-07-2025_21_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24931445 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_P24931445_14-07-2025_21_33_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24931482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24931483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24931484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24931486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24931487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24931488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24931489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24931490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24931491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24931492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24931493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24931494, 'pht': 3726}}" where mtr_portfolio_id = 24931445 and dashboard_run_id = 1985706 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`=24931445 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542136, 0.05499084039020777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24931445_14-07-2025_21_33_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24931482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24931483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24931484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24931486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24931487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24931488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24931489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24931490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24931491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24931492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24931493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24931494, '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 = 24931856 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': 3283401, 'mtr_portfolio_id': 24931856, 'created_at': datetime.datetime(2025, 7, 14, 21, 46, 59), 'result': '0.0723108548729962', 'result_long': None, 'result_double': None}] Qualite : 0.0723108548729962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24931856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24931856_14-07-2025_21_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24931856 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_P24931856_14-07-2025_21_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24931862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24931863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24931864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24931865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24931866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24931867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24931868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24931869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24931870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24931871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24931872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24931873, 'pht': 3726}}" where mtr_portfolio_id = 24931856 and dashboard_run_id = 1985706 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`=24931856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542137, 0.0723108548729962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24931856_14-07-2025_21_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24931862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24931863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24931864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24931865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24931866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24931867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24931868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24931869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24931870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24931871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24931872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24931873, '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 = 24932241 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': 3283554, 'mtr_portfolio_id': 24932241, 'created_at': datetime.datetime(2025, 7, 14, 22, 0, 57), 'result': '0.05073404180799062', 'result_long': None, 'result_double': None}] Qualite : 0.05073404180799062 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24932241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24932241_14-07-2025_22_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24932241 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_P24932241_14-07-2025_22_00_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24932269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24932270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24932271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24932272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24932273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24932274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24932275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24932276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24932277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24932278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24932279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24932280, 'pht': 3726}}" where mtr_portfolio_id = 24932241 and dashboard_run_id = 1985706 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`=24932241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542138, 0.05073404180799062, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24932241_14-07-2025_22_00_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24932269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24932270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24932271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24932272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24932273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24932274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24932275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24932276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24932277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24932278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24932279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24932280, '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 = 24932805 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': 3283734, 'mtr_portfolio_id': 24932805, 'created_at': datetime.datetime(2025, 7, 14, 22, 16, 59), 'result': '0.053127029974913566', 'result_long': None, 'result_double': None}] Qualite : 0.053127029974913566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24932805 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24932805_14-07-2025_22_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24932805 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_P24932805_14-07-2025_22_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24932829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24932830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24932831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24932832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24932833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24932834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24932835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24932836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24932837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24932838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24932839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24932840, 'pht': 3726}}" where mtr_portfolio_id = 24932805 and dashboard_run_id = 1985706 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`=24932805 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542139, 0.053127029974913566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24932805_14-07-2025_22_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24932829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24932830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24932831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24932832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24932833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24932834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24932835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24932836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24932837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24932838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24932839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24932840, '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 = 24933440 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': 3283877, 'mtr_portfolio_id': 24933440, 'created_at': datetime.datetime(2025, 7, 14, 22, 30, 57), 'result': '0.042581614901515685', 'result_long': None, 'result_double': None}] Qualite : 0.042581614901515685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24933440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24933440_14-07-2025_22_30_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24933440 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_P24933440_14-07-2025_22_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24933476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24933477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24933478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24933479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24933480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24933481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24933482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24933484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24933485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24933486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24933487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24933488, 'pht': 3726}}" where mtr_portfolio_id = 24933440 and dashboard_run_id = 1985706 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`=24933440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542140, 0.042581614901515685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24933440_14-07-2025_22_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24933476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24933477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24933478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24933479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24933480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24933481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24933482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24933484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24933485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24933486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24933487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24933488, '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 = 24934144 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': 3284038, 'mtr_portfolio_id': 24934144, 'created_at': datetime.datetime(2025, 7, 14, 22, 46, 58), 'result': '0.04625154404415214', 'result_long': None, 'result_double': None}] Qualite : 0.04625154404415214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24934144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24934144_14-07-2025_22_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24934144 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_P24934144_14-07-2025_22_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24934157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24934158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24934159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24934160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24934161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24934162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24934163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24934164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24934165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24934166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24934167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24934168, 'pht': 3726}}" where mtr_portfolio_id = 24934144 and dashboard_run_id = 1985706 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`=24934144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542141, 0.04625154404415214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24934144_14-07-2025_22_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24934157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24934158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24934159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24934160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24934161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24934162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24934163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24934164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24934165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24934166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24934167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24934168, '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 = 24934771 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': 3284154, 'mtr_portfolio_id': 24934771, 'created_at': datetime.datetime(2025, 7, 14, 23, 0, 57), 'result': '0.040652565591157354', 'result_long': None, 'result_double': None}] Qualite : 0.040652565591157354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24934771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24934771_14-07-2025_23_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24934771 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_P24934771_14-07-2025_23_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24934779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24934780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24934781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24934782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24934783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24934784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24934785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24934786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24934787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24934788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24934789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24934790, 'pht': 3726}}" where mtr_portfolio_id = 24934771 and dashboard_run_id = 1985706 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`=24934771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542142, 0.040652565591157354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24934771_14-07-2025_23_00_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24934779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24934780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24934781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24934782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24934783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24934784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24934785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24934786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24934787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24934788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24934789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24934790, '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 = 24935230 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': 3284245, 'mtr_portfolio_id': 24935230, 'created_at': datetime.datetime(2025, 7, 14, 23, 16, 57), 'result': '0.04708233656026738', 'result_long': None, 'result_double': None}] Qualite : 0.04708233656026738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24935230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24935230_14-07-2025_23_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24935230 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_P24935230_14-07-2025_23_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24935237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24935238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24935239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24935240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24935241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24935242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24935243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24935244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24935245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24935246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24935247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24935248, 'pht': 3726}}" where mtr_portfolio_id = 24935230 and dashboard_run_id = 1985706 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`=24935230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542143, 0.04708233656026738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24935230_14-07-2025_23_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24935237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24935238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24935239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24935240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24935241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24935242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24935243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24935244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24935245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24935246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24935247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24935248, '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 = 24935755 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': 3284317, 'mtr_portfolio_id': 24935755, 'created_at': datetime.datetime(2025, 7, 14, 23, 33, 1), 'result': '0.04960988918366559', 'result_long': None, 'result_double': None}] Qualite : 0.04960988918366559 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24935755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24935755_14-07-2025_23_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24935755 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_P24935755_14-07-2025_23_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24935767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24935768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24935769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24935770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24935771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24935772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24935773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24935774, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24935775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24935776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24935777, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24935778, 'pht': 3726}}" where mtr_portfolio_id = 24935755 and dashboard_run_id = 1985706 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`=24935755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542144, 0.04960988918366559, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24935755_14-07-2025_23_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24935767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24935768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24935769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24935770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24935771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24935772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24935773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24935774, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24935775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24935776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24935777, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24935778, '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 = 24936318 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': 3284452, 'mtr_portfolio_id': 24936318, 'created_at': datetime.datetime(2025, 7, 14, 23, 46, 58), 'result': '0.045891610966834744', 'result_long': None, 'result_double': None}] Qualite : 0.045891610966834744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24936318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24936318_14-07-2025_23_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24936318 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_P24936318_14-07-2025_23_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24936390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24936391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24936392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24936393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24936394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24936395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24936396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24936397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24936398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24936399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24936400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24936401, 'pht': 3726}}" where mtr_portfolio_id = 24936318 and dashboard_run_id = 1985706 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`=24936318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542145, 0.045891610966834744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24936318_14-07-2025_23_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24936390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24936391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24936392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24936393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24936394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24936395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24936396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24936397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24936398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24936399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24936400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24936401, '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 = 24936920 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': 3284567, 'mtr_portfolio_id': 24936920, 'created_at': datetime.datetime(2025, 7, 15, 0, 0, 58), 'result': '0.0426877675801179', 'result_long': None, 'result_double': None}] Qualite : 0.0426877675801179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24936920 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24936920_15-07-2025_00_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24936920 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_P24936920_15-07-2025_00_00_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24936993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24936994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24936995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24936996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24936997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24936998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24936999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24937000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24937002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24937003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24937004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24937005, 'pht': 3726}}" where mtr_portfolio_id = 24936920 and dashboard_run_id = 1985706 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`=24936920 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12542146, 0.0426877675801179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24936920_15-07-2025_00_00_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24936993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24936994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24936995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24936996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24936997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24936998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24936999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24937000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24937002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24937003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24937004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24937005, '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 (24901827,24902221,24902636,24903073,24903581,24904018,24904386,24904901,24905304,24905756,24906253,24906760,24907240,24907680,24908086,24908514,24909075,24909513,24910025,24910502,24911035,24911443,24911823,24912308,24912749,24913241,24913718,24914204,24914645,24915098,24915507,24915988,24916428,24916885,24917391,24917852,24918291,24918749,24919255,24919604,24920124,24920589,24921042,24921465,24922007,24922378,24922786,24923267,24923737,24924108,24924539,24924757,24925155,24925655,24926194,24926656,24927198,24927672,24928220,24928701,24929214,24929704,24930118,24930598,24931008,24931445,24931856,24932241,24932805,24933440,24934144,24934771,24935230,24935755,24936318,24936920) result : ((1372077129,), (1372077153,), (1372077184,), (1372077209,), (1372077234,), (1372077503,), (1372077505,), (1372077506,), (1372077508,), (1372077509,), (1372077511,), (1372077667,), (1372077680,), (1372077695,), (1372077711,), (1372077717,), (1372077718,), (1372077764,), (1372077766,), (1372077767,), (1372077769,), (1372077770,), (1372077771,), (1372077784,), (1372077788,), (1372077790,), (1372077791,), (1372077792,), (1372077793,), (1372077807,), (1372077810,), (1372077812,), (1372077814,), (1372077816,), (1372077818,), (1372077824,), (1372077825,), (1372077826,), (1372077827,), (1372077828,), (1372077829,), (1372077839,), (1372077840,), (1372077841,), (1372077842,), (1372077843,), (1372077846,), (1372077857,), (1372077858,), (1372077860,), (1372077861,), (1372077862,), (1372077864,), (1372077871,), (1372077872,), (1372077874,), (1372077875,), (1372077877,), (1372077879,), (1372077896,), (1372077897,), (1372077898,), (1372077899,), (1372077900,), (1372077901,), (1372077904,), (1372077907,), (1372077909,), (1372077911,), (1372077913,), (1372077915,), (1372077919,), (1372077921,), (1372077924,), (1372077925,), (1372077928,), (1372077931,), (1372077944,), (1372077946,), (1372077948,), (1372077950,), (1372077951,), (1372077953,), (1372077963,), (1372077967,), (1372077968,), (1372077970,), (1372077971,), (1372077972,), (1372077978,), (1372077980,), (1372077984,), (1372077985,), (1372077987,), (1372077989,), (1372077994,), (1372077995,), (1372077996,), (1372077997,), (1372077998,), (1372077999,), (1372078009,), (1372078012,), (1372078013,), (1372078015,), (1372078016,), (1372078018,), (1372078024,), (1372078025,), (1372078026,), (1372078027,), (1372078028,), (1372078029,), (1372078040,), (1372078043,), (1372078044,), (1372078045,), (1372078046,), (1372078048,), (1372078066,), (1372078067,), (1372078068,), (1372078069,), (1372078070,), (1372078071,), (1372078081,), (1372078083,), (1372078085,), (1372078087,), (1372078088,), (1372078089,), (1372078108,), (1372078161,), (1372078164,), (1372078167,), (1372078169,), (1372078170,), (1372078172,), (1372078175,), (1372078181,), (1372078183,), (1372078185,), (1372078187,), (1372078191,), (1372078193,), (1372078206,), (1372078208,), (1372078210,), (1372078211,), (1372078212,), (1372078213,), (1372078220,), (1372078223,), (1372078225,), (1372078227,), (1372078228,), (1372078229,), (1372078259,), (1372078261,), (1372078262,), (1372078263,), (1372078269,), (1372078271,), (1372078283,), (1372078284,), (1372078285,), (1372078286,), (1372078287,), (1372078288,), (1372078299,), (1372078300,), (1372078301,), (1372078303,), (1372078304,), (1372078305,), (1372078322,), (1372078323,), (1372078325,), (1372078326,), (1372078328,), (1372078329,), (1372078341,), (1372078342,), (1372078343,), (1372078344,), (1372078345,), (1372078347,), (1372078355,), (1372078356,), (1372078358,), (1372078359,), (1372078361,), (1372078363,), (1372078374,), (1372078375,), (1372078376,), (1372078377,), (1372078378,), (1372078379,), (1372078390,), (1372078391,), (1372078392,), (1372078393,), (1372078394,), (1372078395,), (1372078404,), (1372078406,), (1372078407,), (1372078408,), (1372078409,), (1372078410,), (1372078414,), (1372078415,), (1372078418,), (1372078419,), (1372078421,), (1372078423,), (1372078441,), (1372078442,), (1372078443,), (1372078444,), (1372078445,), (1372078447,), (1372078458,), (1372078460,), (1372078461,), (1372078463,), (1372078464,), (1372078465,), (1372078477,), (1372078479,), (1372078481,), (1372078483,), (1372078486,), (1372078488,), (1372078511,), (1372078513,), (1372078514,), (1372078516,), (1372078517,), (1372078518,), (1372078529,), (1372078532,), (1372078535,), (1372078537,), (1372078538,), (1372078539,), (1372078548,), (1372078551,), (1372078554,), (1372078556,), (1372078558,), (1372078559,), (1372078566,), (1372078570,), (1372078572,), (1372078574,), (1372078575,), (1372078576,), (1372078583,), (1372078585,), (1372078586,), (1372078589,), (1372078590,), (1372078591,), (1372078599,), (1372078603,), (1372078605,), (1372078606,), (1372078607,), (1372078608,), (1372078615,), (1372078617,), (1372078618,), (1372078620,), (1372078621,), (1372078623,), (1372078629,), (1372078630,), (1372078631,), (1372078632,), (1372078633,), (1372078634,), (1372078644,), (1372078646,), (1372078648,), (1372078650,), (1372078652,), (1372078654,), (1372078664,), (1372078666,), (1372078667,), (1372078668,), (1372078669,), (1372078671,), (1372078699,), (1372078700,), (1372078701,), (1372078702,), (1372078703,), (1372078704,), (1372078715,), (1372078716,), (1372078718,), (1372078719,), (1372078720,), (1372078721,), (1372078733,), (1372078734,), (1372078735,), (1372078736,), (1372078737,), (1372078738,), (1372078750,), (1372078753,), (1372078757,), (1372078759,), (1372078760,), (1372078761,), (1372078771,), (1372078774,), (1372078776,), (1372078779,), (1372078782,), (1372078784,), (1372078794,), (1372078796,), (1372078797,), (1372078799,), (1372078800,), (1372078801,), (1372078934,), (1372078980,), (1372079025,), (1372079068,), (1372079113,), (1372079158,), (1372079511,), (1372079540,), (1372079566,), (1372079593,), (1372079638,), (1372079686,), (1372080059,), (1372080062,), (1372080065,), (1372080067,), (1372080069,), (1372080071,), (1372080122,), (1372080124,), (1372080126,), (1372080128,), (1372080130,), (1372080131,), (1372080139,), (1372080141,), (1372080142,), (1372080144,), (1372080145,), (1372080146,), (1372080157,), (1372080160,), (1372080162,), (1372080164,), (1372080165,), (1372080166,), (1372080172,), (1372080174,), (1372080176,), (1372080177,), (1372080179,), (1372080180,), (1372080188,), (1372080189,), (1372080191,), (1372080193,), (1372080194,), (1372080195,), (1372080208,), (1372080209,), (1372080211,), (1372080213,), (1372080214,), (1372080215,), (1372080218,), (1372080219,), (1372080221,), (1372080222,), (1372080224,), (1372080225,), (1372080235,), (1372080236,), (1372080237,), (1372080238,), (1372080239,), (1372080241,), (1372080255,), (1372080257,), (1372080259,), (1372080260,), (1372080262,), (1372080263,), (1372080271,), (1372080273,), (1372080275,), (1372080276,), (1372080277,), (1372080278,), (1372080299,), (1372080301,), (1372080302,), (1372080304,), (1372080305,), (1372080306,), (1372080317,), (1372080320,), (1372080322,), (1372080324,), (1372080325,), (1372080326,), (1372080337,), (1372080339,), (1372080340,), (1372080342,), (1372080343,), (1372080344,), (1372080353,), (1372080354,), (1372080356,), (1372080358,), (1372080359,), (1372080360,), (1372080372,), (1372080375,), (1372080379,), (1372080380,), (1372080381,), (1372080382,), (1372080392,), (1372080393,), (1372080397,), (1372080399,), (1372080401,), (1372080403,), (1372080411,), (1372080412,), (1372080413,), (1372080414,), (1372080415,), (1372080417,), (1372080430,), (1372080431,), (1372080432,), (1372080433,), (1372080434,), (1372080435,), (1372080447,), (1372080448,), (1372080450,), (1372080451,), (1372080453,), (1372080455,), (1372080473,), (1372080474,), (1372080475,), (1372080476,), (1372080477,), (1372080479,), (1372080507,), (1372080509,), (1372080511,), (1372080512,), (1372080514,), (1372080515,), (1372080533,), (1372080534,), (1372080537,), (1372080538,), (1372080540,), (1372080542,), (1372080559,), (1372080560,), (1372080561,), (1372080562,), (1372080563,), (1372080565,), (1372080583,), (1372080585,), (1372080587,), (1372080588,), (1372080589,), (1372080591,), (1372080599,), (1372080601,), (1372080604,), (1372080605,), (1372080608,), (1372080611,), (1372080626,), (1372080628,), (1372080630,), (1372080632,), (1372080633,), (1372080636,), (1372080644,), (1372080645,), (1372080646,), (1372080647,), (1372080648,), (1372080649,), (1372080664,), (1372080665,), (1372080666,), (1372080668,), (1372080669,), (1372080670,), (1372080688,), (1372080691,), (1372080692,), (1372080693,), (1372080694,), (1372080695,), (1372080710,), (1372080711,), (1372080712,), (1372080714,), (1372080715,), (1372080717,), (1372080750,), (1372080753,), (1372080754,), (1372080757,), (1372080759,), (1372080761,), (1372080773,), (1372080775,), (1372080776,), (1372080778,), (1372080780,), (1372080782,), (1372080800,), (1372080802,), (1372080803,), (1372080805,), (1372080806,), (1372080807,), (1372080819,), (1372080821,), (1372080823,), (1372080825,), (1372080827,), (1372080829,), (1372080843,), (1372080845,), (1372080847,), (1372080849,), (1372080851,), (1372080853,), (1372080873,), (1372080875,), (1372080876,), (1372080878,), (1372080880,), (1372080883,), (1372080898,), (1372080899,), (1372080901,), (1372080903,), (1372080905,), (1372080911,), (1372080940,), (1372080942,), (1372080944,), (1372080969,), (1372080973,), (1372080978,), (1372080999,), (1372081000,), (1372081002,), (1372081003,), (1372081005,), (1372081007,), (1372081032,), (1372081034,), (1372081037,), (1372081039,), (1372081041,), (1372081042,), (1372081066,), (1372081068,), (1372081072,), (1372081073,), (1372081077,), (1372081081,), (1372081122,), (1372081125,), (1372081127,), (1372081130,), (1372081137,), (1372081141,), (1372081161,), (1372081163,), (1372081164,), (1372081165,), (1372081166,), (1372081168,), (1372081194,), (1372081196,), (1372081198,), (1372081200,), (1372081203,), (1372081206,), (1372081228,), (1372081231,), (1372081234,), (1372081236,), (1372081239,), (1372081242,), (1372081259,), (1372081261,), (1372081263,), (1372081265,), (1372081267,), (1372081269,), (1372081282,), (1372081283,), (1372081284,), (1372081285,), (1372081287,), (1372081289,), (1372081307,), (1372081309,), (1372081310,), (1372081311,), (1372081313,), (1372081314,), (1372081335,), (1372081360,), (1372081362,), (1372081365,), (1372081367,), (1372081369,), (1372081373,), (1372081395,), (1372081397,), (1372081398,), (1372081400,), (1372081403,), (1372081407,), (1372081417,), (1372081420,), (1372081422,), (1372081423,), (1372081426,), (1372081429,), (1372081447,), (1372081448,), (1372081451,), (1372081452,), (1372081455,), (1372081458,), (1372081474,), (1372081476,), (1372081477,), (1372081479,), (1372081480,), (1372081482,), (1372081500,), (1372081502,), (1372081503,), (1372081505,), (1372081506,), (1372081508,), (1372081529,), (1372081530,), (1372081532,), (1372081533,), (1372081536,), (1372081538,), (1372081565,), (1372081589,), (1372081612,), (1372081635,), (1372081657,), (1372081685,), (1372081940,), (1372081943,), (1372081945,), (1372081957,), (1372081983,), (1372082003,), (1372082536,), (1372082561,), (1372082578,), (1372082582,), (1372082585,), (1372082587,), (1372082685,), (1372082699,), (1372082713,), (1372082740,), (1372082759,), (1372082762,), (1372082966,), (1372082992,), (1372083018,), (1372083046,), (1372083072,), (1372083097,), (1372083312,), (1372083333,), (1372083350,), (1372083373,), (1372083397,), (1372083420,), (1372083596,), (1372083597,), (1372083599,), (1372083602,), (1372083604,), (1372083618,), (1372083807,), (1372083824,), (1372083836,), (1372083840,), (1372083842,), (1372083847,), (1372083862,), (1372083864,), (1372083865,), (1372083867,), (1372083869,), (1372083871,), (1372083884,), (1372083885,), (1372083886,), (1372083887,), (1372083889,), (1372083891,), (1372083910,), (1372083911,), (1372083912,), (1372083913,), (1372083915,), (1372083920,), (1372083938,), (1372083939,), (1372083940,), (1372083941,), (1372083943,), (1372083945,), (1372083966,), (1372083968,), (1372083970,), (1372083971,), (1372083973,), (1372083975,), (1372084000,), (1372084002,), (1372084003,), (1372084005,), (1372084006,), (1372084009,), (1372084035,), (1372084038,), (1372084040,), (1372084042,), (1372084045,), (1372084047,), (1372084061,), (1372084063,), (1372084065,), (1372084067,), (1372084069,), (1372084071,), (1372084089,), (1372084090,), (1372084092,), (1372084094,), (1372084096,), (1372084100,), (1372084113,), (1372084115,), (1372084116,), (1372084118,), (1372084120,), (1372084122,), (1372084141,), (1372084145,), (1372084146,), (1372084149,), (1372084152,), (1372084153,), (1372084168,), (1372084169,), (1372084170,), (1372084171,), (1372084173,), (1372084175,), (1372084192,), (1372084199,), (1372084203,), (1372084206,), (1372084210,), (1372084213,), (1372084217,), (1372084248,), (1372084249,), (1372084250,), (1372084251,), (1372084254,), (1372084258,), (1372084302,), (1372084303,), (1372084304,), (1372084305,), (1372084307,), (1372084309,), (1372084322,), (1372084323,), (1372084324,), (1372084327,), (1372084334,), (1372084342,), (1372084421,), (1372084422,), (1372084423,), (1372084424,), (1372084429,), (1372084462,), (1372084497,), (1372084498,), (1372084499,), (1372084500,), (1372084501,), (1372084503,), (1372084516,), (1372084517,), (1372084518,), (1372084519,), (1372084521,), (1372084523,), (1372084540,), (1372084541,), (1372084543,), (1372084545,), (1372084547,), (1372084550,), (1372084558,), (1372084561,), (1372084564,), (1372084565,), (1372084567,), (1372084570,), (1372084609,), (1372084610,), (1372084612,), (1372084613,), (1372084616,), (1372084648,), (1372084716,), (1372084727,), (1372084730,), (1372084731,), (1372084733,), (1372084735,), (1372084807,), (1372084812,), (1372084814,), (1372084815,), (1372084817,), (1372084819,), (1372084847,), (1372084848,), (1372084850,), (1372084852,), (1372084854,), (1372084856,), (1372084870,), (1372084872,), (1372084873,), (1372084875,), (1372084877,), (1372084879,), (1372084893,), (1372084895,), (1372084897,), (1372084899,), (1372084902,), (1372084905,), (1372084949,), (1372084951,), (1372084953,), (1372084965,), (1372084982,), (1372084985,), (1372085054,), (1372085057,), (1372085058,), (1372085061,), (1372085064,), (1372085067,), (1372085150,), (1372085152,), (1372085153,), (1372085155,), (1372085157,), (1372085159,), (1372085167,), (1372085168,), (1372085169,), (1372085170,), (1372085172,), (1372085174,), (1372085225,), (1372085228,), (1372085230,), (1372085232,), (1372085234,), (1372085262,), (1372085344,), (1372085438,), (1372085440,), (1372085442,), (1372085445,), (1372085447,), (1372085450,), (1372085508,), (1372085510,), (1372085511,), (1372085513,), (1372085515,), (1372085518,), (1372085539,), (1372085541,), (1372085545,), (1372085547,), (1372085549,), (1372085551,), (1372085567,), (1372085568,), (1372085570,), (1372085576,), (1372085578,), (1372085599,), (1372085631,), (1372085653,), (1372085663,), (1372085664,), (1372085686,), (1372085691,), (1372085748,), (1372085751,), (1372085754,), (1372085756,), (1372085758,), (1372085762,), (1372085863,), (1372085865,), (1372085868,), (1372085869,), (1372085871,), (1372085873,), (1372085887,), (1372085888,), (1372085889,), (1372085890,), (1372085891,), (1372085894,), (1372085918,), (1372085920,), (1372085921,), (1372085922,), (1372085924,), (1372085926,), (1372085943,), (1372085944,), (1372085945,), (1372085947,), (1372085948,), (1372085950,), (1372085967,), (1372085968,), (1372085969,), (1372085970,), (1372085971,), (1372085973,), (1372086030,), (1372086031,), (1372086033,), (1372086035,), (1372086036,), (1372086038,), (1372086053,), (1372086054,), (1372086056,), (1372086058,), (1372086059,), (1372086063,), (1372086078,), (1372086079,), (1372086080,), (1372086081,), (1372086082,), (1372086083,), (1372086113,), (1372086115,), (1372086117,), (1372086118,), (1372086120,), (1372086122,), (1372086151,), (1372086237,), (1372086239,), (1372086275,), (1372086277,), (1372086278,), (1372086280,), (1372086419,), (1372086452,), (1372086476,), (1372086500,), (1372086525,), (1372086550,), (1372086679,), (1372086681,), (1372086684,), (1372086707,), (1372086739,), (1372086765,), (1372087212,), (1372087429,), (1372087452,), (1372087478,), (1372087506,), (1372087802,), (1372087804,), (1372087807,), (1372087809,), (1372087812,), (1372087814,), (1372087990,), (1372088000,), (1372088002,), (1372088004,), (1372088006,), (1372088008,), (1372088025,), (1372088026,), (1372088028,), (1372088031,), (1372088032,), (1372088034,), (1372088055,), (1372088058,), (1372088061,), (1372088062,), (1372088064,), (1372088066,), (1372088093,), (1372088096,), (1372088099,), (1372088100,), (1372088102,), (1372088104,), (1372088114,), (1372088115,), (1372088117,), (1372088118,), (1372088119,), (1372088121,), (1372088139,), (1372088141,), (1372088143,), (1372088145,), (1372088147,), (1372088150,), (1372088171,), (1372088195,), (1372088196,), (1372088197,), (1372088198,), (1372088200,), (1372088204,), (1372088228,), (1372088229,), (1372088230,), (1372088231,), (1372088233,), (1372088234,), (1372088260,), (1372088264,), (1372088266,), (1372088268,), (1372088270,), (1372088273,), (1372088292,), (1372088293,), (1372088294,), (1372088296,), (1372088297,), (1372088299,), (1372088317,), (1372088318,), (1372088319,), (1372088320,), (1372088322,), (1372088325,), (1372088339,), (1372088341,), (1372088342,), (1372088343,), (1372088345,), (1372088349,), (1372088366,), (1372088367,), (1372088369,), (1372088370,), (1372088372,), (1372088374,), (1372088385,), (1372088387,), (1372088390,), (1372088392,), (1372088394,), (1372088397,), (1372088419,), (1372088421,), (1372088422,), (1372088423,), (1372088424,), (1372088427,), (1372088447,), (1372088448,), (1372088450,), (1372088453,), (1372088455,), (1372088458,), (1372088478,), (1372088480,), (1372088481,), (1372088483,), (1372088485,), (1372088488,), (1372088508,), (1372088510,), (1372088513,), (1372088515,), (1372088518,), (1372088519,), (1372088532,), (1372088534,), (1372088535,), (1372088537,), (1372088540,), (1372088543,), (1372088560,), (1372088562,), (1372088563,), (1372088565,), (1372088566,), (1372088568,), (1372088587,), (1372088589,), (1372088591,), (1372088593,), (1372088594,), (1372088596,), (1372088612,), (1372088614,), (1372088617,), (1372088620,), (1372088623,), (1372088626,), (1372088636,), (1372088638,), (1372088641,), (1372088644,), (1372088645,), (1372088648,), (1372088661,), (1372088663,), (1372088665,), (1372088666,), (1372088669,), (1372088671,), (1372088686,), (1372088687,), (1372088688,), (1372088690,), (1372088691,), (1372088693,), (1372088712,), (1372088714,), (1372088715,), (1372088716,), (1372088717,), (1372088719,), (1372088738,), (1372088740,), (1372088742,), (1372088745,), (1372088748,), (1372088751,), (1372088778,), (1372088779,), (1372088782,), (1372088784,), (1372088785,), (1372088787,), (1372088801,), (1372088804,), (1372088808,), (1372088809,), (1372088812,), (1372088814,), (1372088830,), (1372088832,), (1372088833,), (1372088835,), (1372088836,), (1372088838,), (1372088854,), (1372088855,), (1372088856,), (1372088857,), (1372088858,), (1372088861,), (1372088879,), (1372088880,), (1372088881,), (1372088883,), (1372088886,), (1372088887,), (1372088906,), (1372088908,), (1372088910,), (1372088911,), (1372088912,), (1372088916,), (1372088961,), (1372088964,), (1372088967,), (1372088969,), (1372088972,), (1372088974,), (1372088992,), (1372088994,), (1372088996,), (1372088997,), (1372088998,), (1372089000,), (1372089017,), (1372089018,), (1372089019,), (1372089020,), (1372089022,), (1372089024,), (1372089040,), (1372089041,), (1372089042,), (1372089043,), (1372089044,), (1372089047,), (1372089085,), (1372089086,), (1372089088,), (1372089089,), (1372089091,), (1372089093,), (1372089109,), (1372089110,), (1372089112,), (1372089114,), (1372089116,), (1372089119,), (1372089135,), (1372089137,), (1372089138,), (1372089139,), (1372089141,), (1372089144,), (1372089161,), (1372089163,), (1372089165,), (1372089166,), (1372089168,), (1372089170,), (1372089186,), (1372089187,), (1372089188,), (1372089190,), (1372089191,), (1372089194,), (1372089222,), (1372089223,), (1372089224,), (1372089225,), (1372089226,), (1372089228,), (1372089246,), (1372089247,), (1372089248,), (1372089249,), (1372089250,), (1372089252,), (1372089278,), (1372089280,), (1372089282,), (1372089285,), (1372089287,), (1372089289,), (1372089304,), (1372089306,), (1372089308,), (1372089312,), (1372089313,), (1372089316,), (1372089337,), (1372089339,), (1372089341,), (1372089343,), (1372089347,), (1372089351,), (1372089371,), (1372089373,), (1372089376,), (1372089378,), (1372089380,), (1372089383,), (1372089408,), (1372089416,), (1372089430,), (1372089432,), (1372089434,), (1372089437,), (1372089454,), (1372089456,), (1372089457,), (1372089459,), (1372089460,), (1372089463,), (1372089479,), (1372089482,), (1372089485,), (1372089486,), (1372089488,), (1372089490,), (1372089503,), (1372089505,), (1372089507,), (1372089509,), (1372089511,), (1372089514,), (1372089532,), (1372089534,), (1372089535,), (1372089538,), (1372089540,), (1372089543,), (1372089563,), (1372089566,), (1372089568,), (1372089570,), (1372089572,), (1372089574,), (1372089587,), (1372089589,), (1372089596,), (1372089613,), (1372089633,), (1372089660,), (1372090689,), (1372091130,), (1372091155,), (1372091204,), (1372091227,), (1372091238,), (1372091318,), (1372091320,), (1372091322,), (1372091323,), (1372091325,), (1372091329,), (1372091339,), (1372091342,), (1372091345,), (1372091347,), (1372091349,), (1372091351,), (1372091367,), (1372091369,), (1372091371,), (1372091373,), (1372091376,), (1372091379,), (1372091393,), (1372091394,), (1372091396,), (1372091398,), (1372091399,), (1372091401,), (1372091428,), (1372091432,), (1372091434,), (1372091438,), (1372091440,), (1372091443,), (1372091459,), (1372091460,), (1372091462,), (1372091464,), (1372091465,), (1372091467,), (1372091484,), (1372091487,), (1372091488,), (1372091490,), (1372091492,), (1372091494,), (1372091513,), (1372091516,), (1372091518,), (1372091520,), (1372091523,), (1372091525,), (1372091544,), (1372091547,), (1372091549,), (1372091550,), (1372091552,), (1372091554,), (1372091574,), (1372091576,), (1372091578,), (1372091579,), (1372091580,), (1372091583,), (1372091604,), (1372091606,), (1372091610,), (1372091611,), (1372091614,), (1372091617,), (1372091646,), (1372091649,), (1372091651,), (1372091656,), (1372091663,), (1372091665,), (1372091737,), (1372091739,), (1372091742,), (1372091743,), (1372091746,), (1372091749,), (1372091771,), (1372091773,), (1372091775,), (1372091777,), (1372091779,), (1372091782,), (1372091794,), (1372091795,), (1372091796,), (1372091797,), (1372091799,), (1372091801,), (1372091823,), (1372091825,), (1372091827,), (1372091829,), (1372091831,), (1372091834,), (1372091853,), (1372091855,), (1372091856,), (1372091857,), (1372091858,), (1372091860,), (1372091888,), (1372091890,), (1372091891,), (1372091893,), (1372091894,), (1372091896,), (1372091921,), (1372091922,), (1372091924,), (1372091925,), (1372091927,), (1372091930,), (1372091950,), (1372091952,), (1372091953,), (1372091954,), (1372091955,), (1372091957,), (1372091981,), (1372091984,), (1372091986,), (1372091987,), (1372091988,), (1372091990,), (1372092007,), (1372092009,), (1372092010,), (1372092013,), (1372092015,), (1372092017,), (1372092036,), (1372092039,), (1372092041,), (1372092043,), (1372092046,), (1372092049,), (1372092067,), (1372092071,), (1372092074,), (1372092075,), (1372092078,), (1372092080,), (1372092098,), (1372092100,), (1372092103,), (1372092105,), (1372092107,), (1372092110,), (1372092125,), (1372092127,), (1372092128,), (1372092130,), (1372092131,), (1372092133,), (1372092159,), (1372092162,), (1372092164,), (1372092166,), (1372092167,), (1372092169,), (1372092181,), (1372092183,), (1372092184,), (1372092186,), (1372092187,), (1372092188,), (1372092199,), (1372092201,), (1372092202,), (1372092204,), (1372092210,), (1372092212,), (1372092227,), (1372092229,), (1372092231,), (1372092233,), (1372092234,), (1372092237,), (1372092255,), (1372092257,), (1372092258,), (1372092261,), (1372092263,), (1372092265,), (1372092282,), (1372092286,), (1372092287,), (1372092291,), (1372092293,), (1372092294,), (1372092310,), (1372092312,), (1372092314,), (1372092315,), (1372092317,), (1372092319,), (1372092331,), (1372092333,), (1372092334,), (1372092336,), (1372092337,), (1372092339,), (1372092356,), (1372092360,), (1372092361,), (1372092363,), (1372092365,), (1372092367,), (1372092382,), (1372092384,), (1372092386,), (1372092388,), (1372092390,), (1372092391,), (1372092420,), (1372092425,), (1372092427,), (1372092430,), (1372092433,), (1372092437,), (1372092481,), (1372092485,), (1372092488,), (1372092490,), (1372092492,), (1372092495,), (1372092512,), (1372092515,), (1372092521,), (1372092523,), (1372092525,), (1372092528,), (1372092543,), (1372092546,), (1372092549,), (1372092551,), (1372092554,), (1372092556,), (1372092586,), (1372092590,), (1372092606,), (1372092607,), (1372092610,), (1372092613,), (1372092625,), (1372092627,), (1372092630,), (1372092631,), (1372092633,), (1372092635,), (1372092679,), (1372092681,), (1372092682,), (1372092689,), (1372092692,), (1372092695,), (1372092716,), (1372092718,), (1372092719,), (1372092722,), (1372092723,), (1372092725,), (1372092745,), (1372092746,), (1372092748,), (1372092750,), (1372092751,), (1372092753,), (1372092771,), (1372092773,), (1372092774,), (1372092776,), (1372092777,), (1372092779,), (1372092796,), (1372092798,), (1372092799,), (1372092801,), (1372092804,), (1372092806,), (1372092820,), (1372092822,), (1372092824,), (1372092825,), (1372092827,), (1372092829,), (1372092846,), (1372092849,), (1372092852,), (1372092853,), (1372092855,), (1372092857,), (1372092875,), (1372092877,), (1372092879,), (1372092882,), (1372092885,), (1372092887,), (1372092905,), (1372092907,), (1372092908,), (1372092910,), (1372092911,), (1372092913,), (1372092933,), (1372092935,), (1372092936,), (1372092938,), (1372092940,), (1372092942,), (1372092961,), (1372092963,), (1372092964,), (1372092966,), (1372092967,), (1372092970,), (1372092981,), (1372092982,), (1372092984,), (1372092987,), (1372092989,), (1372092991,), (1372093005,), (1372093007,), (1372093009,), (1372093011,), (1372093012,), (1372093016,), (1372093034,), (1372093037,), (1372093038,), (1372093041,), (1372093042,), (1372093045,), (1372093213,), (1372093260,), (1372093306,), (1372093354,), (1372093404,), (1372093453,), (1372093987,), (1372093992,), (1372093995,), (1372093998,), (1372094001,), (1372094006,), (1372094208,), (1372094560,), (1372094563,), (1372094564,), (1372094567,), (1372094570,), (1372094572,), (1372094747,), (1372094751,), (1372094763,), (1372094786,), (1372094789,), (1372094792,), (1372094808,), (1372094811,), (1372094814,), (1372094816,), (1372094820,), (1372094824,), (1372094841,), (1372094845,), (1372094847,), (1372094850,), (1372094853,), (1372094855,), (1372094882,), (1372094886,), (1372094889,), (1372094892,), (1372094895,), (1372094897,), (1372094911,), (1372094914,), (1372094916,), (1372094918,), (1372094921,), (1372094922,), (1372094941,), (1372094944,), (1372094946,), (1372094948,), (1372094950,), (1372094952,), (1372094972,), (1372095001,), (1372095004,), (1372095007,), (1372095009,), (1372095011,), (1372095013,), (1372095057,), (1372095060,), (1372095063,), (1372095066,), (1372095068,), (1372095071,), (1372095090,), (1372095093,), (1372095096,), (1372095098,), (1372095099,), (1372095102,), (1372095118,), (1372095122,), (1372095124,), (1372095129,), (1372095133,), (1372095137,), (1372095153,), (1372095157,), (1372095159,), (1372095161,), (1372095164,), (1372095168,), (1372095182,), (1372095186,), (1372095188,), (1372095190,), (1372095192,), (1372095195,), (1372095213,), (1372095216,), (1372095219,), (1372095221,), (1372095224,), (1372095226,), (1372095249,), (1372095252,), (1372095254,), (1372095256,), (1372095257,), (1372095259,), (1372095283,), (1372095286,), (1372095291,), (1372095293,), (1372095295,), (1372095297,), (1372095314,), (1372095353,), (1372095355,), (1372095357,), (1372095360,), (1372095362,), (1372095365,), (1372095410,), (1372095412,), (1372095416,), (1372095419,), (1372095421,), (1372095423,), (1372095442,), (1372095445,), (1372095447,), (1372095451,), (1372095455,), (1372095458,), (1372095475,), (1372095479,), (1372095481,), (1372095484,), (1372095486,), (1372095488,), (1372095506,), (1372095510,), (1372095512,), (1372095514,), (1372095516,), (1372095518,), (1372095534,), (1372095538,), (1372095540,), (1372095544,), (1372095547,), (1372095552,), (1372095577,), (1372095579,), (1372095580,), (1372095582,), (1372095583,), (1372095586,), (1372095608,), (1372095610,), (1372095611,), (1372095613,), (1372095614,), (1372095616,), (1372095642,), (1372095644,), (1372095646,), (1372095648,), (1372095651,), (1372095654,), (1372095667,), (1372095668,), (1372095669,), (1372095670,), (1372095671,), (1372095673,), (1372095694,), (1372095695,), (1372095696,), (1372095698,), (1372095699,), (1372095701,), (1372095753,), (1372095754,), (1372095756,), (1372095758,), (1372095760,), (1372095763,), (1372095795,), (1372095797,), (1372095798,), (1372095800,), (1372095802,), (1372095804,), (1372095826,), (1372095827,), (1372095829,), (1372095830,), (1372095832,), (1372095835,), (1372095860,), (1372095861,), (1372095862,), (1372095863,), (1372095864,), (1372095866,), (1372095891,), (1372095892,), (1372095894,), (1372095896,), (1372095897,), (1372095899,), (1372095924,), (1372095926,), (1372095927,), (1372095929,), (1372095930,), (1372095932,), (1372095950,), (1372095952,), (1372095954,), (1372095956,), (1372095958,), (1372095960,), (1372095987,), (1372096002,), (1372096004,), (1372096019,), (1372096022,), (1372096032,), (1372096055,), (1372096056,), (1372096059,), (1372096060,), (1372096062,), (1372096064,), (1372096079,), (1372096080,), (1372096081,), (1372096082,), (1372096084,), (1372096086,), (1372096109,), (1372096111,), (1372096113,), (1372096114,), (1372096116,), (1372096120,), (1372096140,), (1372096141,), (1372096143,), (1372096144,), (1372096146,), (1372096148,), (1372096167,), (1372096168,), (1372096169,), (1372096170,), (1372096172,), (1372096174,), (1372096193,), (1372096195,), (1372096197,), (1372096198,), (1372096199,), (1372096201,), (1372096225,), (1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,), (1372096468,), (1372096471,), (1372096472,), (1372096475,), (1372096478,), (1372096481,), (1372096507,), (1372096509,), (1372096511,), (1372096513,), (1372096515,), (1372096517,), (1372096542,), (1372096545,), (1372096547,), (1372096549,), (1372096550,), (1372096552,), (1372096573,), (1372096576,), (1372096578,), (1372096580,), (1372096582,), (1372096584,), (1372096602,), (1372096603,), (1372096605,), (1372096607,), (1372096609,), (1372096611,), (1372096629,), (1372096632,), (1372096635,), (1372096636,), (1372096652,), (1372096676,), (1372096936,), (1372096962,), (1372096987,), (1372097009,), (1372097033,), (1372097058,), (1372097908,), (1372097958,), (1372098014,), (1372098062,), (1372098113,), (1372098166,), (1372098581,), (1372098582,), (1372098584,), (1372098586,), (1372098588,), (1372098590,), (1372098960,), (1372098977,), (1372098996,), (1372099022,), (1372099042,), (1372099068,), (1372099136,), (1372099138,), (1372099139,), (1372099141,), (1372099142,), (1372099144,), (1372099164,), (1372099167,), (1372099171,), (1372099172,), (1372099174,), (1372099177,), (1372099190,), (1372099193,), (1372099195,), (1372099196,), (1372099197,), (1372099200,), (1372099224,), (1372099227,), (1372099230,), (1372099233,), (1372099234,), (1372099238,), (1372099257,), (1372099282,), (1372099284,), (1372099285,), (1372099287,), (1372099289,), (1372099292,), (1372099310,), (1372099313,), (1372099314,), (1372099317,), (1372099319,), (1372099322,), (1372099336,), (1372099337,), (1372099338,), (1372099339,), (1372099340,), (1372099342,), (1372099360,), (1372099361,), (1372099362,), (1372099363,), (1372099371,), (1372099380,), (1372099461,), (1372099463,), (1372099476,), (1372099498,), (1372099500,), (1372099504,), (1372099518,), (1372099521,), (1372099525,), (1372099527,), (1372099530,), (1372099533,), (1372099558,), (1372099561,), (1372099563,), (1372099564,), (1372099566,), (1372099568,), (1372099583,), (1372099585,), (1372099586,), (1372099590,), (1372099591,), (1372099594,), (1372099614,), (1372099616,), (1372099618,), (1372099620,), (1372099622,), (1372099625,), (1372099641,), (1372099642,), (1372099644,), (1372099646,), (1372099647,), (1372099649,), (1372099665,), (1372099667,), (1372099669,), (1372099670,), (1372099672,), (1372099674,), (1372099690,), (1372099692,), (1372099694,), (1372099695,), (1372099696,), (1372099699,), (1372099714,), (1372099716,), (1372099718,), (1372099719,), (1372099722,), (1372099726,), (1372099740,), (1372099741,), (1372099743,), (1372099744,), (1372099745,), (1372099747,), (1372099762,), (1372099764,), (1372099766,), (1372099767,), (1372099769,), (1372099777,), (1372099823,), (1372099826,), (1372099829,), (1372099830,), (1372099833,), (1372099835,), (1372099851,), (1372099854,), (1372099860,), (1372099862,), (1372099866,), (1372099871,), (1372099924,), (1372099928,), (1372099932,), (1372099933,), (1372099935,), (1372099938,), (1372099952,), (1372099955,), (1372099956,), (1372099958,), (1372099960,), (1372099962,), (1372099982,), (1372099984,), (1372099986,), (1372099988,), (1372099991,), (1372099992,), (1372100012,), (1372100014,), (1372100016,), (1372100017,), (1372100019,), (1372100022,), (1372100042,), (1372100045,), (1372100047,), (1372100049,), (1372100051,), (1372100053,), (1372100062,), (1372100064,), (1372100065,), (1372100067,), (1372100069,), (1372100071,), (1372100087,), (1372100091,), (1372100092,), (1372100095,), (1372100097,), (1372100100,), (1372100120,), (1372100121,), (1372100123,), (1372100125,), (1372100127,), (1372100129,), (1372100144,), (1372100149,), (1372100153,), (1372100156,), (1372100158,), (1372100161,), (1372100179,), (1372100181,), (1372100183,), (1372100184,), (1372100186,), (1372100188,), (1372100205,), (1372100207,), (1372100209,), (1372100210,), (1372100212,), (1372100215,), (1372100237,), (1372100240,), (1372100241,), (1372100243,), (1372100244,), (1372100246,), (1372100257,), (1372100258,), (1372100259,), (1372100261,), (1372100262,), (1372100264,), (1372100290,), (1372100292,), (1372100293,), (1372100295,), (1372100296,), (1372100298,), (1372100313,), (1372100315,), (1372100316,), (1372100318,), (1372100319,), (1372100321,), (1372100337,), (1372100340,), (1372100344,), (1372100345,), (1372100349,), (1372100352,), (1372100379,), (1372100382,), (1372100384,), (1372100386,), (1372100387,), (1372100388,), (1372100410,), (1372100412,), (1372100413,), (1372100415,), (1372100416,), (1372100418,), (1372100431,), (1372100433,), (1372100434,), (1372100437,), (1372100439,), (1372100441,), (1372100467,), (1372100468,), (1372100470,), (1372100472,), (1372100474,), (1372100476,), (1372100489,), (1372100493,), (1372100495,), (1372100497,), (1372100499,), (1372100501,), (1372100516,), (1372100520,), (1372100525,), (1372100527,), (1372100529,), (1372100531,), (1372100548,), (1372100550,), (1372100554,), (1372100557,), (1372100569,), (1372100577,), (1372100599,), (1372100603,), (1372100605,), (1372100607,), (1372100610,), (1372100612,), (1372100625,), (1372100628,), (1372100630,), (1372100633,), (1372100637,), (1372100638,), (1372100656,), (1372100659,), (1372100661,), (1372100662,), (1372100664,), (1372100666,), (1372100684,), (1372100687,), (1372100690,), (1372100691,), (1372100693,), (1372100695,), (1372100714,), (1372100715,), (1372100718,), (1372100720,), (1372100723,), (1372100726,), (1372100751,), (1372100755,), (1372100757,), (1372100758,), (1372100760,), (1372100763,), (1372100810,), (1372100812,), (1372100813,), (1372100815,), (1372100816,), (1372100819,), (1372100841,), (1372100864,), (1372100866,), (1372100868,), (1372100869,), (1372100871,), (1372100874,), (1372100889,), (1372100891,), (1372100893,), (1372100897,), (1372100919,), (1372100941,), (1372101193,), (1372101217,), (1372101239,), (1372101265,), (1372101288,), (1372101317,), (1372101848,), (1372102283,), (1372102308,), (1372102336,), (1372102358,), (1372102383,), (1372102861,), (1372102887,), (1372102922,), (1372102945,), (1372102951,), (1372102954,), (1372103097,), (1372103124,), (1372103138,), (1372103142,), (1372103157,), (1372103165,), (1372103210,), (1372103211,), (1372103213,), (1372103215,), (1372103216,), (1372103218,), (1372103232,), (1372103233,), (1372103235,), (1372103237,), (1372103238,), (1372103240,), (1372103257,), (1372103260,), (1372103261,), (1372103264,), (1372103266,), (1372103268,), (1372103289,), (1372103310,), (1372103317,), (1372103320,), (1372103322,), (1372103324,), (1372103342,), (1372103345,), (1372103347,), (1372103348,), (1372103350,), (1372103352,), (1372103369,), (1372103372,), (1372103374,), (1372103375,), (1372103376,), (1372103378,), (1372103391,), (1372103392,), (1372103394,), (1372103396,), (1372103397,), (1372103399,), (1372103418,), (1372103419,), (1372103420,), (1372103421,), (1372103422,), (1372103425,), (1372103440,), (1372103441,), (1372103444,), (1372103447,), (1372103450,), (1372103453,), (1372103473,), (1372103474,), (1372103475,), (1372103477,), (1372103479,), (1372103481,), (1372103501,), (1372103502,), (1372103503,), (1372103504,), (1372103505,), (1372103508,), (1372103521,), (1372103523,), (1372103525,), (1372103527,), (1372103529,), (1372103531,), (1372103545,), (1372103546,), (1372103548,), (1372103549,), (1372103552,), (1372103555,), (1372103572,), (1372103573,), (1372103574,), (1372103575,), (1372103577,), (1372103580,), (1372103600,), (1372103616,), (1372103622,), (1372103623,), (1372103626,), (1372103628,), (1372103645,), (1372103647,), (1372103650,), (1372103653,), (1372103656,), (1372103660,), (1372103670,), (1372103672,), (1372103673,), (1372103675,), (1372103677,), (1372103680,), (1372103724,), (1372103726,), (1372103727,), (1372103729,), (1372103730,), (1372103732,), (1372103748,), (1372103750,), (1372103752,), (1372103754,), (1372103757,), (1372103759,), (1372103772,), (1372103774,), (1372103775,), (1372103777,), (1372103778,), (1372103780,), (1372103803,), (1372103806,), (1372103808,), (1372103810,), (1372103811,), (1372103813,), (1372103833,), (1372103867,), (1372103870,), (1372103873,), (1372103874,), (1372103876,), (1372103878,), (1372103892,), (1372103895,), (1372103898,), (1372103899,), (1372103900,), (1372103902,), (1372103918,), (1372103920,), (1372103922,), (1372103924,), (1372103927,), (1372103928,), (1372103951,), (1372103955,), (1372103958,), (1372103959,), (1372103961,), (1372103963,), (1372103975,), (1372103978,), (1372103981,), (1372103983,), (1372103986,), (1372103988,), (1372104030,), (1372104031,), (1372104033,), (1372104035,), (1372104036,), (1372104038,), (1372104054,), (1372104057,), (1372104059,), (1372104061,), (1372104063,), (1372104065,), (1372104081,), (1372104083,), (1372104084,), (1372104086,), (1372104088,), (1372104091,), (1372104103,), (1372104105,), (1372104106,), (1372104108,), (1372104110,), (1372104111,), (1372104123,), (1372104125,), (1372104126,), (1372104128,), (1372104130,), (1372104132,), (1372104143,), (1372104145,), (1372104148,), (1372104150,), (1372104152,), (1372104155,), (1372104169,), (1372104171,), (1372104173,), (1372104174,), (1372104176,), (1372104180,), (1372104192,), (1372104194,), (1372104197,), (1372104199,), (1372104202,), (1372104205,), (1372104220,), (1372104223,), (1372104227,), (1372104229,), (1372104231,), (1372104233,), (1372104244,), (1372104245,), (1372104246,), (1372104247,), (1372104249,), (1372104251,), (1372104292,), (1372104294,), (1372104296,), (1372104298,), (1372104299,), (1372104301,), (1372104311,), (1372104312,), (1372104315,), (1372104317,), (1372104321,), (1372104324,), (1372104343,), (1372104344,), (1372104345,), (1372104346,), (1372104348,), (1372104350,), (1372104373,), (1372104374,), (1372104375,), (1372104376,), (1372104377,), (1372104379,), (1372104399,), (1372104401,), (1372104403,), (1372104404,), (1372104405,), (1372104408,), (1372104434,), (1372104435,), (1372104440,), (1372104443,), (1372104446,), (1372104451,), (1372104474,), (1372104477,), (1372104478,), (1372104480,), (1372104481,), (1372104483,), (1372104500,), (1372104503,), (1372104506,), (1372104507,), (1372104509,), (1372104512,), (1372104530,), (1372104554,), (1372104556,), (1372104558,), (1372104559,), (1372104561,), (1372104565,), (1372104615,), (1372104616,), (1372104618,), (1372104619,), (1372104622,), (1372104625,), (1372104637,), (1372104639,), (1372104641,), (1372104642,), (1372104644,), (1372104648,), (1372104669,), (1372104679,), (1372104683,), (1372104685,), (1372104690,), (1372104692,), (1372104738,), (1372104740,), (1372104742,), (1372104744,), (1372104747,), (1372104750,), (1372104764,), (1372104766,), (1372104768,), (1372104769,), (1372104771,), (1372104773,), (1372104799,), (1372104801,), (1372104810,), (1372104815,), (1372104817,), (1372104842,), (1372104902,), (1372104905,), (1372104909,), (1372104910,), (1372104913,), (1372104915,), (1372105005,), (1372105030,), (1372105055,), (1372105079,), (1372105103,), (1372105129,), (1372106313,), (1372106969,), (1372106996,), (1372107021,), (1372107044,), (1372107052,), (1372107132,), (1372107158,), (1372107183,), (1372107207,), (1372107232,), (1372107249,), (1372107347,), (1372107350,), (1372107352,), (1372107354,), (1372107356,), (1372107358,), (1372107373,), (1372107375,), (1372107378,), (1372107379,), (1372107381,), (1372107383,), (1372107402,), (1372107403,), (1372107406,), (1372107409,), (1372107410,), (1372107412,), (1372107434,), (1372107437,), (1372107440,), (1372107444,), (1372107445,), (1372107447,), (1372107468,), (1372107470,), (1372107472,), (1372107473,), (1372107475,), (1372107478,), (1372107504,), (1372107506,), (1372107508,), (1372107509,), (1372107510,), (1372107512,), (1372107535,), (1372107559,), (1372107561,), (1372107562,), (1372107564,), (1372107566,), (1372107568,), (1372107588,), (1372107591,), (1372107593,), (1372107595,), (1372107597,), (1372107599,), (1372107618,), (1372107621,), (1372107622,), (1372107624,), (1372107625,), (1372107627,), (1372107659,), (1372107661,), (1372107664,), (1372107665,), (1372107667,), (1372107669,), (1372107697,), (1372107700,), (1372107701,), (1372107703,), (1372107704,), (1372107706,), (1372107726,), (1372107728,), (1372107730,), (1372107732,), (1372107734,), (1372107736,), (1372107756,), (1372107763,), (1372107765,), (1372107767,), (1372107768,), (1372107770,), (1372107792,), (1372107794,), (1372107796,), (1372107797,), (1372107798,), (1372107800,), (1372107822,), (1372107825,), (1372107829,), (1372107830,), (1372107833,), (1372107836,), (1372107854,), (1372107883,), (1372107886,), (1372107888,), (1372107890,), (1372107891,), (1372107894,), (1372107903,), (1372107936,), (1372107947,), (1372107949,), (1372107951,), (1372107973,), (1372107975,), (1372108043,), (1372108053,), (1372108061,), (1372108063,), (1372108066,), (1372108073,), (1372108125,), (1372108127,), (1372108129,), (1372108130,), (1372108132,), (1372108134,), (1372108157,), (1372108159,), (1372108161,), (1372108164,), (1372108165,), (1372108168,), (1372108183,), (1372108185,), (1372108188,), (1372108191,), (1372108193,), (1372108196,), (1372108217,), (1372108220,), (1372108222,), (1372108223,), (1372108224,), (1372108228,), (1372108246,), (1372108249,), (1372108252,), (1372108253,), (1372108255,), (1372108258,), (1372108269,), (1372108271,), (1372108274,), (1372108276,), (1372108278,), (1372108281,), (1372108297,), (1372108299,), (1372108300,), (1372108302,), (1372108304,), (1372108306,), (1372108325,), (1372108328,), (1372108329,), (1372108331,), (1372108333,), (1372108335,), (1372108355,), (1372108358,), (1372108360,), (1372108361,), (1372108363,), (1372108365,), (1372108379,), (1372108382,), (1372108386,), (1372108388,), (1372108392,), (1372108394,), (1372108414,), (1372108417,), (1372108418,), (1372108420,), (1372108421,), (1372108423,), (1372108443,), (1372108445,), (1372108448,), (1372108449,), (1372108450,), (1372108453,), (1372108472,), (1372108475,), (1372108477,), (1372108478,), (1372108480,), (1372108483,), (1372108497,), (1372108499,), (1372108500,), (1372108502,), (1372108503,), (1372108505,), (1372108520,), (1372108523,), (1372108525,), (1372108527,), (1372108529,), (1372108531,), (1372108543,), (1372108545,), (1372108548,), (1372108549,), (1372108551,), (1372108553,), (1372108573,), (1372108575,), (1372108578,), (1372108579,), (1372108581,), (1372108584,), (1372108598,), (1372108601,), (1372108603,), (1372108604,), (1372108606,), (1372108608,), (1372108627,), (1372108629,), (1372108630,), (1372108632,), (1372108634,), (1372108635,), (1372108655,), (1372108657,), (1372108659,), (1372108660,), (1372108662,), (1372108664,), (1372108683,), (1372108685,), (1372108686,), (1372108688,), (1372108689,), (1372108691,), (1372108711,), (1372108713,), (1372108716,), (1372108718,), (1372108720,), (1372108722,), (1372108742,), (1372108744,), (1372108746,), (1372108749,), (1372108751,), (1372108753,), (1372108782,), (1372108785,), (1372108787,), (1372108789,), (1372108792,), (1372108795,), (1372108814,), (1372108841,), (1372108843,), (1372108844,), (1372108846,), (1372108848,), (1372108850,), (1372108869,), (1372108872,), (1372108874,), (1372108875,), (1372108877,), (1372108879,), (1372108899,), (1372108902,), (1372108905,), (1372108907,), (1372108909,), (1372108910,), (1372108926,), (1372108929,), (1372108933,), (1372108934,), (1372108937,), (1372108941,), (1372108956,), (1372108959,), (1372108963,), (1372108964,), (1372108967,), (1372108971,), (1372108992,), (1372108994,), (1372108998,), (1372109000,), (1372109002,), (1372109005,), (1372109024,), (1372109025,), (1372109027,), (1372109029,), (1372109031,), (1372109032,), (1372109051,), (1372109054,), (1372109056,), (1372109057,), (1372109059,), (1372109062,), (1372109083,), (1372109086,), (1372109089,), (1372109090,), (1372109093,), (1372109095,), (1372109133,), (1372109135,), (1372109136,), (1372109159,), (1372109160,), (1372109180,), (1372109449,), (1372109474,), (1372109501,), (1372109541,), (1372109565,), (1372109591,), (1372110249,), (1372110254,), (1372110260,), (1372110263,), (1372110267,), (1372110273,), (1372110448,), (1372110456,), (1372110475,), (1372110511,), (1372110539,), (1372110564,), (1372110824,), (1372110850,), (1372110875,), (1372110902,), (1372110925,), (1372110954,), (1372111168,), (1372111170,), (1372111171,), (1372111173,), (1372111174,), (1372111176,), (1372111371,), (1372111381,), (1372111383,), (1372111390,), (1372111416,), (1372111423,), (1372111480,), (1372111481,), (1372111483,), (1372111485,), (1372111487,), (1372111490,), (1372111507,), (1372111509,), (1372111510,), (1372111511,), (1372111512,), (1372111515,), (1372111542,), (1372111569,), (1372111570,), (1372111571,), (1372111572,), (1372111574,), (1372111577,), (1372111597,), (1372111600,), (1372111603,), (1372111604,), (1372111606,), (1372111608,), (1372111618,), (1372111622,), (1372111625,), (1372111629,), (1372111631,), (1372111635,), (1372111655,), (1372111658,), (1372111659,), (1372111661,), (1372111663,), (1372111665,), (1372111686,), (1372111689,), (1372111693,), (1372111695,), (1372111698,), (1372111702,), (1372111720,), (1372111722,), (1372111725,), (1372111727,), (1372111728,), (1372111730,), (1372111758,), (1372111761,), (1372111764,), (1372111765,), (1372111767,), (1372111773,), (1372111791,), (1372111794,), (1372111797,), (1372111799,), (1372111802,), (1372111804,), (1372111824,), (1372111826,), (1372111830,), (1372111832,), (1372111833,), (1372111835,), (1372111857,), (1372111859,), (1372111861,), (1372111863,), (1372111865,), (1372111867,), (1372111886,), (1372111889,), (1372111890,), (1372111892,), (1372111894,), (1372111896,), (1372111914,), (1372111916,), (1372111919,), (1372111920,), (1372111923,), (1372111926,), (1372111941,), (1372111944,), (1372111947,), (1372111949,), (1372111951,), (1372111953,), (1372111976,), (1372111979,), (1372111981,), (1372111982,), (1372111983,), (1372111985,), (1372112065,), (1372112091,), (1372112099,), (1372112101,), (1372112110,), (1372112125,), (1372112140,), (1372112142,), (1372112143,), (1372112145,), (1372112146,), (1372112148,), (1372112164,), (1372112166,), (1372112167,), (1372112169,), (1372112170,), (1372112173,), (1372112183,), (1372112184,), (1372112187,), (1372112189,), (1372112190,), (1372112192,), (1372112210,), (1372112212,), (1372112213,), (1372112215,), (1372112217,), (1372112219,), (1372112229,), (1372112231,), (1372112234,), (1372112236,), (1372112237,), (1372112239,), (1372112258,), (1372112262,), (1372112264,), (1372112266,), (1372112268,), (1372112270,), (1372112292,), (1372112295,), (1372112297,), (1372112299,), (1372112300,), (1372112303,), (1372112324,), (1372112326,), (1372112328,), (1372112331,), (1372112333,), (1372112336,), (1372112368,), (1372112370,), (1372112372,), (1372112374,), (1372112375,), (1372112382,), (1372112402,), (1372112405,), (1372112408,), (1372112409,), (1372112410,), (1372112412,), (1372112434,), (1372112463,), (1372112465,), (1372112468,), (1372112470,), (1372112472,), (1372112475,), (1372112496,), (1372112500,), (1372112502,), (1372112504,), (1372112506,), (1372112508,), (1372112519,), (1372112522,), (1372112525,), (1372112528,), (1372112530,), (1372112533,), (1372112548,), (1372112551,), (1372112552,), (1372112555,), (1372112556,), (1372112559,), (1372112579,), (1372112582,), (1372112584,), (1372112586,), (1372112588,), (1372112591,), (1372112610,), (1372112638,), (1372112640,), (1372112642,), (1372112643,), (1372112645,), (1372112647,), (1372112673,), (1372112675,), (1372112677,), (1372112679,), (1372112681,), (1372112683,), (1372112703,), (1372112706,), (1372112710,), (1372112711,), (1372112714,), (1372112716,), (1372112729,), (1372112731,), (1372112732,), (1372112733,), (1372112734,), (1372112736,), (1372112739,), (1372112740,), (1372112741,), (1372112742,), (1372112744,), (1372112746,), (1372112755,), (1372112757,), (1372112759,), (1372112761,), (1372112764,), (1372112765,), (1372112784,), (1372112787,), (1372112790,), (1372112792,), (1372112794,), (1372112796,), (1372112816,), (1372112818,), (1372112819,), (1372112821,), (1372112822,), (1372112824,), (1372112838,), (1372112841,), (1372112844,), (1372112846,), (1372112849,), (1372112852,), (1372112868,), (1372112870,), (1372112872,), (1372112873,), (1372112875,), (1372112877,), (1372112891,), (1372112894,), (1372112897,), (1372112898,), (1372112899,), (1372112901,), (1372112928,), (1372112932,), (1372112933,), (1372112937,), (1372112940,), (1372112943,), (1372112954,), (1372112956,), (1372112959,), (1372112960,), (1372112963,), (1372112966,), (1372112991,), (1372112992,), (1372112994,), (1372112996,), (1372112997,), (1372112999,), (1372113022,), (1372113025,), (1372113027,), (1372113031,), (1372113033,), (1372113035,), (1372113051,), (1372113053,), (1372113056,), (1372113059,), (1372113061,), (1372113064,), (1372113082,), (1372113085,), (1372113089,), (1372113092,), (1372113094,), (1372113097,), (1372113116,), (1372113118,), (1372113120,), (1372113123,), (1372113124,), (1372113135,), (1372113400,), (1372113427,), (1372113452,), (1372113476,), (1372113503,), (1372113531,), (1372114114,), (1372114402,), (1372114429,), (1372114452,), (1372114477,), (1372114517,), (1372114978,), (1372115031,), (1372115056,), (1372115081,), (1372115107,), (1372115132,), (1372115297,), (1372115300,), (1372115302,), (1372115304,), (1372115325,), (1372115350,), (1372115512,), (1372115531,), (1372115538,), (1372115542,), (1372115544,), (1372115547,), (1372115563,), (1372115567,), (1372115569,), (1372115572,), (1372115574,), (1372115576,), (1372115595,), (1372115598,), (1372115601,), (1372115602,), (1372115605,), (1372115608,), (1372115623,), (1372115629,), (1372115637,), (1372115641,), (1372115643,), (1372115658,), (1372115723,), (1372115725,), (1372115727,), (1372115728,), (1372115729,), (1372115731,), (1372115752,), (1372115755,), (1372115757,), (1372115759,), (1372115761,), (1372115763,), (1372115783,), (1372115784,), (1372115787,), (1372115789,), (1372115791,), (1372115793,), (1372115839,), (1372115841,), (1372115844,), (1372115846,), (1372115848,), (1372115851,), (1372115870,), (1372115873,), (1372115875,), (1372115878,), (1372115880,), (1372115882,), (1372115897,), (1372115900,), (1372115903,), (1372115904,), (1372115906,), (1372115908,), (1372115925,), (1372115928,), (1372115933,), (1372115935,), (1372115938,), (1372115940,), (1372115959,), (1372115963,), (1372115967,), (1372115971,), (1372115972,), (1372115975,), (1372115990,), (1372115995,), (1372115998,), (1372115999,), (1372116002,), (1372116005,), (1372116017,), (1372116018,), (1372116019,), (1372116020,), (1372116021,), (1372116023,), (1372116038,), (1372116041,), (1372116043,), (1372116044,), (1372116046,), (1372116048,), (1372116059,), (1372116084,), (1372116101,), (1372116102,), (1372116103,), (1372116105,), (1372116107,), (1372116109,), (1372116125,), (1372116126,), (1372116127,), (1372116128,), (1372116129,), (1372116131,), (1372116145,), (1372116148,), (1372116149,), (1372116150,), (1372116152,), (1372116153,), (1372116166,), (1372116167,), (1372116169,), (1372116170,), (1372116172,), (1372116174,), (1372116192,), (1372116194,), (1372116196,), (1372116197,), (1372116198,), (1372116200,), (1372116214,), (1372116216,), (1372116217,), (1372116218,), (1372116220,), (1372116222,), (1372116240,), (1372116242,), (1372116243,), (1372116244,), (1372116247,), (1372116250,), (1372116267,), (1372116268,), (1372116269,), (1372116270,), (1372116271,), (1372116274,), (1372116289,), (1372116291,), (1372116293,), (1372116294,), (1372116295,), (1372116297,), (1372116313,), (1372116314,), (1372116315,), (1372116317,), (1372116318,), (1372116320,), (1372116337,), (1372116338,), (1372116341,), (1372116342,), (1372116344,), (1372116346,), (1372116353,), (1372116355,), (1372116357,), (1372116359,), (1372116361,), (1372116365,), (1372116381,), (1372116384,), (1372116386,), (1372116388,), (1372116392,), (1372116393,), (1372116403,), (1372116405,), (1372116407,), (1372116409,), (1372116411,), (1372116414,), (1372116429,), (1372116431,), (1372116432,), (1372116434,), (1372116435,), (1372116437,), (1372116454,), (1372116458,), (1372116459,), (1372116462,), (1372116463,), (1372116466,), (1372116477,), (1372116478,), (1372116480,), (1372116483,), (1372116484,), (1372116486,), (1372116504,), (1372116507,), (1372116508,), (1372116510,), (1372116511,), (1372116513,), (1372116530,), (1372116533,), (1372116534,), (1372116536,), (1372116537,), (1372116539,), (1372116553,), (1372116555,), (1372116557,), (1372116558,), (1372116560,), (1372116562,), (1372116580,), (1372116582,), (1372116583,), (1372116584,), (1372116585,), (1372116587,), (1372116598,), (1372116601,), (1372116603,), (1372116605,), (1372116607,), (1372116610,), (1372116619,), (1372116621,), (1372116622,), (1372116626,), (1372116630,), (1372116633,), (1372116647,), (1372116649,), (1372116650,), (1372116652,), (1372116654,), (1372116657,), (1372116672,), (1372116675,), (1372116677,), (1372116679,), (1372116680,), (1372116682,), (1372116696,), (1372116698,), (1372116704,), (1372116706,), (1372116709,), (1372116711,), (1372116726,), (1372116729,), (1372116731,), (1372116732,), (1372116733,), (1372116735,), (1372116751,), (1372116754,), (1372116755,), (1372116757,), (1372116759,), (1372116761,), (1372116770,), (1372116772,), (1372116773,), (1372116775,), (1372116777,), (1372116780,), (1372116789,), (1372116791,), (1372116792,), (1372116793,), (1372116794,), (1372116796,), (1372116814,), (1372116817,), (1372116819,), (1372116820,), (1372116821,), (1372116824,), (1372116837,), (1372116839,), (1372116841,), (1372116843,), (1372116846,), (1372116848,), (1372116862,), (1372116864,), (1372116866,), (1372116867,), (1372116869,), (1372116871,), (1372116886,), (1372116890,), (1372116893,), (1372116895,), (1372116898,), (1372116900,), (1372116913,), (1372116934,), (1372116936,), (1372116937,), (1372116939,), (1372116941,), (1372116942,), (1372116954,), (1372116957,), (1372116959,), (1372116960,), (1372116962,), (1372116964,), (1372117014,), (1372117042,), (1372117068,), (1372117097,), (1372117122,), (1372117148,), (1372117998,), (1372118051,), (1372118097,), (1372118144,), (1372118174,), (1372118205,), (1372118603,), (1372118841,), (1372118843,), (1372118845,), (1372118846,), (1372118848,), (1372118851,), (1372118868,), (1372118871,), (1372118874,), (1372118875,), (1372118878,), (1372118880,), (1372118893,), (1372118896,), (1372118899,), (1372118900,), (1372118902,), (1372118904,), (1372118921,), (1372118923,), (1372118925,), (1372118926,), (1372118928,), (1372118930,), (1372118946,), (1372118949,), (1372118951,), (1372118953,), (1372118954,), (1372118956,), (1372118972,), (1372118974,), (1372118978,), (1372118979,), (1372118981,), (1372118983,), (1372118999,), (1372119002,), (1372119004,), (1372119007,), (1372119008,), (1372119012,), (1372119021,), (1372119024,), (1372119026,), (1372119028,), (1372119029,), (1372119031,), (1372119043,), (1372119045,), (1372119046,), (1372119048,), (1372119051,), (1372119053,), (1372119066,), (1372119069,), (1372119070,), (1372119073,), (1372119075,), (1372119078,), (1372119083,), (1372119084,), (1372119085,), (1372119086,), (1372119088,), (1372119089,), (1372119099,), (1372119100,), (1372119101,), (1372119103,), (1372119104,), (1372119106,), (1372119118,), (1372119120,), (1372119121,), (1372119123,), (1372119125,), (1372119129,), (1372119144,), (1372119146,), (1372119148,), (1372119150,), (1372119151,), (1372119154,), (1372119167,), (1372119168,), (1372119170,), (1372119171,), (1372119174,), (1372119177,), (1372119190,), (1372119191,), (1372119193,), (1372119194,), (1372119196,), (1372119198,), (1372119215,), (1372119217,), (1372119219,), (1372119220,), (1372119221,), (1372119223,), (1372119234,), (1372119235,), (1372119236,), (1372119238,), (1372119240,), (1372119242,), (1372119255,), (1372119256,), (1372119257,), (1372119258,), (1372119260,), (1372119263,), (1372119279,), (1372119282,), (1372119283,), (1372119285,), (1372119287,), (1372119289,), (1372119292,), (1372119293,), (1372119295,), (1372119296,), (1372119298,), (1372119301,), (1372119313,), (1372119314,), (1372119315,), (1372119316,), (1372119317,), (1372119319,), (1372119335,), (1372119337,), (1372119339,), (1372119340,), (1372119342,), (1372119344,), (1372119356,), (1372119357,), (1372119358,), (1372119360,), (1372119361,), (1372119363,), (1372119377,), (1372119378,), (1372119379,), (1372119380,), (1372119381,), (1372119383,), (1372119398,), (1372119423,), (1372119424,), (1372119426,), (1372119428,), (1372119432,), (1372119435,), (1372119450,), (1372119452,), (1372119453,), (1372119454,), (1372119455,), (1372119458,), (1372119474,), (1372119476,), (1372119478,), (1372119480,), (1372119483,), (1372119486,), (1372119519,), (1372119520,), (1372119521,), (1372119522,), (1372119524,), (1372119525,), (1372119550,), (1372119552,), (1372119554,), (1372119555,), (1372119557,), (1372119560,), (1372119576,), (1372119578,), (1372119580,), (1372119581,), (1372119582,), (1372119584,), (1372119612,), (1372119615,), (1372119619,), (1372119620,), (1372119623,), (1372119626,), (1372119649,), (1372119651,), (1372119652,), (1372119654,), (1372119655,), (1372119657,), (1372119676,), (1372119679,), (1372119680,), (1372119682,), (1372119683,), (1372119685,), (1372119701,), (1372119703,), (1372119704,), (1372119707,), (1372119709,), (1372119712,), (1372119728,), (1372119730,), (1372119732,), (1372119733,), (1372119735,), (1372119738,), (1372119753,), (1372119756,), (1372119759,), (1372119760,), (1372119763,), (1372119765,), (1372119774,), (1372119776,), (1372119777,), (1372119779,), (1372119780,), (1372119782,), (1372119867,), (1372119869,), (1372119870,), (1372119872,), (1372119873,), (1372119876,), (1372119887,), (1372119890,), (1372119891,), (1372119893,), (1372119894,), (1372119896,), (1372119918,), (1372119919,), (1372119922,), (1372119924,), (1372119926,), (1372119928,), (1372119944,), (1372119946,), (1372119948,), (1372119950,), (1372119952,), (1372119957,), (1372119973,), (1372119975,), (1372119978,), (1372119980,), (1372119982,), (1372119987,), (1372120006,), (1372120008,), (1372120013,), (1372120015,), (1372120019,), (1372120022,), (1372120039,), (1372120041,), (1372120042,), (1372120043,), (1372120044,), (1372120046,), (1372120071,), (1372120073,), (1372120075,), (1372120076,), (1372120078,), (1372120080,), (1372120090,), (1372120092,), (1372120093,), (1372120095,), (1372120097,), (1372120100,), (1372120117,), (1372120119,), (1372120120,), (1372120122,), (1372120124,), (1372120125,), (1372120179,), (1372120180,), (1372120182,), (1372120184,), (1372120186,), (1372120188,), (1372120197,), (1372120198,), (1372120200,), (1372120201,), (1372120203,), (1372120206,), (1372120218,), (1372120219,), (1372120220,), (1372120221,), (1372120222,), (1372120224,), (1372120240,), (1372120241,), (1372120243,), (1372120244,), (1372120246,), (1372120247,), (1372120261,), (1372120262,), (1372120264,), (1372120265,), (1372120266,), (1372120268,), (1372120297,), (1372120298,), (1372120299,), (1372120300,), (1372120301,), (1372120303,), (1372120322,), (1372120324,), (1372120345,), (1372120371,), (1372120394,), (1372120418,), (1372120691,), (1372120718,), (1372120747,), (1372120773,), (1372120798,), (1372120824,), (1372121355,), (1372121361,), (1372121363,), (1372121367,), (1372121371,), (1372121373,), (1372121625,), (1372121654,), (1372121678,), (1372121703,), (1372121729,), (1372121758,), (1372121969,), (1372121970,), (1372121971,), (1372121972,), (1372121973,), (1372121976,), (1372122149,), (1372122173,), (1372122176,), (1372122177,), (1372122178,), (1372122180,), (1372122196,), (1372122198,), (1372122201,), (1372122202,), (1372122205,), (1372122207,), (1372122214,), (1372122215,), (1372122216,), (1372122217,), (1372122219,), (1372122220,), (1372122237,), (1372122239,), (1372122241,), (1372122243,), (1372122245,), (1372122248,), (1372122263,), (1372122264,), (1372122266,), (1372122267,), (1372122269,), (1372122272,), (1372122292,), (1372122294,), (1372122296,), (1372122297,), (1372122298,), (1372122302,), (1372122320,), (1372122322,), (1372122323,), (1372122325,), (1372122327,), (1372122329,), (1372122345,), (1372122346,), (1372122348,), (1372122349,), (1372122351,), (1372122353,), (1372122404,), (1372122405,), (1372122406,), (1372122407,), (1372122408,), (1372122411,), (1372122425,), (1372122427,), (1372122430,), (1372122432,), (1372122434,), (1372122437,), (1372122450,), (1372122451,), (1372122453,), (1372122454,), (1372122456,), (1372122459,), (1372122474,), (1372122476,), (1372122477,), (1372122478,), (1372122480,), (1372122482,), (1372122495,), (1372122496,), (1372122498,), (1372122499,), (1372122501,), (1372122503,), (1372122519,), (1372122521,), (1372122522,), (1372122524,), (1372122527,), (1372122529,), (1372122546,), (1372122547,), (1372122548,), (1372122549,), (1372122551,), (1372122554,), (1372122566,), (1372122568,), (1372122570,), (1372122571,), (1372122573,), (1372122575,), (1372122588,), (1372122609,), (1372122610,), (1372122611,), (1372122612,), (1372122613,), (1372122616,), (1372122670,), (1372122672,), (1372122675,), (1372122677,), (1372122678,), (1372122680,), (1372122688,), (1372122689,), (1372122690,), (1372122692,), (1372122694,), (1372122696,), (1372122714,), (1372122715,), (1372122716,), (1372122717,), (1372122718,), (1372122722,), (1372122736,), (1372122737,), (1372122738,), (1372122739,), (1372122740,), (1372122742,), (1372122748,), (1372122750,), (1372122752,), (1372122754,), (1372122756,), (1372122759,), (1372122770,), (1372122772,), (1372122773,), (1372122775,), (1372122778,), (1372122780,), (1372122794,), (1372122797,), (1372122800,), (1372122802,), (1372122803,), (1372122805,), (1372122822,), (1372122824,), (1372122825,), (1372122828,), (1372122829,), (1372122831,), (1372122843,), (1372122846,), (1372122848,), (1372122850,), (1372122851,), (1372122853,), (1372122868,), (1372122871,), (1372122874,), (1372122876,), (1372122878,), (1372122881,), (1372122931,), (1372122933,), (1372122934,), (1372122936,), (1372122938,), (1372122940,), (1372122945,), (1372122946,), (1372122947,), (1372122948,), (1372122950,), (1372122953,), (1372122965,), (1372122967,), (1372122969,), (1372122970,), (1372122971,), (1372122972,), (1372122985,), (1372122987,), (1372122989,), (1372122991,), (1372122992,), (1372122993,), (1372123000,), (1372123001,), (1372123003,), (1372123005,), (1372123006,), (1372123007,), (1372123015,), (1372123016,), (1372123018,), (1372123020,), (1372123021,), (1372123022,), (1372123028,), (1372123030,), (1372123031,), (1372123033,), (1372123034,), (1372123035,), (1372123043,), (1372123045,), (1372123047,), (1372123048,), (1372123049,), (1372123050,), (1372123056,), (1372123058,), (1372123059,), (1372123061,), (1372123062,), (1372123063,), (1372123077,), (1372123080,), (1372123083,), (1372123084,), (1372123086,), (1372123087,), (1372123117,), (1372123119,), (1372123121,), (1372123122,), (1372123123,), (1372123124,), (1372123129,), (1372123130,), (1372123131,), (1372123132,), (1372123133,), (1372123134,), (1372123142,), (1372123144,), (1372123145,), (1372123146,), (1372123147,), (1372123148,), (1372123156,), (1372123157,), (1372123159,), (1372123160,), (1372123162,), (1372123164,), (1372123176,), (1372123178,), (1372123179,), (1372123181,), (1372123182,), (1372123183,), (1372123197,), (1372123198,), (1372123199,), (1372123200,), (1372123201,), (1372123202,), (1372123210,), (1372123211,), (1372123213,), (1372123214,), (1372123216,), (1372123218,), (1372123226,), (1372123228,), (1372123230,), (1372123232,), (1372123233,), (1372123235,), (1372123242,), (1372123243,), (1372123244,), (1372123245,), (1372123246,), (1372123247,), (1372123259,), (1372123261,), (1372123264,), (1372123265,), (1372123266,), (1372123267,), (1372123299,), (1372123301,), (1372123302,), (1372123304,), (1372123305,), (1372123306,), (1372123316,), (1372123318,), (1372123320,), (1372123321,), (1372123322,), (1372123324,), (1372123334,), (1372123335,), (1372123336,), (1372123337,), (1372123338,), (1372123339,), (1372123350,), (1372123351,), (1372123352,), (1372123353,), (1372123354,), (1372123355,), (1372123370,), (1372123372,), (1372123374,), (1372123375,), (1372123376,), (1372123377,), (1372123386,), (1372123387,), (1372123389,), (1372123390,), (1372123391,), (1372123392,), (1372123400,), (1372123414,), (1372123436,), (1372123464,), (1372123488,), (1372123513,), (1372123766,), (1372123783,), (1372123787,), (1372123798,), (1372123841,), (1372123889,), (1372124690,), (1372124729,), (1372124756,), (1372124782,), (1372124811,), (1372124837,), (1372124953,), (1372124955,), (1372124963,), (1372124988,), (1372125010,), (1372125017,), (1372125044,), (1372125046,), (1372125047,), (1372125049,), (1372125050,), (1372125053,), (1372125072,), (1372125075,), (1372125079,), (1372125082,), (1372125084,), (1372125086,), (1372125101,), (1372125105,), (1372125109,), (1372125110,), (1372125112,), (1372125114,), (1372125133,), (1372125135,), (1372125137,), (1372125138,), (1372125139,), (1372125142,), (1372125162,), (1372125165,), (1372125167,), (1372125169,), (1372125171,), (1372125173,), (1372125188,), (1372125189,), (1372125192,), (1372125194,), (1372125196,), (1372125198,), (1372125213,), (1372125214,), (1372125215,), (1372125216,), (1372125217,), (1372125219,), (1372125237,), (1372125240,), (1372125243,), (1372125245,), (1372125247,), (1372125249,), (1372125268,), (1372125270,), (1372125273,), (1372125274,), (1372125276,), (1372125277,), (1372125297,), (1372125299,), (1372125301,), (1372125302,), (1372125303,), (1372125304,), (1372125315,), (1372125318,), (1372125319,), (1372125321,), (1372125323,), (1372125326,), (1372125339,), (1372125342,), (1372125346,), (1372125348,), (1372125352,), (1372125354,), (1372125367,), (1372125371,), (1372125374,), (1372125376,), (1372125378,), (1372125381,), (1372125395,), (1372125399,), (1372125402,), (1372125404,), (1372125405,), (1372125406,), (1372125420,), (1372125422,), (1372125423,), (1372125426,), (1372125427,), (1372125429,), (1372125449,), (1372125477,), (1372125481,), (1372125485,), (1372125486,), (1372125487,), (1372125488,), (1372125503,), (1372125506,), (1372125508,), (1372125510,), (1372125512,), (1372125514,), (1372125529,), (1372125532,), (1372125534,), (1372125537,), (1372125539,), (1372125541,), (1372125555,), (1372125559,), (1372125562,), (1372125564,), (1372125566,), (1372125567,), (1372125577,), (1372125578,), (1372125580,), (1372125581,), (1372125582,), (1372125584,), (1372125603,), (1372125605,), (1372125607,), (1372125609,), (1372125611,), (1372125614,), (1372125629,), (1372125632,), (1372125635,), (1372125636,), (1372125637,), (1372125638,), (1372125656,), (1372125660,), (1372125665,), (1372125666,), (1372125668,), (1372125669,), (1372125682,), (1372125684,), (1372125685,), (1372125687,), (1372125688,), (1372125691,), (1372125712,), (1372125717,), (1372125719,), (1372125722,), (1372125724,), (1372125726,), (1372125737,), (1372125740,), (1372125744,), (1372125745,), (1372125747,), (1372125749,), (1372125766,), (1372125767,), (1372125769,), (1372125771,), (1372125772,), (1372125775,), (1372125787,), (1372125790,), (1372125793,), (1372125796,), (1372125798,), (1372125800,), (1372125837,), (1372125839,), (1372125843,), (1372125845,), (1372125847,), (1372125849,), (1372125859,), (1372125860,), (1372125861,), (1372125862,), (1372125863,), (1372125865,), (1372125882,), (1372125884,), (1372125886,), (1372125888,), (1372125890,), (1372125892,), (1372125906,), (1372125908,), (1372125910,), (1372125912,), (1372125913,), (1372125914,), (1372125929,), (1372125930,), (1372125931,), (1372125932,), (1372125933,), (1372125936,), (1372125954,), (1372125957,), (1372125960,), (1372125962,), (1372125964,), (1372125966,), (1372125980,), (1372125982,), (1372125985,), (1372125986,), (1372125988,), (1372125990,), (1372126006,), (1372126007,), (1372126008,), (1372126009,), (1372126011,), (1372126013,), (1372126026,), (1372126029,), (1372126032,), (1372126034,), (1372126036,), (1372126038,), (1372126051,), (1372126053,), (1372126056,), (1372126057,), (1372126059,), (1372126061,), (1372126082,), (1372126083,), (1372126084,), (1372126085,), (1372126086,), (1372126089,), (1372126095,), (1372126097,), (1372126099,), (1372126100,), (1372126102,), (1372126105,), (1372126119,), (1372126121,), (1372126124,), (1372126125,), (1372126129,), (1372126131,), (1372126143,), (1372126145,), (1372126146,), (1372126148,), (1372126150,), (1372126152,), (1372126162,), (1372126165,), (1372126168,), (1372126170,), (1372126172,), (1372126174,), (1372126190,), (1372126192,), (1372126195,), (1372126196,), (1372126197,), (1372126200,), (1372126215,), (1372126236,), (1372126238,), (1372126240,), (1372126241,), (1372126243,), (1372126245,), (1372126259,), (1372126262,), (1372126264,), (1372126266,), (1372126268,), (1372126270,), (1372126283,), (1372126284,), (1372126285,), (1372126286,), (1372126288,), (1372126291,), (1372126305,), (1372126307,), (1372126309,), (1372126310,), (1372126311,), (1372126313,), (1372126326,), (1372126329,), (1372126330,), (1372126333,), (1372126336,), (1372126339,), (1372126353,), (1372126355,), (1372126357,), (1372126358,), (1372126360,), (1372126362,), (1372126373,), (1372126377,), (1372126380,), (1372126382,), (1372126384,), (1372126386,), (1372126396,), (1372126398,), (1372126401,), (1372126402,), (1372126405,), (1372126408,), (1372126420,), (1372126421,), (1372126423,), (1372126425,), (1372126426,), (1372126430,), (1372126511,), (1372126533,), (1372126556,), (1372126579,), (1372126601,), (1372126628,), (1372126803,), (1372126804,), (1372126824,), (1372126844,), (1372126854,), (1372126856,), (1372127692,), (1372127720,), (1372127737,), (1372127754,), (1372127778,), (1372127812,), (1372127931,), (1372127932,), (1372127934,), (1372127935,), (1372127936,), (1372127938,), (1372127949,), (1372127978,), (1372127981,), (1372127984,), (1372127985,), (1372127987,), (1372127989,), (1372128004,), (1372128007,), (1372128010,), (1372128012,), (1372128016,), (1372128018,), (1372128030,), (1372128032,), (1372128034,), (1372128035,), (1372128037,), (1372128039,), (1372128053,), (1372128056,), (1372128057,), (1372128059,), (1372128060,), (1372128062,), (1372128078,), (1372128080,), (1372128083,), (1372128084,), (1372128087,), (1372128089,), (1372128106,), (1372128108,), (1372128110,), (1372128111,), (1372128112,), (1372128114,), (1372128125,), (1372128129,), (1372128131,), (1372128133,), (1372128135,), (1372128137,), (1372128150,), (1372128152,), (1372128155,), (1372128156,), (1372128159,), (1372128162,), (1372128179,), (1372128180,), (1372128182,), (1372128184,), (1372128185,), (1372128188,), (1372128201,), (1372128203,), (1372128205,), (1372128207,), (1372128208,), (1372128210,), (1372128224,), (1372128227,), (1372128230,), (1372128231,), (1372128234,), (1372128236,), (1372128245,), (1372128247,), (1372128249,), (1372128250,), (1372128251,), (1372128253,), (1372128271,), (1372128274,), (1372128276,), (1372128277,), (1372128279,), (1372128282,), (1372128292,), (1372128294,), (1372128297,), (1372128298,), (1372128300,), (1372128302,), (1372128318,), (1372128321,), (1372128323,), (1372128324,), (1372128326,), (1372128329,), (1372128339,), (1372128342,), (1372128345,), (1372128346,), (1372128349,), (1372128352,), (1372128367,), (1372128369,), (1372128371,), (1372128373,), (1372128375,), (1372128378,), (1372128397,), (1372128400,), (1372128403,), (1372128405,), (1372128406,), (1372128408,), (1372128433,), (1372128436,), (1372128437,), (1372128439,), (1372128440,), (1372128442,), (1372128459,), (1372128461,), (1372128462,), (1372128465,), (1372128467,), (1372128469,), (1372128485,), (1372128487,), (1372128488,), (1372128490,), (1372128491,), (1372128493,), (1372128507,), (1372128509,), (1372128511,), (1372128513,), (1372128514,), (1372128516,), (1372128524,), (1372128526,), (1372128530,), (1372128532,), (1372128535,), (1372128538,), (1372128549,), (1372128551,), (1372128553,), (1372128554,), (1372128556,), (1372128558,), (1372128572,), (1372128575,), (1372128576,), (1372128579,), (1372128580,), (1372128582,), (1372128597,), (1372128599,), (1372128602,), (1372128603,), (1372128606,), (1372128608,), (1372128631,), (1372128656,), (1372128689,), (1372128691,), (1372128692,), (1372128695,), (1372128698,), (1372128700,), (1372128709,), (1372128711,), (1372128712,), (1372128714,), (1372128715,), (1372128717,), (1372128728,), (1372128729,), (1372128730,), (1372128731,), (1372128732,), (1372128735,), (1372128748,), (1372128749,), (1372128750,), (1372128752,), (1372128754,), (1372128757,), (1372128775,), (1372128777,), (1372128779,), (1372128781,), (1372128783,), (1372128786,), (1372128800,), (1372128802,), (1372128803,), (1372128805,), (1372128808,), (1372128810,), (1372128825,), (1372128827,), (1372128828,), (1372128830,), (1372128831,), (1372128833,), (1372128844,), (1372128846,), (1372128848,), (1372128849,), (1372128851,), (1372128854,), (1372128870,), (1372128874,), (1372128878,), (1372128879,), (1372128882,), (1372128884,), (1372128893,), (1372128895,), (1372128896,), (1372128899,), (1372128900,), (1372128902,), (1372128926,), (1372128928,), (1372128930,), (1372128931,), (1372128932,), (1372128934,), (1372128950,), (1372128952,), (1372128955,), (1372128957,), (1372128959,), (1372128963,), (1372128969,), (1372128970,), (1372128972,), (1372128973,), (1372128975,), (1372128978,), (1372128990,), (1372128991,), (1372128992,), (1372128993,), (1372128995,), (1372128998,), (1372129008,), (1372129012,), (1372129016,), (1372129018,), (1372129021,), (1372129024,), (1372129039,), (1372129041,), (1372129042,), (1372129045,), (1372129048,), (1372129050,), (1372129069,), (1372129072,), (1372129075,), (1372129076,), (1372129078,), (1372129080,), (1372129091,), (1372129094,), (1372129096,), (1372129098,), (1372129100,), (1372129102,), (1372129114,), (1372129116,), (1372129117,), (1372129119,), (1372129120,), (1372129122,), (1372129135,), (1372129137,), (1372129139,), (1372129140,), (1372129142,), (1372129145,), (1372129169,), (1372129171,), (1372129172,), (1372129173,), (1372129175,), (1372129177,), (1372129184,), (1372129186,), (1372129188,), (1372129190,), (1372129193,), (1372129196,), (1372129211,), (1372129213,), (1372129214,), (1372129216,), (1372129219,), (1372129221,), (1372129235,), (1372129239,), (1372129243,), (1372129244,), (1372129245,), (1372129247,), (1372129261,), (1372129264,), (1372129266,), (1372129268,), (1372129269,), (1372129271,), (1372129284,), (1372129286,), (1372129288,), (1372129289,), (1372129291,), (1372129293,), (1372129489,), (1372129514,), (1372129540,), (1372129542,), (1372129544,), (1372129550,), (1372129629,), (1372129631,), (1372129632,), (1372129634,), (1372129636,), (1372129638,), (1372130482,), (1372130686,), (1372130688,), (1372130690,), (1372130692,), (1372130695,), (1372130705,), (1372130707,), (1372130708,), (1372130710,), (1372130711,), (1372130714,), (1372130722,), (1372130723,), (1372130724,), (1372130725,), (1372130727,), (1372130729,), (1372130745,), (1372130746,), (1372130747,), (1372130748,), (1372130750,), (1372130752,), (1372130764,), (1372130765,), (1372130766,), (1372130767,), (1372130769,), (1372130772,), (1372130789,), (1372130790,), (1372130792,), (1372130793,), (1372130795,), (1372130797,), (1372130810,), (1372130812,), (1372130813,), (1372130815,), (1372130817,), (1372130819,), (1372130833,), (1372130835,), (1372130836,), (1372130838,), (1372130840,), (1372130842,), (1372130856,), (1372130859,), (1372130861,), (1372130863,), (1372130865,), (1372130867,), (1372130874,), (1372130875,), (1372130876,), (1372130877,), (1372130878,), (1372130880,), (1372130910,), (1372130911,), (1372130912,), (1372130913,), (1372130914,), (1372130916,), (1372130938,), (1372130940,), (1372130941,), (1372130943,), (1372130945,), (1372130947,), (1372130951,), (1372130952,), (1372130953,), (1372130955,), (1372130957,), (1372130959,), (1372130980,), (1372130982,), (1372130983,), (1372130984,), (1372130986,), (1372130989,), (1372131005,), (1372131024,), (1372131025,), (1372131027,), (1372131028,), (1372131031,), (1372131033,), (1372131045,), (1372131046,), (1372131047,), (1372131048,), (1372131049,), (1372131052,), (1372131068,), (1372131069,), (1372131070,), (1372131071,), (1372131072,), (1372131075,), (1372131088,), (1372131090,), (1372131091,), (1372131094,), (1372131095,), (1372131097,), (1372131109,), (1372131110,), (1372131112,), (1372131114,), (1372131116,), (1372131118,), (1372131141,), (1372131144,), (1372131145,), (1372131148,), (1372131149,), (1372131151,), (1372131166,), (1372131168,), (1372131171,), (1372131173,), (1372131174,), (1372131177,), (1372131187,), (1372131188,), (1372131189,), (1372131190,), (1372131192,), (1372131196,), (1372131213,), (1372131215,), (1372131217,), (1372131218,), (1372131220,), (1372131222,), (1372131234,), (1372131259,), (1372131260,), (1372131261,), (1372131262,), (1372131264,), (1372131267,), (1372131279,), (1372131281,), (1372131283,), (1372131284,), (1372131285,), (1372131287,), (1372131303,), (1372131304,), (1372131306,), (1372131307,), (1372131309,), (1372131312,), (1372131332,), (1372131335,), (1372131336,), (1372131337,), (1372131338,), (1372131340,), (1372131355,), (1372131356,), (1372131358,), (1372131359,), (1372131360,), (1372131363,), (1372131388,), (1372131389,), (1372131391,), (1372131392,), (1372131394,), (1372131397,), (1372131413,), (1372131414,), (1372131415,), (1372131416,), (1372131418,), (1372131420,), (1372131428,), (1372131431,), (1372131432,), (1372131434,), (1372131436,), (1372131439,), (1372131455,), (1372131459,), (1372131462,), (1372131464,), (1372131467,), (1372131469,), (1372131480,), (1372131482,), (1372131484,), (1372131486,), (1372131488,), (1372131490,), (1372131511,), (1372131514,), (1372131515,), (1372131518,), (1372131520,), (1372131522,), (1372131535,), (1372131537,), (1372131539,), (1372131541,), (1372131543,), (1372131546,), (1372131557,), (1372131559,), (1372131561,), (1372131562,), (1372131563,), (1372131565,), (1372131580,), (1372131583,), (1372131586,), (1372131587,), (1372131590,), (1372131592,), (1372131606,), (1372131608,), (1372131610,), (1372131612,), (1372131613,), (1372131615,), (1372131641,), (1372131644,), (1372131646,), (1372131647,), (1372131649,), (1372131651,), (1372131667,), (1372131669,), (1372131670,), (1372131672,), (1372131673,), (1372131675,), (1372131682,), (1372131683,), (1372131685,), (1372131686,), (1372131689,), (1372131692,), (1372131708,), (1372131710,), (1372131711,), (1372131713,), (1372131714,), (1372131716,), (1372131727,), (1372131729,), (1372131731,), (1372131732,), (1372131735,), (1372131737,), (1372131756,), (1372131757,), (1372131758,), (1372131759,), (1372131760,), (1372131762,), (1372131777,), (1372131779,), (1372131780,), (1372131781,), (1372131782,), (1372131784,), (1372131799,), (1372131801,), (1372131802,), (1372131805,), (1372131807,), (1372131809,), (1372131820,), (1372131822,), (1372131824,), (1372131825,), (1372131827,), (1372131829,), (1372131848,), (1372131851,), (1372131854,), (1372131855,), (1372131857,), (1372131859,), (1372131879,), (1372131881,), (1372131883,), (1372131885,), (1372131887,), (1372131890,), (1372131912,), (1372131915,), (1372131917,), (1372131918,), (1372131920,), (1372131923,), (1372131929,), (1372131931,), (1372131933,), (1372131934,), (1372131936,), (1372131939,), (1372131956,), (1372131957,), (1372131958,), (1372131960,), (1372131962,), (1372131965,), (1372131984,), (1372132008,), (1372132011,), (1372132013,), (1372132015,), (1372132017,), (1372132019,), (1372132200,), (1372132227,), (1372132255,), (1372132283,), (1372132309,), (1372132325,), (1372132397,), (1372132399,), (1372132400,), (1372132402,), (1372132410,), (1372132443,), (1372133187,), (1372133219,), (1372133222,), (1372133225,), (1372133227,), (1372133229,), (1372133238,), (1372133240,), (1372133241,), (1372133243,), (1372133244,), (1372133246,), (1372133257,), (1372133259,), (1372133260,), (1372133261,), (1372133262,), (1372133264,), (1372133284,), (1372133285,), (1372133286,), (1372133288,), (1372133290,), (1372133293,), (1372133306,), (1372133307,), (1372133308,), (1372133309,), (1372133310,), (1372133313,), (1372133333,), (1372133336,), (1372133339,), (1372133341,), (1372133342,), (1372133344,), (1372133359,), (1372133360,), (1372133361,), (1372133363,), (1372133365,), (1372133367,), (1372133385,), (1372133388,), (1372133390,), (1372133392,), (1372133394,), (1372133395,), (1372133412,), (1372133416,), (1372133420,), (1372133421,), (1372133424,), (1372133426,), (1372133434,), (1372133435,), (1372133437,), (1372133438,), (1372133441,), (1372133443,), (1372133469,), (1372133496,), (1372133498,), (1372133500,), (1372133501,), (1372133502,), (1372133504,), (1372133513,), (1372133514,), (1372133515,), (1372133517,), (1372133519,), (1372133521,), (1372133531,), (1372133532,), (1372133533,), (1372133534,), (1372133535,), (1372133537,), (1372133554,), (1372133555,), (1372133556,), (1372133558,), (1372133560,), (1372133562,), (1372133578,), (1372133579,), (1372133580,), (1372133582,), (1372133584,), (1372133586,), (1372133606,), (1372133608,), (1372133609,), (1372133611,), (1372133612,), (1372133614,), (1372133627,), (1372133631,), (1372133633,), (1372133635,), (1372133638,), (1372133640,), (1372133653,), (1372133655,), (1372133658,), (1372133659,), (1372133662,), (1372133665,), (1372133677,), (1372133678,), (1372133679,), (1372133680,), (1372133682,), (1372133685,), (1372133707,), (1372133709,), (1372133710,), (1372133711,), (1372133712,), (1372133714,), (1372133735,), (1372133737,), (1372133740,), (1372133741,), (1372133743,), (1372133746,), (1372133762,), (1372133787,), (1372133788,), (1372133789,), (1372133790,), (1372133792,), (1372133794,), (1372133805,), (1372133806,), (1372133807,), (1372133809,), (1372133811,), (1372133813,), (1372133825,), (1372133826,), (1372133827,), (1372133828,), (1372133829,), (1372133833,), (1372133851,), (1372133853,), (1372133855,), (1372133856,), (1372133858,), (1372133860,), (1372133877,), (1372133878,), (1372133880,), (1372133881,), (1372133883,), (1372133884,), (1372133895,), (1372133897,), (1372133898,), (1372133899,), (1372133900,), (1372133902,), (1372133920,), (1372133921,), (1372133923,), (1372133924,), (1372133925,), (1372133928,), (1372133958,), (1372133960,), (1372133962,), (1372133963,), (1372133964,), (1372133966,), (1372133977,), (1372133978,), (1372133979,), (1372133981,), (1372133983,), (1372133985,), (1372133994,), (1372133996,), (1372133997,), (1372133999,), (1372134001,), (1372134004,), (1372134018,), (1372134021,), (1372134024,), (1372134025,), (1372134029,), (1372134031,), (1372134045,), (1372134048,), (1372134051,), (1372134053,), (1372134056,), (1372134058,), (1372134072,), (1372134074,), (1372134075,), (1372134077,), (1372134079,), (1372134080,), (1372134097,), (1372134100,), (1372134101,), (1372134104,), (1372134105,), (1372134107,), (1372134116,), (1372134118,), (1372134120,), (1372134121,), (1372134123,), (1372134125,), (1372134137,), (1372134138,), (1372134140,), (1372134142,), (1372134143,), (1372134145,), (1372134161,), (1372134163,), (1372134164,), (1372134166,), (1372134167,), (1372134169,), (1372134197,), (1372134200,), (1372134202,), (1372134205,), (1372134208,), (1372134212,), (1372134231,), (1372134233,), (1372134235,), (1372134236,), (1372134238,), (1372134240,), (1372134253,), (1372134255,), (1372134256,), (1372134257,), (1372134258,), (1372134260,), (1372134273,), (1372134274,), (1372134276,), (1372134277,), (1372134279,), (1372134281,), (1372134291,), (1372134293,), (1372134295,), (1372134297,), (1372134298,), (1372134300,), (1372134322,), (1372134325,), (1372134328,), (1372134329,), (1372134331,), (1372134334,), (1372134352,), (1372134355,), (1372134357,), (1372134360,), (1372134363,), (1372134365,), (1372134382,), (1372134383,), (1372134384,), (1372134385,), (1372134387,), (1372134389,), (1372134394,), (1372134396,), (1372134398,), (1372134399,), (1372134400,), (1372134402,), (1372134413,), (1372134414,), (1372134415,), (1372134416,), (1372134418,), (1372134420,), (1372134436,), (1372134437,), (1372134438,), (1372134439,), (1372134440,), (1372134442,), (1372134453,), (1372134454,), (1372134455,), (1372134456,), (1372134457,), (1372134459,), (1372134470,), (1372134471,), (1372134472,), (1372134473,), (1372134474,), (1372134476,), (1372134488,), (1372134490,), (1372134491,), (1372134492,), (1372134493,), (1372134496,), (1372134504,), (1372134505,), (1372134506,), (1372134507,), (1372134509,), (1372134510,), (1372134515,), (1372134517,), (1372134518,), (1372134519,), (1372134520,), (1372134523,), (1372134527,), (1372134529,), (1372134530,), (1372134531,), (1372134532,), (1372134534,), (1372134692,), (1372134718,), (1372134741,), (1372134765,), (1372134779,), (1372134789,), (1372134838,), (1372134859,), (1372134861,), (1372134862,), (1372134863,), (1372134864,), (1372134869,), (1372134870,), (1372134871,), (1372134872,), (1372134880,), (1372134882,), (1372134887,), (1372134889,), (1372134890,), (1372134891,), (1372134892,), (1372134895,), (1372134906,), (1372134907,), (1372134908,), (1372134909,), (1372134911,), (1372134912,), (1372134922,), (1372134923,), (1372134924,), (1372134925,), (1372134926,), (1372134928,), (1372134960,), (1372134985,), (1372135009,), (1372135034,), (1372135066,), (1372135091,), (1372135316,), (1372135317,), (1372135334,), (1372135358,), (1372135376,), (1372135378,), (1372135440,), (1372135441,), (1372135442,), (1372135443,), (1372135445,), (1372135447,), (1372135453,), (1372135454,), (1372135455,), (1372135456,), (1372135457,), (1372135459,), (1372135472,), (1372135473,), (1372135474,), (1372135475,), (1372135477,), (1372135479,), (1372135493,), (1372135494,), (1372135495,), (1372135496,), (1372135502,), (1372135504,), (1372135511,), (1372135512,), (1372135513,), (1372135514,), (1372135515,), (1372135517,), (1372135523,), (1372135524,), (1372135525,), (1372135526,), (1372135527,), (1372135529,), (1372135541,), (1372135542,), (1372135543,), (1372135547,), (1372135549,), (1372135551,), (1372135555,), (1372135556,), (1372135557,), (1372135558,), (1372135560,), (1372135561,), (1372135569,), (1372135570,), (1372135571,), (1372135572,), (1372135574,), (1372135575,), (1372135579,), (1372135580,), (1372135581,), (1372135584,), (1372135586,), (1372135588,), (1372135593,), (1372135595,), (1372135597,), (1372135598,), (1372135600,), (1372135602,), (1372135605,), (1372135606,), (1372135607,), (1372135608,), (1372135610,), (1372135612,), (1372135618,), (1372135619,), (1372135620,), (1372135622,), (1372135624,), (1372135626,), (1372135638,), (1372135639,), (1372135640,), (1372135662,), (1372135689,), (1372135715,), (1372135968,), (1372135994,), (1372136018,), (1372136043,), (1372136067,), (1372136093,), (1372136230,), (1372136236,), (1372136256,), (1372136260,), (1372136262,), (1372136263,), (1372136269,), (1372136270,), (1372136271,), (1372136272,), (1372136273,), (1372136275,), (1372136282,), (1372136283,), (1372136284,), (1372136285,), (1372136286,), (1372136288,), (1372136297,), (1372136298,), (1372136299,), (1372136300,), (1372136301,), (1372136303,), (1372136313,), (1372136314,), (1372136315,), (1372136316,), (1372136324,), (1372136351,), (1372136609,), (1372136634,), (1372136657,), (1372136681,), (1372136707,), (1372136737,), (1372136861,), (1372136871,), (1372136874,), (1372136875,), (1372136877,), (1372136879,), (1372136886,), (1372136887,), (1372136888,), (1372136889,), (1372136890,), (1372136892,), (1372136905,), (1372136906,), (1372136907,), (1372136908,), (1372136909,), (1372136911,), (1372136916,), (1372136917,), (1372136918,), (1372136919,), (1372136920,), (1372136923,), (1372136991,), (1372137015,), (1372137039,), (1372137063,), (1372137086,), (1372137112,), (1372137315,), (1372137331,), (1372137336,), (1372137342,), (1372137369,), (1372137380,), (1372137385,), (1372137569,), (1372137594,), (1372137618,), (1372137644,), (1372137668,), (1372137671,), (1372137752,), (1372137754,), (1372137755,), (1372137756,), (1372137757,), (1372137759,), (1372137766,), (1372137767,), (1372137768,), (1372137769,), (1372137770,), (1372137772,), (1372137840,), (1372137863,), (1372137890,), (1372137914,), (1372137938,), (1372137962,), (1372138158,), (1372138182,), (1372138207,), (1372138208,), (1372138210,), (1372138236,), (1372138274,), (1372138275,), (1372138276,), (1372138277,), (1372138278,), (1372138279,), (1372138282,), (1372138283,), (1372138284,), (1372138285,), (1372138286,), (1372138289,), (1372138296,), (1372138297,), (1372138298,), (1372138299,), (1372138300,), (1372138302,), (1372138308,), (1372138309,), (1372138310,), (1372138312,), (1372138316,), (1372138318,), (1372138322,), (1372138324,), (1372138325,), (1372138327,), (1372138329,), (1372138331,), (1372138340,), (1372138341,), (1372138342,), (1372138344,), (1372138346,), (1372138348,), (1372138351,), (1372138353,), (1372138354,), (1372138356,), (1372138358,), (1372138360,), (1372138369,), (1372138370,), (1372138371,), (1372138372,), (1372138374,), (1372138376,), (1372138383,), (1372138397,), (1372138398,), (1372138399,), (1372138404,), (1372138405,), (1372138407,), (1372138444,), (1372138471,), (1372138496,), (1372138520,), (1372138544,), (1372138571,), (1372138780,), (1372138781,), (1372138802,), (1372138827,), (1372138845,), (1372138847,), (1372138890,), (1372138891,), (1372138892,), (1372138893,), (1372138895,), (1372138897,), (1372138902,), (1372138903,), (1372138904,), (1372138905,), (1372138907,), (1372138909,), (1372138913,), (1372138914,), (1372138915,), (1372138916,), (1372138917,), (1372138919,), (1372138927,), (1372138929,), (1372138930,), (1372138931,), (1372138932,), (1372138934,), (1372139154,), (1372139179,), (1372139197,), (1372139198,), (1372139200,), (1372139203,), (1372139320,), (1372139321,), (1372139322,), (1372139323,), (1372139324,), (1372139326,), (1372139524,), (1372139544,), (1372139545,), (1372139546,), (1372139547,), (1372139548,), (1372139557,), (1372139558,), (1372139559,), (1372139560,), (1372139563,), (1372139564,), (1372139687,), (1372139740,), (1372139764,), (1372139788,), (1372139816,), (1372139841,), (1372139987,), (1372140029,), (1372140062,), (1372140097,), (1372140134,), (1372140160,), (1372140379,), (1372140380,), (1372140393,), (1372140418,), (1372140442,), (1372140447,), (1372140503,), (1372140504,), (1372140505,), (1372140506,), (1372140507,), (1372140510,), (1372140521,), (1372140523,), (1372140525,), (1372140526,), (1372140527,), (1372140529,), (1372140535,), (1372140536,), (1372140537,), (1372140538,), (1372140540,), (1372140542,), (1372140549,), (1372140550,), (1372140551,), (1372140552,), (1372140554,), (1372140556,), (1372140563,), (1372140564,), (1372140565,), (1372140566,), (1372140568,), (1372140570,), (1372140583,), (1372140584,), (1372140585,), (1372140588,), (1372140591,), (1372140594,), (1372140602,), (1372140603,), (1372140604,), (1372140605,), (1372140606,), (1372140608,), (1372140614,), (1372140615,), (1372140616,), (1372140617,), (1372140618,), (1372140620,), (1372140628,), (1372140629,), (1372140630,), (1372140631,), (1372140632,), (1372140634,), (1372140642,), (1372140643,), (1372140644,), (1372140645,), (1372140646,), (1372140648,), (1372140656,), (1372140657,), (1372140658,), (1372140659,), (1372140661,), (1372140663,), (1372140668,), (1372140669,), (1372140670,), (1372140671,), (1372140672,), (1372140674,), (1372140680,), (1372140681,), (1372140682,), (1372140683,), (1372140685,), (1372140687,), (1372140721,), (1372140744,), (1372140767,), (1372140791,), (1372140814,), (1372140840,), (1372141104,), (1372141129,), (1372141155,), (1372141178,), (1372141203,), (1372141232,), (1372141364,), (1372141365,), (1372141366,), (1372141367,), (1372141368,), (1372141390,), (1372141595,), (1372141603,), (1372141607,), (1372141632,), (1372141640,), (1372141642,), (1372141645,), (1372141646,), (1372141647,), (1372141648,), (1372141652,), (1372141655,), (1372141668,), (1372141701,), (1372141725,), (1372141751,), (1372141774,), (1372141849,), (1372142050,), (1372142072,), (1372142073,), (1372142074,), (1372142076,), (1372142078,), (1372142246,), (1372142247,), (1372142248,), (1372142249,), (1372142251,), (1372142253,), (1372142258,), (1372142259,), (1372142260,), (1372142261,), (1372142262,), (1372142264,), (1372142280,), (1372142281,), (1372142285,), (1372142310,), (1372142336,), (1372142363,), (1372142628,), (1372142656,), (1372142682,), (1372142706,), (1372142730,), (1372142756,), (1372143017,), (1372143019,), (1372143020,), (1372143021,), (1372143022,), (1372143025,), (1372143203,), (1372143207,), (1372143208,), (1372143222,), (1372143255,), (1372143257,), (1372143305,), (1372143306,), (1372143307,), (1372143308,), (1372143310,), (1372143312,), (1372143317,), (1372143318,), (1372143319,), (1372143320,), (1372143321,), (1372143323,), (1372143332,), (1372143333,), (1372143334,), (1372143335,), (1372143336,), (1372143338,), (1372143345,), (1372143346,), (1372143347,), (1372143349,), (1372143351,), (1372143353,), (1372143356,), (1372143357,), (1372143358,), (1372143359,), (1372143361,), (1372143363,), (1372143368,), (1372143369,), (1372143370,), (1372143371,), (1372143372,), (1372143374,), (1372143385,), (1372143386,), (1372143387,), (1372143388,), (1372143390,), (1372143391,), (1372143398,), (1372143399,), (1372143400,), (1372143401,), (1372143402,), (1372143404,), (1372143414,), (1372143416,), (1372143418,), (1372143420,), (1372143422,), (1372143424,), (1372143426,), (1372143427,), (1372143428,), (1372143430,), (1372143432,), (1372143435,), (1372143443,), (1372143444,), (1372143445,), (1372143446,), (1372143447,), (1372143449,), (1372143456,), (1372143458,), (1372143459,), (1372143460,), (1372143461,), (1372143462,), (1372143466,), (1372143468,), (1372143469,), (1372143470,), (1372143471,), (1372143473,), (1372143477,), (1372143478,), (1372143479,), (1372143480,), (1372143481,), (1372143483,), (1372143490,), (1372143492,), (1372143494,), (1372143496,), (1372143497,), (1372143499,), (1372143507,), (1372143509,), (1372143510,), (1372143511,), (1372143512,), (1372143514,), (1372143519,), (1372143520,), (1372143521,), (1372143522,), (1372143523,), (1372143525,), (1372143531,), (1372143533,), (1372143534,), (1372143535,), (1372143536,), (1372143538,), (1372143547,), (1372143548,), (1372143549,), (1372143551,), (1372143553,), (1372143555,), (1372143563,), (1372143576,), (1372143588,), (1372143589,), (1372143590,), (1372143591,), (1372143592,), (1372143594,), (1372143606,), (1372143607,), (1372143608,), (1372143609,), (1372143610,), (1372143612,), (1372143617,), (1372143618,), (1372143619,), (1372143620,), (1372143621,), (1372143623,), (1372143635,), (1372143637,), (1372143638,), (1372143639,), (1372143641,), (1372143642,), (1372143648,), (1372143649,), (1372143650,), (1372143664,), (1372143690,), (1372143714,), (1372143980,), (1372144008,), (1372144035,), (1372144061,), (1372144086,), (1372144088,), (1372144254,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14072025': {'nb_upload': 69, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24936920]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1372144254] map_info['map_portfolio_photo'] : {24936920: [1372144254, 1372144088, 1372144086, 1372144061, 1372144035, 1372144008, 1372143980, 1372143714, 1372143690, 1372143664, 1372143650, 1372143649, 1372143648, 1372143642, 1372143641, 1372143639, 1372143638, 1372143637, 1372143635, 1372143623, 1372143621, 1372143620, 1372143619, 1372143618, 1372143617, 1372143612, 1372143610, 1372143609, 1372143608, 1372143607, 1372143606, 1372143594, 1372143592, 1372143591, 1372143590, 1372143589, 1372143588, 1372143576, 1372143563, 1372143555, 1372143553, 1372143551, 1372143549, 1372143548, 1372143547, 1372143538, 1372143536, 1372143535, 1372143534, 1372143533, 1372143531, 1372143525, 1372143523, 1372143522, 1372143521, 1372143520, 1372143519, 1372143514, 1372143512, 1372143511, 1372143510, 1372143509, 1372143507, 1372143499, 1372143497, 1372143496, 1372143494, 1372143492, 1372143490]} final : True mtd_id 4302 list_pids : [1372144254] Looping around the photos to save general results len do output : 1 /24936920Didn'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, '3284567') ('4302', '24936920', '1372144254', None, None, None, None, None, '3284567') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '24936920', 'None', None, None, None, None, '3284567'), ('4302', '24936920', '1372144254', None, None, None, None, None, '3284567')] time used for this insertion : 0.01182413101196289 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.3079705238342285 time spend to save output : 0.011995553970336914 total time spend for step 5 : 4.319966077804565 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 (3284567) 2.05user 2.56system 0:09.97elapsed 46%CPU (0avgtext+0avgdata 157484maxresident)k 0inputs+3848outputs (2major+62241minor)pagefaults 0swaps