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 : 2915223 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 (3389666) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3389666) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329531 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3389666'] with mtr_portfolio_ids : ['25329531'] and first list_photo_ids : [] new path : /proc/2915223/ Name: python3 Umask: 0002 State: R (running) Tgid: 2915223 Ngid: 0 Pid: 2915223 PPid: 2915220 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2915223 NSpid: 2915223 NSpgid: 2913796 NSsid: 2913796 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99088 kB VmRSS: 99088 kB RssAnon: 59816 kB RssFile: 39272 kB RssShmem: 0 kB VmData: 865716 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 90 nonvoluntary_ctxt_switches: 171 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2915223', 'Ngid': '0', 'Pid': '2915223', 'PPid': '2915220', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2915223', 'NSpid': '2915223', 'NSpgid': '2913796', 'NSsid': '2913796', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99088 kB', 'VmRSS': '99088 kB', 'RssAnon': '59816 kB', 'RssFile': '39272 kB', 'RssShmem': '0 kB', 'VmData': '865716 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '90', 'nonvoluntary_ctxt_switches': '171'} ('datou_batch_current', '2915223', '1106964', '0', '1106964', '865716', '99088', b'', 'marlene', '3389666') 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 (25329531) 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 (3389666 ) ) 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 (25329531) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373738479, 'portfolio_id': 25329531}, {'photo_id': 1373738473, 'portfolio_id': 25329531}, {'photo_id': 1373738471, 'portfolio_id': 25329531}, {'photo_id': 1373738470, 'portfolio_id': 25329531}, {'photo_id': 1373738468, 'portfolio_id': 25329531}, {'photo_id': 1373738460, 'portfolio_id': 25329531}, {'photo_id': 1373738454, 'portfolio_id': 25329531}, {'photo_id': 1373738452, 'portfolio_id': 25329531}, {'photo_id': 1373738448, 'portfolio_id': 25329531}, {'photo_id': 1373738444, 'portfolio_id': 25329531}, {'photo_id': 1373738443, 'portfolio_id': 25329531}, {'photo_id': 1373738439, 'portfolio_id': 25329531}] map_portfolio_id_photo_id: {25329531: [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439]} ##### 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.024782180786132812 #### 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 29 17:21:28 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 (25329531) 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 : 25329531 get user id for portfolio 25329531 get sub ptf for main ptf 25329531, type 3726 and hashtags ['plastique', 'papier', 'Carton_brun', 'metal', 'mal_croppe', 'flou', 'cartonnette', 'autre_refus', 'environnement', 'Carton_gris', 'kraft', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25329531 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','Carton_brun','metal','mal_croppe','flou','cartonnette','autre_refus','environnement','Carton_gris','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25329531 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','Carton_brun','metal','mal_croppe','flou','cartonnette','autre_refus','environnement','Carton_gris','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25329531, 'sub_port_id': 25329658, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087051, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}, 'metal': {'main_port_id': 25329531, 'sub_port_id': 25329659, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087052, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}, 'flou': {'main_port_id': 25329531, 'sub_port_id': 25329660, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087053, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 25329531, 'sub_port_id': 25329662, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087054, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}, 'Carton_gris': {'main_port_id': 25329531, 'sub_port_id': 25329663, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087055, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}, 'mal_croppe': {'main_port_id': 25329531, 'sub_port_id': 25329664, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087056, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}, 'cartonnette': {'main_port_id': 25329531, 'sub_port_id': 25329666, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087057, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}, 'environnement': {'main_port_id': 25329531, 'sub_port_id': 25329667, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087058, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}, 'papier': {'main_port_id': 25329531, 'sub_port_id': 25329668, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087059, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}, 'autre_refus': {'main_port_id': 25329531, 'sub_port_id': 25329669, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087060, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}, 'plastique': {'main_port_id': 25329531, 'sub_port_id': 25329670, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087061, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}, 'Carton_brun': {'main_port_id': 25329531, 'sub_port_id': 25329671, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087062, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25329658 , 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=25329531 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 (25329658) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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 25329659 , 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=25329531 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 (25329659) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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 25329660 , 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=25329531 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 (25329660) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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 25329662 , 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=25329531 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 (25329662) result : ((1374170764,), (1374170765,), (1374170766,), (1374170767,), (1374170768,), (1374170769,), (1374170770,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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 25329663 , 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=25329531 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 (25329663) result : ((1374170773,), (1374170774,), (1374170776,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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 25329664 , 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=25329531 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 (25329664) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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 25329666 , 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=25329531 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 (25329666) result : ((1374170784,), (1374170785,), (1374170786,), (1374170787,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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 25329667 , 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=25329531 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 (25329667) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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 25329668 , 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=25329531 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 (25329668) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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 25329669 , 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=25329531 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 (25329669) result : ((1374170772,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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 25329670 , 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=25329531 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 (25329670) result : ((1374170790,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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 25329671 , 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=25329531 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 (25329671) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25329531) result : ((1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,)) 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`=25329531 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','Carton_brun','metal','mal_croppe','flou','cartonnette','autre_refus','environnement','Carton_gris','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25329531 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','Carton_brun','metal','mal_croppe','flou','cartonnette','autre_refus','environnement','Carton_gris','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25329531, 'sub_port_id': 25329673, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087063, 'last_updated_at': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}, 'metal': {'main_port_id': 25329531, 'sub_port_id': 25329674, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087064, 'last_updated_at': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}, 'flou': {'main_port_id': 25329531, 'sub_port_id': 25329675, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087065, 'last_updated_at': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25329531, 'sub_port_id': 25329676, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087066, 'last_updated_at': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}, 'Carton_gris': {'main_port_id': 25329531, 'sub_port_id': 25329677, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087067, 'last_updated_at': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}, 'mal_croppe': {'main_port_id': 25329531, 'sub_port_id': 25329678, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087068, 'last_updated_at': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}, 'cartonnette': {'main_port_id': 25329531, 'sub_port_id': 25329679, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087069, 'last_updated_at': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}, 'environnement': {'main_port_id': 25329531, 'sub_port_id': 25329680, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087070, 'last_updated_at': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}, 'papier': {'main_port_id': 25329531, 'sub_port_id': 25329681, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087071, 'last_updated_at': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}, 'autre_refus': {'main_port_id': 25329531, 'sub_port_id': 25329682, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087072, 'last_updated_at': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}, 'plastique': {'main_port_id': 25329531, 'sub_port_id': 25329683, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087073, 'last_updated_at': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 25, 13, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}, 'Carton_brun': {'main_port_id': 25329531, 'sub_port_id': 25329684, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17087074, 'last_updated_at': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 15, 17, 14), 'last_updated_at_asc': datetime.datetime(2025, 7, 25, 13, 55, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329673,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329658 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329674,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329659 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329660 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329662 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329663 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25329684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25329671 lien utilise dans velours : https://www.fotonower.com/velours/25329673,25329674,25329675,25329676,25329677,25329678,25329679,25329680,25329681,25329682,25329683,25329684?tags=kraft,metal,flou,Teint_Dans_La_Masse,Carton_gris,mal_croppe,cartonnette,environnement,papier,autre_refus,plastique,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25329531]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439] map_info['map_portfolio_photo'] : {25329531: [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439]} final : False mtd_id 4302 list_pids : [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439] Looping around the photos to save general results len do output : 1 /25329531. 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, '3389666') ('4302', '25329531', '1373738479', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738473', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738471', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738470', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738468', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738460', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738454', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738452', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738448', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738444', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738443', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738439', None, None, None, None, None, '3389666') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25329531', "{'kraft': 25329658, 'metal': 25329659, 'flou': 25329660, 'Teint_Dans_La_Masse': 25329662, 'Carton_gris': 25329663, 'mal_croppe': 25329664, 'cartonnette': 25329666, 'environnement': 25329667, 'papier': 25329668, 'autre_refus': 25329669, 'plastique': 25329670, 'Carton_brun': 25329671}", None, None, None, None, '3389666'), ('4302', '25329531', '1373738479', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738473', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738471', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738470', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738468', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738460', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738454', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738452', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738448', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738444', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738443', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738439', None, None, None, None, None, '3389666')] time used for this insertion : 0.015679121017456055 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4785137176513672 time spend to save output : 0.015974044799804688 total time spend for step 1 : 1.4944877624511719 step2:final Tue Jul 29 17:21:29 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 (25329531) 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 25329531 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373738439,1373738443,1373738444,1373738448,1373738452,1373738454,1373738460,1373738468,1373738470,1373738471,1373738473,1373738479); 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([25329531]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} new output for save of step final : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439] map_info['map_portfolio_photo'] : {25329531: [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439]} final : False mtd_id 4302 list_pids : [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439] Looping around the photos to save general results len do output : 12 /1373738479.Didn't retrieve data . /1373738473.Didn't retrieve data . /1373738471.Didn't retrieve data . /1373738470.Didn't retrieve data . /1373738468.Didn't retrieve data . /1373738460.Didn't retrieve data . /1373738454.Didn't retrieve data . /1373738452.Didn't retrieve data . /1373738448.Didn't retrieve data . /1373738444.Didn't retrieve data . /1373738443.Didn't retrieve data . /1373738439.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, '3389666') ('4302', '25329531', '1373738479', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738473', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738471', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738470', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738468', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738460', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738454', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738452', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738448', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738444', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738443', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738439', None, None, None, None, None, '3389666') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25329531', '1373738479', '0.028880963542573954', None, None, None, None, '3389666'), ('4302', '25329531', '1373738473', '0.028880963542573954', None, None, None, None, '3389666'), ('4302', '25329531', '1373738471', '0.028880963542573954', None, None, None, None, '3389666'), ('4302', '25329531', '1373738470', '0.028880963542573954', None, None, None, None, '3389666'), ('4302', '25329531', '1373738468', '0.028880963542573954', None, None, None, None, '3389666'), ('4302', '25329531', '1373738460', '0.028880963542573954', None, None, None, None, '3389666'), ('4302', '25329531', '1373738454', '0.028880963542573954', None, None, None, None, '3389666'), ('4302', '25329531', '1373738452', '0.028880963542573954', None, None, None, None, '3389666'), ('4302', '25329531', '1373738448', '0.028880963542573954', None, None, None, None, '3389666'), ('4302', '25329531', '1373738444', '0.028880963542573954', None, None, None, None, '3389666'), ('4302', '25329531', '1373738443', '0.028880963542573954', None, None, None, None, '3389666'), ('4302', '25329531', '1373738439', '0.028880963542573954', None, None, None, None, '3389666')] time used for this insertion : 0.016021728515625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09793376922607422 time spend to save output : 0.016762495040893555 total time spend for step 2 : 0.11469626426696777 step3:velours_tree Tue Jul 29 17:21:29 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 : {25329531: [{'kraft': 25329658, 'metal': 25329659, 'flou': 25329660, 'Teint_Dans_La_Masse': 25329662, 'Carton_gris': 25329663, 'mal_croppe': 25329664, 'cartonnette': 25329666, 'environnement': 25329667, 'papier': 25329668, 'autre_refus': 25329669, 'plastique': 25329670, 'Carton_brun': 25329671}]} input_args_next_step : {25329531: ()} output_args : {25329531: [{'kraft': 25329658, 'metal': 25329659, 'flou': 25329660, 'Teint_Dans_La_Masse': 25329662, 'Carton_gris': 25329663, 'mal_croppe': 25329664, 'cartonnette': 25329666, 'environnement': 25329667, 'papier': 25329668, 'autre_refus': 25329669, 'plastique': 25329670, 'Carton_brun': 25329671}]} args : 25329531 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 25329658, 'metal': 25329659, 'flou': 25329660, 'Teint_Dans_La_Masse': 25329662, 'Carton_gris': 25329663, 'mal_croppe': 25329664, 'cartonnette': 25329666, 'environnement': 25329667, 'papier': 25329668, 'autre_refus': 25329669, 'plastique': 25329670, 'Carton_brun': 25329671},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25329531) 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([25329531]) 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.48985886573791504 time spend to save output : 6.747245788574219e-05 total time spend for step 3 : 0.4899263381958008 step4:send_mail_cod Tue Jul 29 17:21:30 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 : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} input_args_next_step : {1373738479: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738479 depend.output_id : 0 input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738473 depend.output_id : 0 input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738471 depend.output_id : 0 input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738470 depend.output_id : 0 input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738468 depend.output_id : 0 input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738460 depend.output_id : 0 input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738454 depend.output_id : 0 input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738452 depend.output_id : 0 input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738448 depend.output_id : 0 input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738444 depend.output_id : 0 input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738443 depend.output_id : 0 input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ()} output_args : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',)} args : 1373738439 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {25329531: [{'kraft': 25329658, 'metal': 25329659, 'flou': 25329660, 'Teint_Dans_La_Masse': 25329662, 'Carton_gris': 25329663, 'mal_croppe': 25329664, 'cartonnette': 25329666, 'environnement': 25329667, 'papier': 25329668, 'autre_refus': 25329669, 'plastique': 25329670, 'Carton_brun': 25329671}]} input_args_next_step : {1373738479: ('0.028880963542573954',), 1373738473: ('0.028880963542573954',), 1373738471: ('0.028880963542573954',), 1373738470: ('0.028880963542573954',), 1373738468: ('0.028880963542573954',), 1373738460: ('0.028880963542573954',), 1373738454: ('0.028880963542573954',), 1373738452: ('0.028880963542573954',), 1373738448: ('0.028880963542573954',), 1373738444: ('0.028880963542573954',), 1373738443: ('0.028880963542573954',), 1373738439: ('0.028880963542573954',), 25329531: ()} output_args : {25329531: [{'kraft': 25329658, 'metal': 25329659, 'flou': 25329660, 'Teint_Dans_La_Masse': 25329662, 'Carton_gris': 25329663, 'mal_croppe': 25329664, 'cartonnette': 25329666, 'environnement': 25329667, 'papier': 25329668, 'autre_refus': 25329669, 'plastique': 25329670, 'Carton_brun': 25329671}]} args : 25329531 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.028880963542573954',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25329531) 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 (1373738479,1373738473,1373738471,1373738470,1373738468,1373738460,1373738454,1373738452,1373738448,1373738444,1373738443,1373738439) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373738439 begin to download photo : 1373738448 begin to download photo : 1373738460 begin to download photo : 1373738471 download finish for photo 1373738448 begin to download photo : 1373738452 download finish for photo 1373738439 begin to download photo : 1373738443 download finish for photo 1373738471 begin to download photo : 1373738473 download finish for photo 1373738460 begin to download photo : 1373738468 download finish for photo 1373738452 begin to download photo : 1373738454 download finish for photo 1373738443 begin to download photo : 1373738444 download finish for photo 1373738473 begin to download photo : 1373738479 download finish for photo 1373738468 begin to download photo : 1373738470 download finish for photo 1373738454 download finish for photo 1373738444 download finish for photo 1373738479 download finish for photo 1373738470 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette253296581753802491/ imagette253296591753802491/ imagette253296601753802491/ imagette253296641753802491/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25329531_29-07-2025_17_21_31.pdf 25329658 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=25329658 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253296581753802491 25329659 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=25329659 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253296591753802491 25329660 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=25329660 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253296601753802491 25329664 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=25329664 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253296641753802491 25329666 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=25329666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374170784: '1753708539_3885174_1373738470_9d96fcddb1321a062a6438f6febf0969_rle_crop_3896546508_0.png', 1374170785: '1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546556_0.png', 1374170786: '1753708539_3885174_1373738444_a4ab3c1a677f5f62fb0d686ce3ad1984_rle_crop_3896546589_0.png', 1374170787: '1753708539_3885174_1373738443_b873d961bd2704401f8b4cd1ad17bd06_rle_crop_3896546618_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/90989a6f8152d5c3427c76cd445617d1_66333670.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/b77bffe014dbdca00d46ca2a9ae86658_2274276.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/ef2e199d90d92b0211e2373b88da128f_49123521.png change filename to text .imagette253296661753802491/ imagette253296661753802491/1753708539_3885174_1373738443_b873d961bd2704401f8b4cd1ad17bd06_rle_crop_3896546618_0.png.png imagette253296661753802491/1753708539_3885174_1373738470_9d96fcddb1321a062a6438f6febf0969_rle_crop_3896546508_0.png.png imagette253296661753802491/1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546556_0.png.png imagette253296661753802491/1753708539_3885174_1373738444_a4ab3c1a677f5f62fb0d686ce3ad1984_rle_crop_3896546589_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/ef2e199d90d92b0211e2373b88da128f_85346183.png imagette253296661753802491 25329669 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=25329669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374170772: '1753708539_3885174_1373738460_c043b33f248ef913d25f82303ad63bd8_rle_crop_3896546522_0.png'} change filename to text .imagette253296691753802491/ imagette253296691753802491/1753708539_3885174_1373738460_c043b33f248ef913d25f82303ad63bd8_rle_crop_3896546522_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/a83e95d70501758e3d093487a49edebf_34735650.png imagette253296691753802491 25329670 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=25329670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374170790: '1753708539_3885174_1373738454_13e108d37d8b0f720603280fd11f3813_rle_crop_3896546534_0.png'} change filename to text .imagette253296701753802491/ imagette253296701753802491/1753708539_3885174_1373738454_13e108d37d8b0f720603280fd11f3813_rle_crop_3896546534_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/860db94af0593e846ad56e4934d9ce38_31664940.png imagette253296701753802491 25329662 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=25329662 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374170764: '1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546567_0.png', 1374170765: '1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546569_0.png', 1374170766: '1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546565_0.png', 1374170767: '1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546566_0.png', 1374170768: '1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546562_0.png', 1374170769: '1753708539_3885174_1373738444_a4ab3c1a677f5f62fb0d686ce3ad1984_rle_crop_3896546593_0.png', 1374170770: '1753708539_3885174_1373738443_b873d961bd2704401f8b4cd1ad17bd06_rle_crop_3896546622_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/5bc6e9c9c569fb39a0699b07fe92848b_48609750.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/3fedb593a059a95a266946ef0051b47e_12993350.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/af77ff3e3b8a36a63412fe8786ae0ba1_31508023.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/4b2793dc564e236c45f7124cb0d34ca7_72271305.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/2571eafbdc24d2a1105e5bda704f4a6b_9756458.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/d9b58357a670dae58d944515cd0ef24b_55353994.png change filename to text .imagette253296621753802491/ imagette253296621753802491/1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546565_0.png.png imagette253296621753802491/1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546562_0.png.png imagette253296621753802491/1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546566_0.png.png imagette253296621753802491/1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546567_0.png.png imagette253296621753802491/1753708539_3885174_1373738448_3b88298f7914e5cf07687a8a2b9b8689_rle_crop_3896546569_0.png.png imagette253296621753802491/1753708539_3885174_1373738444_a4ab3c1a677f5f62fb0d686ce3ad1984_rle_crop_3896546593_0.png.png imagette253296621753802491/1753708539_3885174_1373738443_b873d961bd2704401f8b4cd1ad17bd06_rle_crop_3896546622_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/e5838af54ba02b5c23d321ab7c98d96c_78997500.png imagette253296621753802491 25329663 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=25329663 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374170773: '1753708539_3885174_1373738460_c043b33f248ef913d25f82303ad63bd8_rle_crop_3896546524_0.png', 1374170774: '1753708539_3885174_1373738444_a4ab3c1a677f5f62fb0d686ce3ad1984_rle_crop_3896546590_0.png', 1374170776: '1753708539_3885174_1373738443_b873d961bd2704401f8b4cd1ad17bd06_rle_crop_3896546619_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/f081f3517f4ade029709515a0ec86069_93570059.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/6168acce5aa9d152babffcda7f55a4e5_66471862.png change filename to text .imagette253296631753802492/ imagette253296631753802492/1753708539_3885174_1373738460_c043b33f248ef913d25f82303ad63bd8_rle_crop_3896546524_0.png.png imagette253296631753802492/1753708539_3885174_1373738444_a4ab3c1a677f5f62fb0d686ce3ad1984_rle_crop_3896546590_0.png.png imagette253296631753802492/1753708539_3885174_1373738443_b873d961bd2704401f8b4cd1ad17bd06_rle_crop_3896546619_0.png.png imagette253296711753802492/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/6168acce5aa9d152babffcda7f55a4e5_84626919.png imagette253296631753802492 25329671 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=25329671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253296711753802492 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25329531 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25329673,25329674,25329675,25329676,25329677,25329678,25329679,25329680,25329681,25329682,25329683,25329684?tags=kraft,metal,flou,Teint_Dans_La_Masse,Carton_gris,mal_croppe,cartonnette,environnement,papier,autre_refus,plastique,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1373738479] : ('0.028880963542573954',) no score found for photo 1373738479 We are sending mail with results at report@fotonower.com args[1373738473] : ('0.028880963542573954',) no score found for photo 1373738473 We are sending mail with results at report@fotonower.com args[1373738471] : ('0.028880963542573954',) no score found for photo 1373738471 We are sending mail with results at report@fotonower.com args[1373738470] : ('0.028880963542573954',) no score found for photo 1373738470 We are sending mail with results at report@fotonower.com args[1373738468] : ('0.028880963542573954',) no score found for photo 1373738468 We are sending mail with results at report@fotonower.com args[1373738460] : ('0.028880963542573954',) no score found for photo 1373738460 We are sending mail with results at report@fotonower.com args[1373738454] : ('0.028880963542573954',) no score found for photo 1373738454 We are sending mail with results at report@fotonower.com args[1373738452] : ('0.028880963542573954',) no score found for photo 1373738452 We are sending mail with results at report@fotonower.com args[1373738448] : ('0.028880963542573954',) no score found for photo 1373738448 We are sending mail with results at report@fotonower.com args[1373738444] : ('0.028880963542573954',) no score found for photo 1373738444 We are sending mail with results at report@fotonower.com args[1373738443] : ('0.028880963542573954',) no score found for photo 1373738443 We are sending mail with results at report@fotonower.com args[1373738439] : ('0.028880963542573954',) no score found for photo 1373738439 We are sending mail with results at report@fotonower.com refus_total : 0.028880963542573954 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=25329531 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_P25329531_29-07-2025_17_21_31.pdf results_Auto_P25329531_29-07-2025_17_21_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25329531_29-07-2025_17_21_31.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','25329531','results_Auto_P25329531_29-07-2025_17_21_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25329531_29-07-2025_17_21_31.pdf','pdf','','0.14','0.028880963542573954') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25329531]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439] map_info['map_portfolio_photo'] : {25329531: [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439]} final : False mtd_id 4302 list_pids : [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439] 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, '3389666') ('4302', '25329531', '1373738479', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738473', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738471', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738470', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738468', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738460', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738454', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738452', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738448', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738444', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738443', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738439', None, None, None, None, None, '3389666') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25329531', '1373738479', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738473', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738471', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738470', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738468', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738460', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738454', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738452', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738448', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738444', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738443', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738439', None, None, None, None, None, '3389666')] time used for this insertion : 0.014076471328735352 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.6432077884674072 time spend to save output : 0.014396905899047852 total time spend for step 4 : 3.657604694366455 step5:split_time_score Tue Jul 29 17:21:34 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 : ['25329531'] 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 : [('25329531',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25329531) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373738448: {'path': 'temp/1753802490_2915223_1373738448_3b88298f7914e5cf07687a8a2b9b8689.jpg', 'extension': 'jpg'}, 1373738452: {'path': 'temp/1753802490_2915223_1373738452_3968ae8b19dacd27f35e2fe1720af499.jpg', 'extension': 'jpg'}, 1373738454: {'path': 'temp/1753802490_2915223_1373738454_13e108d37d8b0f720603280fd11f3813.jpg', 'extension': 'jpg'}, 1373738439: {'path': 'temp/1753802490_2915223_1373738439_0eedd83929fb2fd3925e98694a7dd5cc.jpg', 'extension': 'jpg'}, 1373738443: {'path': 'temp/1753802490_2915223_1373738443_b873d961bd2704401f8b4cd1ad17bd06.jpg', 'extension': 'jpg'}, 1373738444: {'path': 'temp/1753802490_2915223_1373738444_a4ab3c1a677f5f62fb0d686ce3ad1984.jpg', 'extension': 'jpg'}, 1373738471: {'path': 'temp/1753802490_2915223_1373738471_751da56e41f4bd5988af4e9a75453217.jpg', 'extension': 'jpg'}, 1373738473: {'path': 'temp/1753802490_2915223_1373738473_0d6295be08d68579afa63644f66c3278.jpg', 'extension': 'jpg'}, 1373738479: {'path': 'temp/1753802490_2915223_1373738479_285068ce911cf2b263228b0c11cf5a4b.jpg', 'extension': 'jpg'}, 1373738460: {'path': 'temp/1753802490_2915223_1373738460_c043b33f248ef913d25f82303ad63bd8.jpg', 'extension': 'jpg'}, 1373738468: {'path': 'temp/1753802490_2915223_1373738468_89610aab25414c92d2bf63266567f06a.jpg', 'extension': 'jpg'}, 1373738470: {'path': 'temp/1753802490_2915223_1373738470_9d96fcddb1321a062a6438f6febf0969.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 = 25329531; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) 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 = 25329531 group by h (('13', 12),) 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=25329531 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 (25329531) 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 (25329531) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25072025 25329531 Nombre de photos uploadées : 12 / 23040 (0%) 25072025 25329531 Nombre de photos taguées (types de déchets): 0 / 12 (0%) 25072025 25329531 Nombre de photos taguées (volume) : 0 / 12 (0%) [{'photo_id': 1373738439, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/0eedd83929fb2fd3925e98694a7dd5cc.jpg', 'username': None, 'uploaded_at': 1753441462, 'text': 'image_25072025_13_03_54_10134.jpg'}, {'photo_id': 1373738443, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/b873d961bd2704401f8b4cd1ad17bd06.jpg', 'username': None, 'uploaded_at': 1753441532, 'text': 'image_25072025_13_04_04_10147.jpg'}, {'photo_id': 1373738444, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/a4ab3c1a677f5f62fb0d686ce3ad1984.jpg', 'username': None, 'uploaded_at': 1753441532, 'text': 'image_25072025_13_04_04_10147.jpg'}, {'photo_id': 1373738448, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/25/3b88298f7914e5cf07687a8a2b9b8689.jpg', 'username': None, 'uploaded_at': 1753441602, 'text': 'image_25072025_13_05_34_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ???????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005259513854980469 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25329531, '2025-07-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-07-25' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2006529,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20619630813598633 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= 2006529 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25300799, 'dashboard_result_id': 13172245, '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_P25300799_26-07-2025_05_34_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25300845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25300846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25300847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25300848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25300849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25300850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25300851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25300852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25300853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25300854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25300855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25300856, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25301195, 'dashboard_result_id': 13172246, '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_P25301195_26-07-2025_05_35_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301210, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25301514, 'dashboard_result_id': 13172247, '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_P25301514_26-07-2025_05_35_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301533, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25301834, 'dashboard_result_id': 13172248, '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_P25301834_26-07-2025_05_35_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301871, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25302231, 'dashboard_result_id': 13172249, '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_P25302231_26-07-2025_05_35_42.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302249, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25302823, 'dashboard_result_id': 13172250, '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_P25302823_26-07-2025_05_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302860, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25303320, 'dashboard_result_id': 13172251, '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_P25303320_26-07-2025_05_36_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303368, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25303775, 'dashboard_result_id': 13172252, '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_P25303775_26-07-2025_05_37_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303807, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25304225, 'dashboard_result_id': 13172253, '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_P25304225_26-07-2025_05_37_38.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304255, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25304897, 'dashboard_result_id': 13172254, '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_P25304897_26-07-2025_05_37_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304914, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25305370, 'dashboard_result_id': 13172255, '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_P25305370_26-07-2025_05_38_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305382, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25305682, 'dashboard_result_id': 13172256, '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_P25305682_26-07-2025_05_38_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305719, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25306068, 'dashboard_result_id': 13172257, '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_P25306068_26-07-2025_05_39_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25306119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306128, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306130, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25306533, 'dashboard_result_id': 13172258, '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_P25306533_26-07-2025_05_39_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25306569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306580, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25306957, 'dashboard_result_id': 13172259, '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_P25306957_26-07-2025_05_39_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306974, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25307315, 'dashboard_result_id': 13172260, '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_P25307315_26-07-2025_05_40_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307332, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25307617, 'dashboard_result_id': 13172261, '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_P25307617_26-07-2025_05_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307671, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25308128, 'dashboard_result_id': 13172262, '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_P25308128_26-07-2025_05_40_45.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308151, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25308546, 'dashboard_result_id': 13172263, '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_P25308546_26-07-2025_05_41_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308563, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25308925, 'dashboard_result_id': 13172264, '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_P25308925_26-07-2025_05_41_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308937, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25309168, 'dashboard_result_id': 13172265, '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_P25309168_26-07-2025_05_41_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309180, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25309704, 'dashboard_result_id': 13172266, '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_P25309704_26-07-2025_05_42_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309752, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25310123, 'dashboard_result_id': 13172267, '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_P25310123_26-07-2025_05_42_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25310130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25310132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310140, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25310401, 'dashboard_result_id': 13172268, '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_P25310401_26-07-2025_05_43_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25310437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25310440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310448, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25310789, 'dashboard_result_id': 13172269, '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_P25310789_26-07-2025_05_43_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25310826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25310835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310837, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25311308, 'dashboard_result_id': 13172270, '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_P25311308_26-07-2025_05_43_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25311315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25311316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25311317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25311318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25311319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25311320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25311321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25311322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25311323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25311324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25311325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25311326, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25311733, 'dashboard_result_id': 13172271, '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_P25311733_26-07-2025_05_44_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25311740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25311741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25311742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25311743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25311744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25311745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25311746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25311747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25311748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25311749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25311750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25311751, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25312097, 'dashboard_result_id': 13172272, '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_P25312097_26-07-2025_05_44_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25312103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25312104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25312105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25312106, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25312107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25312108, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25312109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25312110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25312111, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25312112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25312113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25312114, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25312469, 'dashboard_result_id': 13172273, '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_P25312469_26-07-2025_05_45_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25312475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25312476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25312477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25312478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25312479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25312480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25312482, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25312483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25312484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25312485, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25312486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25312487, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25313240, 'dashboard_result_id': 13172274, '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_P25313240_26-07-2025_05_45_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25313242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25313243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25313244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25313245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25313246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25313247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25313248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25313249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25313250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25313251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25313252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25313253, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25313826, 'dashboard_result_id': 13172275, '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_P25313826_26-07-2025_05_45_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25313832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25313833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25313834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25313835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25313836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25313837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25313838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25313839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25313840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25313841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25313842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25313843, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25314373, 'dashboard_result_id': 13172276, '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_P25314373_26-07-2025_05_45_41.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25314381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25314382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25314383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25314384, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25314385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25314386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25314387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25314388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25314389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25314390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25314391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25314392, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25314907, 'dashboard_result_id': 13172277, '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_P25314907_26-07-2025_05_46_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25314947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25314948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25314949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25314950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25314951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25314952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25314953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25314954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25314955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25314956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25314957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25314958, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25315779, 'dashboard_result_id': 13172278, '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_P25315779_26-07-2025_05_46_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25315796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25315797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25315798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25315799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25315800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25315801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25315802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25315803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25315804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25315805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25315806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25315807, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25316346, 'dashboard_result_id': 13172279, '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_P25316346_26-07-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25316440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25316441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25316442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25316443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25316444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25316445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25316446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25316447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25316448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25316449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25316450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25316451, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25317122, 'dashboard_result_id': 13172280, '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_P25317122_26-07-2025_05_47_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25317143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25317144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25317145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25317146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25317147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25317148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25317149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25317150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25317151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25317152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25317153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25317154, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25317769, 'dashboard_result_id': 13172281, '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_P25317769_26-07-2025_05_47_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25317777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25317778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25317779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25317780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25317781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25317782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25317783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25317784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25317785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25317786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25317787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25317788, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25318571, 'dashboard_result_id': 13172282, '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_P25318571_26-07-2025_05_48_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25318614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25318615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25318616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25318617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25318618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25318619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25318620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25318621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25318622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25318623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25318624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25318625, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25319566, 'dashboard_result_id': 13172283, '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_P25319566_26-07-2025_05_48_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25319582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25319583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25319584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25319585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25319586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25319587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25319588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25319589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25319590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25319591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25319592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25319593, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25320248, 'dashboard_result_id': 13172284, '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_P25320248_26-07-2025_05_49_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25320289, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25320290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25320291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25320292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25320293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25320294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25320295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25320296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25320297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25320298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25320299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25320300, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25321128, 'dashboard_result_id': 13172285, '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_P25321128_26-07-2025_05_49_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25321142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25321143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25321144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25321145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25321146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25321148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25321149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25321150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25321152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25321153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25321154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25321155, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25322056, 'dashboard_result_id': 13172286, '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_P25322056_26-07-2025_05_49_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25322058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25322059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25322060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25322061, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25322062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25322063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25322065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25322066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25322067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25322068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25322069, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25322696, 'dashboard_result_id': 13172287, '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_P25322696_26-07-2025_05_50_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25322707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25322708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25322709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25322710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25322711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25322712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25322713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25322714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25322715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25322716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25322717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25322718, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25323538, 'dashboard_result_id': 13172288, '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_P25323538_26-07-2025_05_50_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25323591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25323592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25323593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25323594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25323595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25323596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25323597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25323598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25323599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25323600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25323601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25323602, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25324457, 'dashboard_result_id': 13172289, '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_P25324457_26-07-2025_05_50_41.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25324505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25324506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25324507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25324508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25324509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25324510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25324511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25324512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25324513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25324514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25324515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25324516, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25325112, 'dashboard_result_id': 13172290, '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_P25325112_26-07-2025_05_51_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25325127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25325128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25325129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25325130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25325131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25325132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25325133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25325134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25325135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25325136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25325137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25325138, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25325767, 'dashboard_result_id': 13172291, '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_P25325767_26-07-2025_05_51_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25325776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25325777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25325778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25325779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25325780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25325781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25325782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25325783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25325784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25325785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25325786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25325787, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25326491, 'dashboard_result_id': 13172292, '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_P25326491_26-07-2025_05_51_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25326501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25326502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25326503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25326504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25326505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25326506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25326507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25326508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25326509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25326510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25326511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25326512, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25326972, 'dashboard_result_id': 13172293, '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_P25326972_25-07-2025_17_26_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25327013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25327014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25327015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25327016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25327017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25327018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25327019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25327020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25327021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25327022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25327023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25327024, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25327552, 'dashboard_result_id': 13172294, '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_P25327552_26-07-2025_05_52_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25327558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25327559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25327560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25327561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25327562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25327563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25327564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25327565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25327567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25327568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25327569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25327570, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25328045, 'dashboard_result_id': 13172295, '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_P25328045_26-07-2025_05_53_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25328071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25328072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25328073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25328074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25328075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25328076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25328077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25328078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25328079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25328080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25328081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25328082, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25329531, 'dashboard_result_id': 13172296, '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_P25329531_26-07-2025_05_53_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25329658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25329659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25329660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25329662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25329663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25329664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25329666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25329667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25329668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25329669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25329670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25329671, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25329314, 'dashboard_result_id': 13172297, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25329394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25329395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25329396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25329397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25329398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25329399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25329400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25329401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25329402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25329403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25329404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25329405, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25329244, 'dashboard_result_id': 13172298, '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_P25329244_25-07-2025_13_52_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25329287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25329288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25329289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25329290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25329291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25329292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25329293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25329294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25329295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25329296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25329297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25329298, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25329332, 'dashboard_result_id': 13172299, '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_P25329332_26-07-2025_05_54_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25329349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25329350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25329351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25329352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25329353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25329354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25329355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25329356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25329357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25329358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25329359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25329360, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25330021, 'dashboard_result_id': 13172300, '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_P25330021_26-07-2025_05_55_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25330048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25330049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25330050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25330051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25330052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25330053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25330054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25330055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25330056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25330057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25330058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25330059, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25330731, 'dashboard_result_id': 13172301, '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_P25330731_26-07-2025_05_55_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25330749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25330750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25330751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25330752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25330753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25330754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25330755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25330756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25330757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25330758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25330759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25330760, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25331142, 'dashboard_result_id': 13172302, '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_P25331142_26-07-2025_05_55_43.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25331149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25331150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25331151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25331152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25331153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25331154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25331155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25331156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25331157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25331158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25331159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25331160, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25331499, 'dashboard_result_id': 13172303, '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_P25331499_26-07-2025_05_56_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25331545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25331546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25331547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25331548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25331549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25331550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25331551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25331552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25331553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25331554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25331555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25331556, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25332160, 'dashboard_result_id': 13172304, '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_P25332160_26-07-2025_05_56_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25332190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25332191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25332192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25332193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25332194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25332195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25332196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25332197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25332198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25332199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25332200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25332201, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25332683, 'dashboard_result_id': 13172305, '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_P25332683_26-07-2025_05_57_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25332751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25332753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25332754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25332755, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25332756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25332757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25332758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25332759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25332760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25332761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25332762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25332763, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25333343, 'dashboard_result_id': 13172306, '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_P25333343_26-07-2025_05_57_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25333380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25333381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25333382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25333383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25333384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25333385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25333386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25333387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25333388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25333389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25333390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25333391, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25333978, 'dashboard_result_id': 13172307, '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_P25333978_26-07-2025_05_58_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25333983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25333984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25333985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25333986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25333987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25333988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25333989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25333990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25333991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25333992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25333993, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25333994, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25334527, 'dashboard_result_id': 13172308, '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_P25334527_26-07-2025_05_58_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25334562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25334563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25334564, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25334565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25334566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25334567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25334568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25334569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25334570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25334571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25334572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25334573, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25335257, 'dashboard_result_id': 13172309, '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_P25335257_26-07-2025_05_59_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25335287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25335288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25335289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25335290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25335291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25335292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25335293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25335294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25335295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25335296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25335297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25335298, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25335958, 'dashboard_result_id': 13172310, '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_P25335958_26-07-2025_05_59_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25335969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25335970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25335971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25335972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25335973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25335974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25335975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25335976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25335977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25335978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25335979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25335980, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25336467, 'dashboard_result_id': 13172311, '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_P25336467_26-07-2025_06_01_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25336486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25336487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25336488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25336489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25336490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25336491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25336492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25336493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25336494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25336495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25336496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25336497, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25337010, 'dashboard_result_id': 13172312, '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_P25337010_26-07-2025_06_02_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25337029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25337030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25337031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25337032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25337033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25337034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25337035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25337036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25337037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25337038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25337039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25337040, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25337727, 'dashboard_result_id': 13172313, '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_P25337727_26-07-2025_06_02_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25337742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25337743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25337744, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25337745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25337746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25337747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25337748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25337749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25337750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25337751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25337752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25337753, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25338349, 'dashboard_result_id': 13172314, '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_P25338349_26-07-2025_06_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25338370, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25338371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25338372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25338373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25338374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25338375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25338376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25338377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25338378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25338379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25338380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25338381, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25338861, 'dashboard_result_id': 13172315, '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_P25338861_26-07-2025_06_03_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25338871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25338872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25338873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25338874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25338875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25338876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25338877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25338878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25338879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25338880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25338881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25338882, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25339392, 'dashboard_result_id': 13172316, '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_P25339392_26-07-2025_06_04_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25339423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25339424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25339425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25339426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25339427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25339428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25339429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25339430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25339431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25339432, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25339433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25339434, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25339993, 'dashboard_result_id': 13172317, '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_P25339993_26-07-2025_06_04_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25340001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25340002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25340003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25340004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25340005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25340006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25340007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25340008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25340009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25340010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25340011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25340012, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25340514, 'dashboard_result_id': 13172318, '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_P25340514_26-07-2025_06_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25340570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25340571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25340572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25340573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25340574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25340575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25340576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25340577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25340578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25340579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25340580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25340581, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25341089, 'dashboard_result_id': 13172319, '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_P25341089_26-07-2025_06_05_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25341129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25341130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25341131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25341132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25341133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25341134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25341135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25341136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25341137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25341138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25341139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25341140, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25341667, 'dashboard_result_id': 13172320, '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_P25341667_26-07-2025_06_05_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25341685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25341686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25341687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25341688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25341689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25341690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25341692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25341693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25341694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25341695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25341696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25341697, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25342303, 'dashboard_result_id': 13172321, '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_P25342303_26-07-2025_06_05_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25342328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25342329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25342330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25342331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25342332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25342333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25342334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25342335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25342336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25342337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25342339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25342340, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25342844, 'dashboard_result_id': 13172322, '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_P25342844_26-07-2025_06_06_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25342886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25342887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25342888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25342889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25342890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25342891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25342892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25342893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25342894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25342895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25342896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25342897, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25343445, 'dashboard_result_id': 13172323, '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_P25343445_26-07-2025_06_06_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25343454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25343455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25343456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25343457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25343458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25343459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25343460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25343461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25343462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25343463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25343464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25343465, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25344009, 'dashboard_result_id': 13172324, '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_P25344009_26-07-2025_06_07_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25344093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25344094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25344095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25344096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25344097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25344098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25344099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25344100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25344101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25344102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25344103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25344104, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25345036, 'dashboard_result_id': 13172325, '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_P25345036_26-07-2025_06_07_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25345041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25345042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25345043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25345044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25345045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25345046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25345047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25345048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25345049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25345050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25345051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25345052, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25345643, 'dashboard_result_id': 13172326, '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_P25345643_26-07-2025_06_07_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25345659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25345660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25345661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25345662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25345664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25345665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25345666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25345668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25345669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25345670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25345671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25345672, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25346211, 'dashboard_result_id': 13172327, '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_P25346211_26-07-2025_06_08_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25346231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25346232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25346233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25346234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25346235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25346236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25346237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25346238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25346239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25346240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25346241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25346242, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25346736, 'dashboard_result_id': 13172328, '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_P25346736_26-07-2025_06_08_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25346749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25346750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25346751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25346752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25346753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25346754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25346755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25346756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25346757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25346758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25346759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25346760, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25347414, 'dashboard_result_id': 13172329, '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_P25347414_26-07-2025_06_09_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25347441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25347442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25347443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25347444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25347445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25347446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25347447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25347448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25347449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25347450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25347451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25347452, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25347931, 'dashboard_result_id': 13172330, '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_P25347931_26-07-2025_06_09_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25347944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25347945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25347946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25347947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25347948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25347949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25347950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25347951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25347952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25347953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25347954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25347956, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25348435, 'dashboard_result_id': 13172331, '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_P25348435_26-07-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25348472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25348473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25348474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25348475, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25348476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25348477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25348478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25348479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25348480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25348481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25348482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25348483, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25349023, 'dashboard_result_id': 13172332, '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_P25349023_26-07-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25349076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25349077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25349078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25349079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25349080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25349081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25349082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25349083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25349084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25349085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25349086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25349087, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25349888, 'dashboard_result_id': 13172333, '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_P25349888_26-07-2025_06_10_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25349901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25349903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25349904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25349905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25349906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25349907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25349908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25349909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25349910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25349911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25349912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25349913, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25350622, 'dashboard_result_id': 13172334, '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_P25350622_26-07-2025_06_10_41.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25350724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25350725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25350726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25350727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25350728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25350729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25350730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25350731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25350732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25350733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25350734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25350735, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25351528, 'dashboard_result_id': 13172335, '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_P25351528_26-07-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25351539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25351540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25351541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25351542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25351543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25351544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25351545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25351546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25351547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25351548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25351549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25351550, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25352256, 'dashboard_result_id': 13172336, '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_P25352256_26-07-2025_06_11_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25352272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25352273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25352274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25352275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25352276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25352277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25352278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25352279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25352280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25352281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25352282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25352283, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25353016, 'dashboard_result_id': 13172337, '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_P25353016_26-07-2025_06_11_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25353026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25353027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25353028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25353029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25353030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25353031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25353032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25353033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25353034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25353035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25353036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25353037, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25353670, 'dashboard_result_id': 13172338, '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_P25353670_26-07-2025_06_12_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25353717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25353718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25353719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25353720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25353721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25353722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25353723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25353724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25353725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25353726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25353727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25353728, 'pht': 3726}}"}, {'dashboat_entry_day': 2006529, 'dashboard_run_id': 2018650, 'mtr_portfolio_id': 25354360, 'dashboard_result_id': 13172339, '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_P25354360_26-07-2025_06_12_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25354417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25354418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25354419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25354420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25354421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25354422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25354423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25354424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25354425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25354426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25354427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25354428, '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 = 25300799 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': 3362923, 'mtr_portfolio_id': 25300799, 'created_at': datetime.datetime(2025, 7, 26, 5, 34, 29), 'result': '0.06144091298500623', 'result_long': None, 'result_double': None}] Qualite : 0.06144091298500623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25300799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25300799_26-07-2025_05_34_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25300799 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_P25300799_26-07-2025_05_34_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25300845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25300846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25300847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25300848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25300849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25300850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25300851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25300852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25300853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25300854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25300855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25300856, 'pht': 3726}}" where mtr_portfolio_id = 25300799 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25300799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172245, 0.06144091298500623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25300799_26-07-2025_05_34_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25300845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25300846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25300847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25300848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25300849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25300850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25300851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25300852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25300853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25300854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25300855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25300856, '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 = 25301195 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': 3362924, 'mtr_portfolio_id': 25301195, 'created_at': datetime.datetime(2025, 7, 26, 5, 34, 59), 'result': '0.03881167555127673', 'result_long': None, 'result_double': None}] Qualite : 0.03881167555127673 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25301195 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301195_26-07-2025_05_35_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25301195 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_P25301195_26-07-2025_05_35_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301210, 'pht': 3726}}" where mtr_portfolio_id = 25301195 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25301195 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172246, 0.03881167555127673, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301195_26-07-2025_05_35_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301210, '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 = 25301514 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': 3362925, 'mtr_portfolio_id': 25301514, 'created_at': datetime.datetime(2025, 7, 26, 5, 35, 32), 'result': '0.019139606034351022', 'result_long': None, 'result_double': None}] Qualite : 0.019139606034351022 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25301514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301514_26-07-2025_05_35_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25301514 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_P25301514_26-07-2025_05_35_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301533, 'pht': 3726}}" where mtr_portfolio_id = 25301514 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25301514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172247, 0.019139606034351022, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301514_26-07-2025_05_35_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301533, '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 = 25301834 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': 3362926, 'mtr_portfolio_id': 25301834, 'created_at': datetime.datetime(2025, 7, 26, 5, 35, 30), 'result': '0.03829533802156911', 'result_long': None, 'result_double': None}] Qualite : 0.03829533802156911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25301834 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301834_26-07-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25301834 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_P25301834_26-07-2025_05_35_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301871, 'pht': 3726}}" where mtr_portfolio_id = 25301834 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25301834 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172248, 0.03829533802156911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25301834_26-07-2025_05_35_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25301860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25301861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25301862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25301863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25301864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25301865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25301866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25301867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25301868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25301869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25301870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25301871, '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 = 25302231 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': 3362927, 'mtr_portfolio_id': 25302231, 'created_at': datetime.datetime(2025, 7, 26, 5, 35, 39), 'result': '0.005624230662425395', 'result_long': None, 'result_double': None}] Qualite : 0.005624230662425395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25302231 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25302231_26-07-2025_05_35_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25302231 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_P25302231_26-07-2025_05_35_42.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302249, 'pht': 3726}}" where mtr_portfolio_id = 25302231 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25302231 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172249, 0.005624230662425395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25302231_26-07-2025_05_35_42.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302249, '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 = 25302823 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25302823 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25302823 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25302823 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25302823 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3362928, 'mtr_portfolio_id': 25302823, 'created_at': datetime.datetime(2025, 7, 26, 5, 35, 57), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25302823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25302823_26-07-2025_05_36_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25302823 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_P25302823_26-07-2025_05_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302860, 'pht': 3726}}" where mtr_portfolio_id = 25302823 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25302823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172250, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25302823_26-07-2025_05_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25302848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25302849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25302850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25302851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25302852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25302853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25302854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25302855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25302856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25302857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25302858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25302860, '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 = 25303320 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': 3362929, 'mtr_portfolio_id': 25303320, 'created_at': datetime.datetime(2025, 7, 26, 5, 36, 28), 'result': '0.02635307778318048', 'result_long': None, 'result_double': None}] Qualite : 0.02635307778318048 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25303320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25303320_26-07-2025_05_36_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25303320 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_P25303320_26-07-2025_05_36_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303368, 'pht': 3726}}" where mtr_portfolio_id = 25303320 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25303320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172251, 0.02635307778318048, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25303320_26-07-2025_05_36_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303368, '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 = 25303775 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': 3362930, 'mtr_portfolio_id': 25303775, 'created_at': datetime.datetime(2025, 7, 26, 5, 36, 57), 'result': '0.033164933060840764', 'result_long': None, 'result_double': None}] Qualite : 0.033164933060840764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25303775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25303775_26-07-2025_05_37_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25303775 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_P25303775_26-07-2025_05_37_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303807, 'pht': 3726}}" where mtr_portfolio_id = 25303775 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25303775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172252, 0.033164933060840764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25303775_26-07-2025_05_37_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25303784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25303786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25303789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25303791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25303793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25303795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25303797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25303800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25303802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25303804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25303806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25303807, '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 = 25304225 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': 3362931, 'mtr_portfolio_id': 25304225, 'created_at': datetime.datetime(2025, 7, 26, 5, 37, 33), 'result': '0.05102432076359494', 'result_long': None, 'result_double': None}] Qualite : 0.05102432076359494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25304225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25304225_26-07-2025_05_37_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25304225 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_P25304225_26-07-2025_05_37_38.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304255, 'pht': 3726}}" where mtr_portfolio_id = 25304225 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25304225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172253, 0.05102432076359494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25304225_26-07-2025_05_37_38.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304255, '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 = 25304897 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': 3362932, 'mtr_portfolio_id': 25304897, 'created_at': datetime.datetime(2025, 7, 26, 5, 37, 27), 'result': '0.03654670164166787', 'result_long': None, 'result_double': None}] Qualite : 0.03654670164166787 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25304897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25304897_26-07-2025_05_37_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25304897 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_P25304897_26-07-2025_05_37_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304914, 'pht': 3726}}" where mtr_portfolio_id = 25304897 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25304897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172254, 0.03654670164166787, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25304897_26-07-2025_05_37_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25304903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25304904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25304905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25304906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25304907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25304908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25304909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25304910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25304911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25304912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25304913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25304914, '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 = 25305370 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': 3362933, 'mtr_portfolio_id': 25305370, 'created_at': datetime.datetime(2025, 7, 26, 5, 37, 59), 'result': '0.05159008493946912', 'result_long': None, 'result_double': None}] Qualite : 0.05159008493946912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25305370 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25305370_26-07-2025_05_38_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25305370 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_P25305370_26-07-2025_05_38_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305382, 'pht': 3726}}" where mtr_portfolio_id = 25305370 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25305370 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172255, 0.05159008493946912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25305370_26-07-2025_05_38_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305382, '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 = 25305682 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': 3362934, 'mtr_portfolio_id': 25305682, 'created_at': datetime.datetime(2025, 7, 26, 5, 38, 27), 'result': '0.03611103297383915', 'result_long': None, 'result_double': None}] Qualite : 0.03611103297383915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25305682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25305682_26-07-2025_05_38_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25305682 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_P25305682_26-07-2025_05_38_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305719, 'pht': 3726}}" where mtr_portfolio_id = 25305682 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25305682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172256, 0.03611103297383915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25305682_26-07-2025_05_38_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25305708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25305709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25305710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25305711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25305712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25305713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25305714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25305715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25305716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25305717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25305718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25305719, '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 = 25306068 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': 3362935, 'mtr_portfolio_id': 25306068, 'created_at': datetime.datetime(2025, 7, 26, 5, 38, 59), 'result': '0.03429383944671021', 'result_long': None, 'result_double': None}] Qualite : 0.03429383944671021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25306068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306068_26-07-2025_05_39_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25306068 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_P25306068_26-07-2025_05_39_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25306119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306128, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306130, 'pht': 3726}}" where mtr_portfolio_id = 25306068 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25306068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172257, 0.03429383944671021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306068_26-07-2025_05_39_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25306119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306128, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306130, '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 = 25306533 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': 3362936, 'mtr_portfolio_id': 25306533, 'created_at': datetime.datetime(2025, 7, 26, 5, 39, 33), 'result': '0.04565147095080603', 'result_long': None, 'result_double': None}] Qualite : 0.04565147095080603 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25306533 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306533_26-07-2025_05_39_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25306533 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_P25306533_26-07-2025_05_39_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25306569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306580, 'pht': 3726}}" where mtr_portfolio_id = 25306533 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25306533 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172258, 0.04565147095080603, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306533_26-07-2025_05_39_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25306569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306580, '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 = 25306957 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': 3362937, 'mtr_portfolio_id': 25306957, 'created_at': datetime.datetime(2025, 7, 26, 5, 39, 28), 'result': '0.053393998495103616', 'result_long': None, 'result_double': None}] Qualite : 0.053393998495103616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25306957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306957_26-07-2025_05_39_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25306957 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_P25306957_26-07-2025_05_39_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306974, 'pht': 3726}}" where mtr_portfolio_id = 25306957 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25306957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172259, 0.053393998495103616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25306957_26-07-2025_05_39_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25306963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25306964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25306965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25306966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25306967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25306968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25306969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25306970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25306971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25306972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25306973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25306974, '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 = 25307315 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': 3362938, 'mtr_portfolio_id': 25307315, 'created_at': datetime.datetime(2025, 7, 26, 5, 39, 59), 'result': '0.05329555722726561', 'result_long': None, 'result_double': None}] Qualite : 0.05329555722726561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25307315 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25307315_26-07-2025_05_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25307315 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_P25307315_26-07-2025_05_40_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307332, 'pht': 3726}}" where mtr_portfolio_id = 25307315 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25307315 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172260, 0.05329555722726561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25307315_26-07-2025_05_40_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307332, '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 = 25307617 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': 3362939, 'mtr_portfolio_id': 25307617, 'created_at': datetime.datetime(2025, 7, 26, 5, 40, 30), 'result': '0.021208807506432434', 'result_long': None, 'result_double': None}] Qualite : 0.021208807506432434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25307617 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25307617_26-07-2025_05_40_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25307617 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_P25307617_26-07-2025_05_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307671, 'pht': 3726}}" where mtr_portfolio_id = 25307617 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25307617 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172261, 0.021208807506432434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25307617_26-07-2025_05_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25307660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25307661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25307662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25307663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25307664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25307665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25307666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25307667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25307668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25307669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25307670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25307671, '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 = 25308128 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': 3362940, 'mtr_portfolio_id': 25308128, 'created_at': datetime.datetime(2025, 7, 26, 5, 40, 39), 'result': '0.029641674445163586', 'result_long': None, 'result_double': None}] Qualite : 0.029641674445163586 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25308128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308128_26-07-2025_05_40_45.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25308128 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_P25308128_26-07-2025_05_40_45.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308151, 'pht': 3726}}" where mtr_portfolio_id = 25308128 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25308128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172262, 0.029641674445163586, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308128_26-07-2025_05_40_45.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308151, '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 = 25308546 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': 3362941, 'mtr_portfolio_id': 25308546, 'created_at': datetime.datetime(2025, 7, 26, 5, 41, 1), 'result': '0.03533993790279857', 'result_long': None, 'result_double': None}] Qualite : 0.03533993790279857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25308546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308546_26-07-2025_05_41_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25308546 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_P25308546_26-07-2025_05_41_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308563, 'pht': 3726}}" where mtr_portfolio_id = 25308546 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25308546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172263, 0.03533993790279857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308546_26-07-2025_05_41_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308563, '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 = 25308925 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': 3362942, 'mtr_portfolio_id': 25308925, 'created_at': datetime.datetime(2025, 7, 26, 5, 41, 27), 'result': '0.01998676401822809', 'result_long': None, 'result_double': None}] Qualite : 0.01998676401822809 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25308925 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308925_26-07-2025_05_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25308925 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_P25308925_26-07-2025_05_41_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308937, 'pht': 3726}}" where mtr_portfolio_id = 25308925 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25308925 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172264, 0.01998676401822809, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25308925_26-07-2025_05_41_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25308926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25308927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25308928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25308929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25308930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25308931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25308932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25308933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25308934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25308935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25308936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25308937, '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 = 25309168 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': 3362943, 'mtr_portfolio_id': 25309168, 'created_at': datetime.datetime(2025, 7, 26, 5, 41, 29), 'result': '0.05138412056213781', 'result_long': None, 'result_double': None}] Qualite : 0.05138412056213781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25309168 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25309168_26-07-2025_05_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25309168 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_P25309168_26-07-2025_05_41_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309180, 'pht': 3726}}" where mtr_portfolio_id = 25309168 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25309168 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172265, 0.05138412056213781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25309168_26-07-2025_05_41_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309180, '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 = 25309704 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': 3362944, 'mtr_portfolio_id': 25309704, 'created_at': datetime.datetime(2025, 7, 26, 5, 42), 'result': '0.03939937410773159', 'result_long': None, 'result_double': None}] Qualite : 0.03939937410773159 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25309704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25309704_26-07-2025_05_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25309704 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_P25309704_26-07-2025_05_42_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309752, 'pht': 3726}}" where mtr_portfolio_id = 25309704 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25309704 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172266, 0.03939937410773159, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25309704_26-07-2025_05_42_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25309741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25309742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25309743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25309744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25309745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25309746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25309747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25309748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25309749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25309750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25309751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25309752, '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 = 25310123 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': 3362945, 'mtr_portfolio_id': 25310123, 'created_at': datetime.datetime(2025, 7, 26, 5, 42, 30), 'result': '0.0336622100390566', 'result_long': None, 'result_double': None}] Qualite : 0.0336622100390566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25310123 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25310123_26-07-2025_05_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25310123 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_P25310123_26-07-2025_05_42_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25310130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25310132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310140, 'pht': 3726}}" where mtr_portfolio_id = 25310123 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25310123 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172267, 0.0336622100390566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25310123_26-07-2025_05_42_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25310130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25310132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310140, '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 = 25310401 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': 3362946, 'mtr_portfolio_id': 25310401, 'created_at': datetime.datetime(2025, 7, 26, 5, 43), 'result': '0.028998337949710774', 'result_long': None, 'result_double': None}] Qualite : 0.028998337949710774 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25310401 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25310401_26-07-2025_05_43_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25310401 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_P25310401_26-07-2025_05_43_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25310437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25310440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310448, 'pht': 3726}}" where mtr_portfolio_id = 25310401 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25310401 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172268, 0.028998337949710774, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25310401_26-07-2025_05_43_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25310437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25310440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310448, '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 = 25310789 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': 3362947, 'mtr_portfolio_id': 25310789, 'created_at': datetime.datetime(2025, 7, 26, 5, 43, 31), 'result': '0.024157978291947758', 'result_long': None, 'result_double': None}] Qualite : 0.024157978291947758 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25310789 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25310789_26-07-2025_05_43_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25310789 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_P25310789_26-07-2025_05_43_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25310826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25310835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310837, 'pht': 3726}}" where mtr_portfolio_id = 25310789 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25310789 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172269, 0.024157978291947758, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25310789_26-07-2025_05_43_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25310826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25310827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25310828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25310829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25310830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25310831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25310832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25310833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25310834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25310835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25310836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25310837, '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 = 25311308 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': 3362948, 'mtr_portfolio_id': 25311308, 'created_at': datetime.datetime(2025, 7, 26, 5, 43, 29), 'result': '0.023990469739610557', 'result_long': None, 'result_double': None}] Qualite : 0.023990469739610557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25311308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25311308_26-07-2025_05_43_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25311308 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_P25311308_26-07-2025_05_43_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25311315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25311316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25311317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25311318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25311319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25311320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25311321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25311322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25311323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25311324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25311325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25311326, 'pht': 3726}}" where mtr_portfolio_id = 25311308 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25311308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172270, 0.023990469739610557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25311308_26-07-2025_05_43_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25311315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25311316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25311317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25311318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25311319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25311320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25311321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25311322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25311323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25311324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25311325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25311326, '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 = 25311733 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': 3362949, 'mtr_portfolio_id': 25311733, 'created_at': datetime.datetime(2025, 7, 26, 5, 43, 59), 'result': '0.030456552415682427', 'result_long': None, 'result_double': None}] Qualite : 0.030456552415682427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25311733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25311733_26-07-2025_05_44_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25311733 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_P25311733_26-07-2025_05_44_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25311740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25311741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25311742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25311743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25311744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25311745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25311746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25311747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25311748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25311749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25311750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25311751, 'pht': 3726}}" where mtr_portfolio_id = 25311733 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25311733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172271, 0.030456552415682427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25311733_26-07-2025_05_44_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25311740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25311741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25311742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25311743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25311744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25311745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25311746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25311747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25311748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25311749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25311750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25311751, '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 = 25312097 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': 3362950, 'mtr_portfolio_id': 25312097, 'created_at': datetime.datetime(2025, 7, 26, 5, 44, 27), 'result': '0.05425515136117809', 'result_long': None, 'result_double': None}] Qualite : 0.05425515136117809 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25312097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25312097_26-07-2025_05_44_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25312097 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_P25312097_26-07-2025_05_44_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25312103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25312104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25312105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25312106, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25312107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25312108, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25312109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25312110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25312111, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25312112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25312113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25312114, 'pht': 3726}}" where mtr_portfolio_id = 25312097 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25312097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172272, 0.05425515136117809, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25312097_26-07-2025_05_44_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25312103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25312104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25312105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25312106, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25312107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25312108, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25312109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25312110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25312111, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25312112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25312113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25312114, '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 = 25312469 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': 3362951, 'mtr_portfolio_id': 25312469, 'created_at': datetime.datetime(2025, 7, 26, 5, 44, 59), 'result': '0.026398395105829406', 'result_long': None, 'result_double': None}] Qualite : 0.026398395105829406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25312469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25312469_26-07-2025_05_45_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25312469 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_P25312469_26-07-2025_05_45_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25312475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25312476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25312477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25312478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25312479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25312480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25312482, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25312483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25312484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25312485, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25312486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25312487, 'pht': 3726}}" where mtr_portfolio_id = 25312469 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25312469 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172273, 0.026398395105829406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25312469_26-07-2025_05_45_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25312475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25312476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25312477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25312478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25312479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25312480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25312482, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25312483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25312484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25312485, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25312486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25312487, '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 = 25313240 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': 3362952, 'mtr_portfolio_id': 25313240, 'created_at': datetime.datetime(2025, 7, 26, 5, 45, 29), 'result': '0.019007579502017924', 'result_long': None, 'result_double': None}] Qualite : 0.019007579502017924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25313240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25313240_26-07-2025_05_45_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25313240 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_P25313240_26-07-2025_05_45_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25313242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25313243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25313244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25313245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25313246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25313247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25313248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25313249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25313250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25313251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25313252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25313253, 'pht': 3726}}" where mtr_portfolio_id = 25313240 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25313240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172274, 0.019007579502017924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25313240_26-07-2025_05_45_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25313242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25313243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25313244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25313245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25313246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25313247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25313248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25313249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25313250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25313251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25313252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25313253, '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 = 25313826 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': 3362953, 'mtr_portfolio_id': 25313826, 'created_at': datetime.datetime(2025, 7, 26, 5, 45, 34), 'result': '0.04520389085541418', 'result_long': None, 'result_double': None}] Qualite : 0.04520389085541418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25313826 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25313826_26-07-2025_05_45_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25313826 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_P25313826_26-07-2025_05_45_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25313832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25313833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25313834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25313835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25313836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25313837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25313838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25313839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25313840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25313841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25313842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25313843, 'pht': 3726}}" where mtr_portfolio_id = 25313826 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25313826 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172275, 0.04520389085541418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25313826_26-07-2025_05_45_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25313832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25313833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25313834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25313835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25313836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25313837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25313838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25313839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25313840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25313841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25313842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25313843, '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 = 25314373 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': 3362954, 'mtr_portfolio_id': 25314373, 'created_at': datetime.datetime(2025, 7, 26, 5, 45, 38), 'result': '0.03110402427794923', 'result_long': None, 'result_double': None}] Qualite : 0.03110402427794923 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25314373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25314373_26-07-2025_05_45_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25314373 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_P25314373_26-07-2025_05_45_41.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25314381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25314382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25314383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25314384, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25314385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25314386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25314387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25314388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25314389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25314390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25314391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25314392, 'pht': 3726}}" where mtr_portfolio_id = 25314373 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25314373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172276, 0.03110402427794923, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25314373_26-07-2025_05_45_41.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25314381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25314382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25314383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25314384, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25314385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25314386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25314387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25314388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25314389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25314390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25314391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25314392, '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 = 25314907 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': 3362955, 'mtr_portfolio_id': 25314907, 'created_at': datetime.datetime(2025, 7, 26, 5, 45, 59), 'result': '0.030554114694122256', 'result_long': None, 'result_double': None}] Qualite : 0.030554114694122256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25314907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25314907_26-07-2025_05_46_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25314907 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_P25314907_26-07-2025_05_46_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25314947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25314948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25314949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25314950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25314951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25314952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25314953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25314954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25314955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25314956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25314957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25314958, 'pht': 3726}}" where mtr_portfolio_id = 25314907 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25314907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172277, 0.030554114694122256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25314907_26-07-2025_05_46_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25314947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25314948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25314949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25314950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25314951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25314952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25314953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25314954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25314955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25314956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25314957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25314958, '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 = 25315779 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': 3362956, 'mtr_portfolio_id': 25315779, 'created_at': datetime.datetime(2025, 7, 26, 5, 46, 27), 'result': '0.0522784749716135', 'result_long': None, 'result_double': None}] Qualite : 0.0522784749716135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25315779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25315779_26-07-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25315779 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_P25315779_26-07-2025_05_46_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25315796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25315797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25315798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25315799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25315800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25315801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25315802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25315803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25315804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25315805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25315806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25315807, 'pht': 3726}}" where mtr_portfolio_id = 25315779 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25315779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172278, 0.0522784749716135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25315779_26-07-2025_05_46_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25315796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25315797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25315798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25315799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25315800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25315801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25315802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25315803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25315804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25315805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25315806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25315807, '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 = 25316346 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': 3362957, 'mtr_portfolio_id': 25316346, 'created_at': datetime.datetime(2025, 7, 26, 5, 46, 58), 'result': '0.05837089411103566', 'result_long': None, 'result_double': None}] Qualite : 0.05837089411103566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25316346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25316346_26-07-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25316346 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_P25316346_26-07-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25316440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25316441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25316442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25316443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25316444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25316445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25316446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25316447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25316448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25316449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25316450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25316451, 'pht': 3726}}" where mtr_portfolio_id = 25316346 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25316346 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172279, 0.05837089411103566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25316346_26-07-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25316440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25316441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25316442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25316443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25316444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25316445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25316446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25316447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25316448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25316449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25316450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25316451, '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 = 25317122 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': 3362958, 'mtr_portfolio_id': 25317122, 'created_at': datetime.datetime(2025, 7, 26, 5, 47, 27), 'result': '0.03305193453328108', 'result_long': None, 'result_double': None}] Qualite : 0.03305193453328108 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25317122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25317122_26-07-2025_05_47_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25317122 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_P25317122_26-07-2025_05_47_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25317143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25317144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25317145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25317146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25317147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25317148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25317149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25317150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25317151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25317152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25317153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25317154, 'pht': 3726}}" where mtr_portfolio_id = 25317122 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25317122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172280, 0.03305193453328108, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25317122_26-07-2025_05_47_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25317143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25317144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25317145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25317146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25317147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25317148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25317149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25317150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25317151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25317152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25317153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25317154, '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 = 25317769 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': 3362959, 'mtr_portfolio_id': 25317769, 'created_at': datetime.datetime(2025, 7, 26, 5, 47, 28), 'result': '0.025678314966839172', 'result_long': None, 'result_double': None}] Qualite : 0.025678314966839172 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25317769 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25317769_26-07-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25317769 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_P25317769_26-07-2025_05_47_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25317777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25317778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25317779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25317780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25317781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25317782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25317783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25317784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25317785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25317786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25317787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25317788, 'pht': 3726}}" where mtr_portfolio_id = 25317769 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25317769 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172281, 0.025678314966839172, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25317769_26-07-2025_05_47_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25317777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25317778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25317779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25317780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25317781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25317782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25317783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25317784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25317785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25317786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25317787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25317788, '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 = 25318571 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': 3362960, 'mtr_portfolio_id': 25318571, 'created_at': datetime.datetime(2025, 7, 26, 5, 47, 58), 'result': '0.02258257559319354', 'result_long': None, 'result_double': None}] Qualite : 0.02258257559319354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25318571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25318571_26-07-2025_05_48_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25318571 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_P25318571_26-07-2025_05_48_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25318614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25318615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25318616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25318617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25318618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25318619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25318620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25318621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25318622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25318623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25318624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25318625, 'pht': 3726}}" where mtr_portfolio_id = 25318571 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25318571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172282, 0.02258257559319354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25318571_26-07-2025_05_48_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25318614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25318615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25318616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25318617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25318618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25318619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25318620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25318621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25318622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25318623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25318624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25318625, '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 = 25319566 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': 3362961, 'mtr_portfolio_id': 25319566, 'created_at': datetime.datetime(2025, 7, 26, 5, 48, 30), 'result': '0.03557354181867296', 'result_long': None, 'result_double': None}] Qualite : 0.03557354181867296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25319566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25319566_26-07-2025_05_48_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25319566 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_P25319566_26-07-2025_05_48_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25319582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25319583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25319584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25319585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25319586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25319587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25319588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25319589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25319590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25319591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25319592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25319593, 'pht': 3726}}" where mtr_portfolio_id = 25319566 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25319566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172283, 0.03557354181867296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25319566_26-07-2025_05_48_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25319582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25319583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25319584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25319585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25319586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25319587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25319588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25319589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25319590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25319591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25319592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25319593, '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 = 25320248 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': 3362962, 'mtr_portfolio_id': 25320248, 'created_at': datetime.datetime(2025, 7, 26, 5, 49, 1), 'result': '0.056954436798214644', 'result_long': None, 'result_double': None}] Qualite : 0.056954436798214644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25320248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25320248_26-07-2025_05_49_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25320248 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_P25320248_26-07-2025_05_49_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25320289, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25320290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25320291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25320292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25320293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25320294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25320295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25320296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25320297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25320298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25320299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25320300, 'pht': 3726}}" where mtr_portfolio_id = 25320248 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25320248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172284, 0.056954436798214644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25320248_26-07-2025_05_49_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25320289, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25320290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25320291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25320292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25320293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25320294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25320295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25320296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25320297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25320298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25320299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25320300, '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 = 25321128 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': 3362963, 'mtr_portfolio_id': 25321128, 'created_at': datetime.datetime(2025, 7, 26, 5, 49, 28), 'result': '0.03390108868753555', 'result_long': None, 'result_double': None}] Qualite : 0.03390108868753555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25321128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25321128_26-07-2025_05_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25321128 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_P25321128_26-07-2025_05_49_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25321142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25321143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25321144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25321145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25321146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25321148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25321149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25321150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25321152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25321153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25321154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25321155, 'pht': 3726}}" where mtr_portfolio_id = 25321128 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25321128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172285, 0.03390108868753555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25321128_26-07-2025_05_49_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25321142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25321143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25321144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25321145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25321146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25321148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25321149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25321150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25321152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25321153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25321154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25321155, '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 = 25322056 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': 3362964, 'mtr_portfolio_id': 25322056, 'created_at': datetime.datetime(2025, 7, 26, 5, 49, 29), 'result': '0.03906081174537498', 'result_long': None, 'result_double': None}] Qualite : 0.03906081174537498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25322056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25322056_26-07-2025_05_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25322056 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_P25322056_26-07-2025_05_49_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25322058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25322059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25322060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25322061, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25322062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25322063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25322065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25322066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25322067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25322068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25322069, 'pht': 3726}}" where mtr_portfolio_id = 25322056 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25322056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172286, 0.03906081174537498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25322056_26-07-2025_05_49_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25322058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25322059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25322060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25322061, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25322062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25322063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25322065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25322066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25322067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25322068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25322069, '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 = 25322696 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': 3362965, 'mtr_portfolio_id': 25322696, 'created_at': datetime.datetime(2025, 7, 26, 5, 49, 59), 'result': '0.022611195492592242', 'result_long': None, 'result_double': None}] Qualite : 0.022611195492592242 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25322696 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25322696_26-07-2025_05_50_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25322696 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_P25322696_26-07-2025_05_50_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25322707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25322708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25322709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25322710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25322711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25322712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25322713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25322714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25322715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25322716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25322717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25322718, 'pht': 3726}}" where mtr_portfolio_id = 25322696 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25322696 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172287, 0.022611195492592242, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25322696_26-07-2025_05_50_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25322707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25322708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25322709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25322710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25322711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25322712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25322713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25322714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25322715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25322716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25322717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25322718, '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 = 25323538 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': 3362966, 'mtr_portfolio_id': 25323538, 'created_at': datetime.datetime(2025, 7, 26, 5, 50, 31), 'result': '0.06559821022780321', 'result_long': None, 'result_double': None}] Qualite : 0.06559821022780321 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25323538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25323538_26-07-2025_05_50_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25323538 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_P25323538_26-07-2025_05_50_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25323591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25323592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25323593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25323594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25323595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25323596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25323597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25323598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25323599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25323600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25323601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25323602, 'pht': 3726}}" where mtr_portfolio_id = 25323538 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25323538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172288, 0.06559821022780321, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25323538_26-07-2025_05_50_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25323591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25323592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25323593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25323594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25323595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25323596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25323597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25323598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25323599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25323600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25323601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25323602, '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 = 25324457 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': 3362967, 'mtr_portfolio_id': 25324457, 'created_at': datetime.datetime(2025, 7, 26, 5, 50, 38), 'result': '0.038709762396300015', 'result_long': None, 'result_double': None}] Qualite : 0.038709762396300015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25324457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25324457_26-07-2025_05_50_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25324457 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_P25324457_26-07-2025_05_50_41.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25324505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25324506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25324507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25324508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25324509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25324510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25324511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25324512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25324513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25324514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25324515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25324516, 'pht': 3726}}" where mtr_portfolio_id = 25324457 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25324457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172289, 0.038709762396300015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25324457_26-07-2025_05_50_41.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25324505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25324506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25324507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25324508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25324509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25324510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25324511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25324512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25324513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25324514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25324515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25324516, '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 = 25325112 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': 3362968, 'mtr_portfolio_id': 25325112, 'created_at': datetime.datetime(2025, 7, 26, 5, 50, 59), 'result': '0.03879678745931433', 'result_long': None, 'result_double': None}] Qualite : 0.03879678745931433 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25325112 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25325112_26-07-2025_05_51_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25325112 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_P25325112_26-07-2025_05_51_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25325127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25325128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25325129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25325130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25325131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25325132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25325133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25325134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25325135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25325136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25325137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25325138, 'pht': 3726}}" where mtr_portfolio_id = 25325112 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25325112 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172290, 0.03879678745931433, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25325112_26-07-2025_05_51_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25325127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25325128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25325129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25325130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25325131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25325132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25325133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25325134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25325135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25325136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25325137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25325138, '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 = 25325767 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': 3362969, 'mtr_portfolio_id': 25325767, 'created_at': datetime.datetime(2025, 7, 26, 5, 51, 33), 'result': '0.03699997397456785', 'result_long': None, 'result_double': None}] Qualite : 0.03699997397456785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25325767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25325767_26-07-2025_05_51_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25325767 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_P25325767_26-07-2025_05_51_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25325776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25325777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25325778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25325779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25325780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25325781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25325782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25325783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25325784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25325785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25325786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25325787, 'pht': 3726}}" where mtr_portfolio_id = 25325767 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25325767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172291, 0.03699997397456785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25325767_26-07-2025_05_51_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25325776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25325777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25325778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25325779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25325780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25325781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25325782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25325783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25325784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25325785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25325786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25325787, '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 = 25326491 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': 3362970, 'mtr_portfolio_id': 25326491, 'created_at': datetime.datetime(2025, 7, 26, 5, 51, 29), 'result': '0.03031495057560866', 'result_long': None, 'result_double': None}] Qualite : 0.03031495057560866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25326491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25326491_26-07-2025_05_51_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25326491 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_P25326491_26-07-2025_05_51_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25326501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25326502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25326503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25326504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25326505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25326506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25326507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25326508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25326509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25326510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25326511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25326512, 'pht': 3726}}" where mtr_portfolio_id = 25326491 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25326491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172292, 0.03031495057560866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25326491_26-07-2025_05_51_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25326501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25326502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25326503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25326504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25326505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25326506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25326507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25326508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25326509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25326510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25326511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25326512, '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 = 25326972 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': 3362971, 'mtr_portfolio_id': 25326972, 'created_at': datetime.datetime(2025, 7, 26, 5, 51, 59), 'result': '0.038413873791516354', 'result_long': None, 'result_double': None}] Qualite : 0.038413873791516354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25326972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25326972_25-07-2025_17_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25326972 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_P25326972_25-07-2025_17_26_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25327013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25327014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25327015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25327016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25327017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25327018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25327019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25327020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25327021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25327022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25327023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25327024, 'pht': 3726}}" where mtr_portfolio_id = 25326972 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25326972 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172293, 0.038413873791516354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25326972_25-07-2025_17_26_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25327013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25327014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25327015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25327016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25327017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25327018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25327019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25327020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25327021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25327022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25327023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25327024, '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 = 25327552 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': 3362972, 'mtr_portfolio_id': 25327552, 'created_at': datetime.datetime(2025, 7, 26, 5, 52, 27), 'result': '0.03972033755770191', 'result_long': None, 'result_double': None}] Qualite : 0.03972033755770191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25327552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25327552_26-07-2025_05_52_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25327552 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_P25327552_26-07-2025_05_52_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25327558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25327559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25327560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25327561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25327562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25327563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25327564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25327565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25327567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25327568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25327569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25327570, 'pht': 3726}}" where mtr_portfolio_id = 25327552 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25327552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172294, 0.03972033755770191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25327552_26-07-2025_05_52_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25327558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25327559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25327560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25327561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25327562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25327563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25327564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25327565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25327567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25327568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25327569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25327570, '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 = 25328045 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': 3362973, 'mtr_portfolio_id': 25328045, 'created_at': datetime.datetime(2025, 7, 26, 5, 52, 59), 'result': '0.05337334002572949', 'result_long': None, 'result_double': None}] Qualite : 0.05337334002572949 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25328045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25328045_26-07-2025_05_53_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25328045 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_P25328045_26-07-2025_05_53_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25328071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25328072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25328073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25328074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25328075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25328076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25328077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25328078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25328079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25328080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25328081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25328082, 'pht': 3726}}" where mtr_portfolio_id = 25328045 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25328045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172295, 0.05337334002572949, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25328045_26-07-2025_05_53_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25328071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25328072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25328073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25328074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25328075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25328076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25328077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25328078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25328079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25328080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25328081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25328082, '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 = 25329531 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': 3389666, 'mtr_portfolio_id': 25329531, 'created_at': datetime.datetime(2025, 7, 29, 17, 21, 29), 'result': '0.028880963542573954', 'result_long': None, 'result_double': None}] Qualite : 0.028880963542573954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25329531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25329531_29-07-2025_17_21_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25329531 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_P25329531_29-07-2025_17_21_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25329658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25329659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25329660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25329662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25329663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25329664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25329666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25329667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25329668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25329669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25329670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25329671, 'pht': 3726}}" where mtr_portfolio_id = 25329531 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25329531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172296, 0.028880963542573954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25329531_29-07-2025_17_21_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25329658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25329659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25329660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25329662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25329663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25329664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25329666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25329667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25329668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25329669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25329670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25329671, '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 = 25329314 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25329314 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25329314 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25329314%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25329314 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25329394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25329395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25329396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25329397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25329398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25329399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25329400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25329401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25329402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25329403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25329404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25329405, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 25329314 and dashboard_run_id = 2018650 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 = 25329244 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25329244 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25329244 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25329244_25-07-2025_13_52_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25329244 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_P25329244_25-07-2025_13_52_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25329287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25329288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25329289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25329290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25329291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25329292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25329293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25329294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25329295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25329296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25329297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25329298, 'pht': 3726}}" where mtr_portfolio_id = 25329244 and dashboard_run_id = 2018650 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 = 25329332 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': 3362977, 'mtr_portfolio_id': 25329332, 'created_at': datetime.datetime(2025, 7, 26, 5, 54, 29), 'result': '0.02010264751385014', 'result_long': None, 'result_double': None}] Qualite : 0.02010264751385014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25329332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25329332_26-07-2025_05_54_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25329332 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_P25329332_26-07-2025_05_54_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25329349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25329350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25329351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25329352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25329353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25329354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25329355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25329356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25329357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25329358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25329359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25329360, 'pht': 3726}}" where mtr_portfolio_id = 25329332 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25329332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172299, 0.02010264751385014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25329332_26-07-2025_05_54_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25329349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25329350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25329351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25329352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25329353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25329354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25329355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25329356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25329357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25329358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25329359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25329360, '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 = 25330021 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': 3362978, 'mtr_portfolio_id': 25330021, 'created_at': datetime.datetime(2025, 7, 26, 5, 54, 59), 'result': '0.025855500335119377', 'result_long': None, 'result_double': None}] Qualite : 0.025855500335119377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25330021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25330021_26-07-2025_05_55_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25330021 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_P25330021_26-07-2025_05_55_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25330048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25330049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25330050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25330051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25330052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25330053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25330054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25330055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25330056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25330057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25330058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25330059, 'pht': 3726}}" where mtr_portfolio_id = 25330021 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25330021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172300, 0.025855500335119377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25330021_26-07-2025_05_55_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25330048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25330049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25330050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25330051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25330052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25330053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25330054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25330055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25330056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25330057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25330058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25330059, '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 = 25330731 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': 3362979, 'mtr_portfolio_id': 25330731, 'created_at': datetime.datetime(2025, 7, 26, 5, 55, 31), 'result': '0.027704105054053768', 'result_long': None, 'result_double': None}] Qualite : 0.027704105054053768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25330731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25330731_26-07-2025_05_55_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25330731 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_P25330731_26-07-2025_05_55_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25330749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25330750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25330751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25330752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25330753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25330754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25330755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25330756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25330757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25330758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25330759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25330760, 'pht': 3726}}" where mtr_portfolio_id = 25330731 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25330731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172301, 0.027704105054053768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25330731_26-07-2025_05_55_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25330749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25330750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25330751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25330752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25330753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25330754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25330755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25330756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25330757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25330758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25330759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25330760, '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 = 25331142 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': 3362980, 'mtr_portfolio_id': 25331142, 'created_at': datetime.datetime(2025, 7, 26, 5, 55, 39), 'result': '0.04449808232097703', 'result_long': None, 'result_double': None}] Qualite : 0.04449808232097703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25331142 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25331142_26-07-2025_05_55_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25331142 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_P25331142_26-07-2025_05_55_43.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25331149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25331150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25331151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25331152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25331153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25331154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25331155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25331156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25331157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25331158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25331159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25331160, 'pht': 3726}}" where mtr_portfolio_id = 25331142 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25331142 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172302, 0.04449808232097703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25331142_26-07-2025_05_55_43.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25331149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25331150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25331151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25331152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25331153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25331154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25331155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25331156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25331157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25331158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25331159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25331160, '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 = 25331499 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': 3362981, 'mtr_portfolio_id': 25331499, 'created_at': datetime.datetime(2025, 7, 26, 5, 56), 'result': '0.026918293780055474', 'result_long': None, 'result_double': None}] Qualite : 0.026918293780055474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25331499 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25331499_26-07-2025_05_56_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25331499 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_P25331499_26-07-2025_05_56_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25331545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25331546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25331547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25331548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25331549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25331550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25331551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25331552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25331553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25331554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25331555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25331556, 'pht': 3726}}" where mtr_portfolio_id = 25331499 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25331499 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172303, 0.026918293780055474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25331499_26-07-2025_05_56_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25331545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25331546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25331547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25331548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25331549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25331550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25331551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25331552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25331553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25331554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25331555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25331556, '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 = 25332160 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': 3362982, 'mtr_portfolio_id': 25332160, 'created_at': datetime.datetime(2025, 7, 26, 5, 56, 28), 'result': '0.03674513129623685', 'result_long': None, 'result_double': None}] Qualite : 0.03674513129623685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25332160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25332160_26-07-2025_05_56_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25332160 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_P25332160_26-07-2025_05_56_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25332190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25332191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25332192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25332193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25332194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25332195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25332196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25332197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25332198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25332199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25332200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25332201, 'pht': 3726}}" where mtr_portfolio_id = 25332160 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25332160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172304, 0.03674513129623685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25332160_26-07-2025_05_56_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25332190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25332191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25332192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25332193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25332194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25332195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25332196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25332197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25332198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25332199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25332200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25332201, '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 = 25332683 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': 3362983, 'mtr_portfolio_id': 25332683, 'created_at': datetime.datetime(2025, 7, 26, 5, 56, 58), 'result': '0.032580407026431016', 'result_long': None, 'result_double': None}] Qualite : 0.032580407026431016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25332683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25332683_26-07-2025_05_57_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25332683 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_P25332683_26-07-2025_05_57_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25332751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25332753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25332754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25332755, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25332756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25332757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25332758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25332759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25332760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25332761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25332762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25332763, 'pht': 3726}}" where mtr_portfolio_id = 25332683 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25332683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172305, 0.032580407026431016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25332683_26-07-2025_05_57_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25332751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25332753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25332754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25332755, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25332756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25332757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25332758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25332759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25332760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25332761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25332762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25332763, '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 = 25333343 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': 3362984, 'mtr_portfolio_id': 25333343, 'created_at': datetime.datetime(2025, 7, 26, 5, 57, 30), 'result': '0.030887274926148886', 'result_long': None, 'result_double': None}] Qualite : 0.030887274926148886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25333343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25333343_26-07-2025_05_57_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25333343 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_P25333343_26-07-2025_05_57_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25333380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25333381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25333382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25333383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25333384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25333385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25333386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25333387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25333388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25333389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25333390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25333391, 'pht': 3726}}" where mtr_portfolio_id = 25333343 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25333343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172306, 0.030887274926148886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25333343_26-07-2025_05_57_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25333380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25333381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25333382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25333383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25333384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25333385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25333386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25333387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25333388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25333389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25333390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25333391, '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 = 25333978 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': 3362985, 'mtr_portfolio_id': 25333978, 'created_at': datetime.datetime(2025, 7, 26, 5, 57, 59), 'result': '0.03810769892225897', 'result_long': None, 'result_double': None}] Qualite : 0.03810769892225897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25333978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25333978_26-07-2025_05_58_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25333978 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_P25333978_26-07-2025_05_58_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25333983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25333984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25333985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25333986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25333987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25333988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25333989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25333990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25333991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25333992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25333993, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25333994, 'pht': 3726}}" where mtr_portfolio_id = 25333978 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25333978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172307, 0.03810769892225897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25333978_26-07-2025_05_58_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25333983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25333984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25333985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25333986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25333987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25333988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25333989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25333990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25333991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25333992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25333993, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25333994, '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 = 25334527 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': 3362986, 'mtr_portfolio_id': 25334527, 'created_at': datetime.datetime(2025, 7, 26, 5, 58, 31), 'result': '0.04747260543329689', 'result_long': None, 'result_double': None}] Qualite : 0.04747260543329689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25334527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25334527_26-07-2025_05_58_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25334527 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_P25334527_26-07-2025_05_58_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25334562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25334563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25334564, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25334565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25334566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25334567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25334568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25334569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25334570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25334571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25334572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25334573, 'pht': 3726}}" where mtr_portfolio_id = 25334527 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25334527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172308, 0.04747260543329689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25334527_26-07-2025_05_58_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25334562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25334563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25334564, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25334565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25334566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25334567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25334568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25334569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25334570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25334571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25334572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25334573, '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 = 25335257 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': 3362987, 'mtr_portfolio_id': 25335257, 'created_at': datetime.datetime(2025, 7, 26, 5, 58, 59), 'result': '0.04109284044317747', 'result_long': None, 'result_double': None}] Qualite : 0.04109284044317747 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25335257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25335257_26-07-2025_05_59_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25335257 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_P25335257_26-07-2025_05_59_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25335287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25335288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25335289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25335290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25335291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25335292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25335293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25335294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25335295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25335296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25335297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25335298, 'pht': 3726}}" where mtr_portfolio_id = 25335257 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25335257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172309, 0.04109284044317747, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25335257_26-07-2025_05_59_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25335287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25335288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25335289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25335290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25335291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25335292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25335293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25335294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25335295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25335296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25335297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25335298, '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 = 25335958 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': 3362988, 'mtr_portfolio_id': 25335958, 'created_at': datetime.datetime(2025, 7, 26, 5, 59, 28), 'result': '0.02413461880190082', 'result_long': None, 'result_double': None}] Qualite : 0.02413461880190082 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25335958 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25335958_26-07-2025_05_59_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25335958 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_P25335958_26-07-2025_05_59_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25335969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25335970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25335971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25335972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25335973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25335974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25335975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25335976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25335977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25335978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25335979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25335980, 'pht': 3726}}" where mtr_portfolio_id = 25335958 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25335958 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172310, 0.02413461880190082, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25335958_26-07-2025_05_59_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25335969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25335970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25335971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25335972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25335973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25335974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25335975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25335976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25335977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25335978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25335979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25335980, '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 = 25336467 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': 3362989, 'mtr_portfolio_id': 25336467, 'created_at': datetime.datetime(2025, 7, 26, 6, 1, 29), 'result': '0.027116426300404464', 'result_long': None, 'result_double': None}] Qualite : 0.027116426300404464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25336467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25336467_26-07-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25336467 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_P25336467_26-07-2025_06_01_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25336486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25336487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25336488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25336489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25336490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25336491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25336492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25336493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25336494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25336495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25336496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25336497, 'pht': 3726}}" where mtr_portfolio_id = 25336467 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25336467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172311, 0.027116426300404464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25336467_26-07-2025_06_01_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25336486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25336487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25336488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25336489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25336490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25336491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25336492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25336493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25336494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25336495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25336496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25336497, '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 = 25337010 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': 3362990, 'mtr_portfolio_id': 25337010, 'created_at': datetime.datetime(2025, 7, 26, 6, 1, 59), 'result': '0.03691329347962189', 'result_long': None, 'result_double': None}] Qualite : 0.03691329347962189 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25337010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25337010_26-07-2025_06_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25337010 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_P25337010_26-07-2025_06_02_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25337029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25337030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25337031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25337032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25337033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25337034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25337035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25337036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25337037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25337038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25337039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25337040, 'pht': 3726}}" where mtr_portfolio_id = 25337010 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25337010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172312, 0.03691329347962189, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25337010_26-07-2025_06_02_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25337029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25337030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25337031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25337032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25337033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25337034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25337035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25337036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25337037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25337038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25337039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25337040, '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 = 25337727 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': 3362991, 'mtr_portfolio_id': 25337727, 'created_at': datetime.datetime(2025, 7, 26, 6, 2, 29), 'result': '0.06334319945595869', 'result_long': None, 'result_double': None}] Qualite : 0.06334319945595869 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25337727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25337727_26-07-2025_06_02_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25337727 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_P25337727_26-07-2025_06_02_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25337742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25337743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25337744, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25337745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25337746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25337747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25337748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25337749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25337750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25337751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25337752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25337753, 'pht': 3726}}" where mtr_portfolio_id = 25337727 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25337727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172313, 0.06334319945595869, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25337727_26-07-2025_06_02_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25337742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25337743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25337744, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25337745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25337746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25337747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25337748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25337749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25337750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25337751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25337752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25337753, '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 = 25338349 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': 3362992, 'mtr_portfolio_id': 25338349, 'created_at': datetime.datetime(2025, 7, 26, 6, 3), 'result': '0.055661678318789536', 'result_long': None, 'result_double': None}] Qualite : 0.055661678318789536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25338349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25338349_26-07-2025_06_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25338349 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_P25338349_26-07-2025_06_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25338370, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25338371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25338372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25338373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25338374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25338375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25338376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25338377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25338378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25338379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25338380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25338381, 'pht': 3726}}" where mtr_portfolio_id = 25338349 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25338349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172314, 0.055661678318789536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25338349_26-07-2025_06_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25338370, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25338371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25338372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25338373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25338374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25338375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25338376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25338377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25338378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25338379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25338380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25338381, '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 = 25338861 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': 3362993, 'mtr_portfolio_id': 25338861, 'created_at': datetime.datetime(2025, 7, 26, 6, 3, 30), 'result': '0.08233683097762301', 'result_long': None, 'result_double': None}] Qualite : 0.08233683097762301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25338861 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25338861_26-07-2025_06_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25338861 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_P25338861_26-07-2025_06_03_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25338871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25338872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25338873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25338874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25338875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25338876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25338877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25338878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25338879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25338880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25338881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25338882, 'pht': 3726}}" where mtr_portfolio_id = 25338861 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25338861 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172315, 0.08233683097762301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25338861_26-07-2025_06_03_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25338871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25338872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25338873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25338874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25338875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25338876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25338877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25338878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25338879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25338880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25338881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25338882, '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 = 25339392 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': 3362994, 'mtr_portfolio_id': 25339392, 'created_at': datetime.datetime(2025, 7, 26, 6, 3, 57), 'result': '0.04822819984237329', 'result_long': None, 'result_double': None}] Qualite : 0.04822819984237329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25339392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25339392_26-07-2025_06_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25339392 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_P25339392_26-07-2025_06_04_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25339423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25339424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25339425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25339426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25339427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25339428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25339429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25339430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25339431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25339432, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25339433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25339434, 'pht': 3726}}" where mtr_portfolio_id = 25339392 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25339392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172316, 0.04822819984237329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25339392_26-07-2025_06_04_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25339423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25339424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25339425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25339426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25339427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25339428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25339429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25339430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25339431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25339432, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25339433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25339434, '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 = 25339993 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': 3362995, 'mtr_portfolio_id': 25339993, 'created_at': datetime.datetime(2025, 7, 26, 6, 4, 28), 'result': '0.021924795127926253', 'result_long': None, 'result_double': None}] Qualite : 0.021924795127926253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25339993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25339993_26-07-2025_06_04_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25339993 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_P25339993_26-07-2025_06_04_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25340001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25340002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25340003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25340004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25340005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25340006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25340007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25340008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25340009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25340010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25340011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25340012, 'pht': 3726}}" where mtr_portfolio_id = 25339993 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25339993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172317, 0.021924795127926253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25339993_26-07-2025_06_04_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25340001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25340002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25340003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25340004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25340005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25340006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25340007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25340008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25340009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25340010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25340011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25340012, '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 = 25340514 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': 3362996, 'mtr_portfolio_id': 25340514, 'created_at': datetime.datetime(2025, 7, 26, 6, 4, 58), 'result': '0.0400791832861021', 'result_long': None, 'result_double': None}] Qualite : 0.0400791832861021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25340514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25340514_26-07-2025_06_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25340514 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_P25340514_26-07-2025_06_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25340570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25340571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25340572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25340573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25340574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25340575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25340576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25340577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25340578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25340579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25340580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25340581, 'pht': 3726}}" where mtr_portfolio_id = 25340514 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25340514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172318, 0.0400791832861021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25340514_26-07-2025_06_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25340570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25340571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25340572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25340573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25340574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25340575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25340576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25340577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25340578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25340579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25340580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25340581, '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 = 25341089 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': 3362997, 'mtr_portfolio_id': 25341089, 'created_at': datetime.datetime(2025, 7, 26, 6, 5, 28), 'result': '0.04592433776181099', 'result_long': None, 'result_double': None}] Qualite : 0.04592433776181099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25341089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25341089_26-07-2025_06_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25341089 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_P25341089_26-07-2025_06_05_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25341129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25341130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25341131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25341132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25341133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25341134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25341135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25341136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25341137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25341138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25341139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25341140, 'pht': 3726}}" where mtr_portfolio_id = 25341089 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25341089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172319, 0.04592433776181099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25341089_26-07-2025_06_05_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25341129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25341130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25341131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25341132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25341133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25341134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25341135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25341136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25341137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25341138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25341139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25341140, '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 = 25341667 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': 3362998, 'mtr_portfolio_id': 25341667, 'created_at': datetime.datetime(2025, 7, 26, 6, 5, 28), 'result': '0.03792645168478941', 'result_long': None, 'result_double': None}] Qualite : 0.03792645168478941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25341667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25341667_26-07-2025_06_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25341667 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_P25341667_26-07-2025_06_05_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25341685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25341686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25341687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25341688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25341689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25341690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25341692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25341693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25341694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25341695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25341696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25341697, 'pht': 3726}}" where mtr_portfolio_id = 25341667 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25341667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172320, 0.03792645168478941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25341667_26-07-2025_06_05_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25341685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25341686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25341687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25341688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25341689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25341690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25341692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25341693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25341694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25341695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25341696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25341697, '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 = 25342303 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': 3362999, 'mtr_portfolio_id': 25342303, 'created_at': datetime.datetime(2025, 7, 26, 6, 5, 37), 'result': '0.03133750021151114', 'result_long': None, 'result_double': None}] Qualite : 0.03133750021151114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25342303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25342303_26-07-2025_06_05_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25342303 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_P25342303_26-07-2025_06_05_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25342328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25342329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25342330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25342331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25342332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25342333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25342334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25342335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25342336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25342337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25342339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25342340, 'pht': 3726}}" where mtr_portfolio_id = 25342303 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25342303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172321, 0.03133750021151114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25342303_26-07-2025_06_05_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25342328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25342329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25342330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25342331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25342332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25342333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25342334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25342335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25342336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25342337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25342339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25342340, '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 = 25342844 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': 3363000, 'mtr_portfolio_id': 25342844, 'created_at': datetime.datetime(2025, 7, 26, 6, 5, 57), 'result': '0.09140154889296888', 'result_long': None, 'result_double': None}] Qualite : 0.09140154889296888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25342844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25342844_26-07-2025_06_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25342844 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_P25342844_26-07-2025_06_06_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25342886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25342887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25342888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25342889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25342890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25342891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25342892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25342893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25342894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25342895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25342896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25342897, 'pht': 3726}}" where mtr_portfolio_id = 25342844 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25342844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172322, 0.09140154889296888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25342844_26-07-2025_06_06_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25342886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25342887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25342888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25342889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25342890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25342891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25342892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25342893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25342894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25342895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25342896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25342897, '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 = 25343445 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': 3363001, 'mtr_portfolio_id': 25343445, 'created_at': datetime.datetime(2025, 7, 26, 6, 6, 29), 'result': '0.05955037874891124', 'result_long': None, 'result_double': None}] Qualite : 0.05955037874891124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25343445 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25343445_26-07-2025_06_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25343445 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_P25343445_26-07-2025_06_06_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25343454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25343455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25343456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25343457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25343458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25343459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25343460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25343461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25343462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25343463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25343464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25343465, 'pht': 3726}}" where mtr_portfolio_id = 25343445 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25343445 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172323, 0.05955037874891124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25343445_26-07-2025_06_06_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25343454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25343455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25343456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25343457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25343458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25343459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25343460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25343461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25343462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25343463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25343464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25343465, '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 = 25344009 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': 3363002, 'mtr_portfolio_id': 25344009, 'created_at': datetime.datetime(2025, 7, 26, 6, 6, 58), 'result': '0.057259906304659346', 'result_long': None, 'result_double': None}] Qualite : 0.057259906304659346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25344009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25344009_26-07-2025_06_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25344009 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_P25344009_26-07-2025_06_07_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25344093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25344094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25344095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25344096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25344097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25344098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25344099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25344100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25344101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25344102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25344103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25344104, 'pht': 3726}}" where mtr_portfolio_id = 25344009 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25344009 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172324, 0.057259906304659346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25344009_26-07-2025_06_07_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25344093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25344094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25344095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25344096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25344097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25344098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25344099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25344100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25344101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25344102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25344103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25344104, '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 = 25345036 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': 3363003, 'mtr_portfolio_id': 25345036, 'created_at': datetime.datetime(2025, 7, 26, 6, 7, 28), 'result': '0.038206582534713776', 'result_long': None, 'result_double': None}] Qualite : 0.038206582534713776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25345036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25345036_26-07-2025_06_07_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25345036 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_P25345036_26-07-2025_06_07_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25345041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25345042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25345043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25345044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25345045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25345046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25345047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25345048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25345049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25345050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25345051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25345052, 'pht': 3726}}" where mtr_portfolio_id = 25345036 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25345036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172325, 0.038206582534713776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25345036_26-07-2025_06_07_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25345041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25345042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25345043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25345044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25345045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25345046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25345047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25345048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25345049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25345050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25345051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25345052, '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 = 25345643 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': 3363004, 'mtr_portfolio_id': 25345643, 'created_at': datetime.datetime(2025, 7, 26, 6, 7, 29), 'result': '0.06000783758813686', 'result_long': None, 'result_double': None}] Qualite : 0.06000783758813686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25345643 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25345643_26-07-2025_06_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25345643 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_P25345643_26-07-2025_06_07_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25345659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25345660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25345661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25345662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25345664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25345665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25345666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25345668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25345669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25345670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25345671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25345672, 'pht': 3726}}" where mtr_portfolio_id = 25345643 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25345643 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172326, 0.06000783758813686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25345643_26-07-2025_06_07_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25345659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25345660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25345661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25345662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25345664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25345665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25345666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25345668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25345669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25345670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25345671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25345672, '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 = 25346211 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': 3363005, 'mtr_portfolio_id': 25346211, 'created_at': datetime.datetime(2025, 7, 26, 6, 8), 'result': '0.03435441009504281', 'result_long': None, 'result_double': None}] Qualite : 0.03435441009504281 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25346211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25346211_26-07-2025_06_08_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25346211 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_P25346211_26-07-2025_06_08_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25346231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25346232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25346233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25346234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25346235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25346236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25346237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25346238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25346239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25346240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25346241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25346242, 'pht': 3726}}" where mtr_portfolio_id = 25346211 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25346211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172327, 0.03435441009504281, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25346211_26-07-2025_06_08_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25346231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25346232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25346233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25346234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25346235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25346236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25346237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25346238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25346239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25346240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25346241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25346242, '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 = 25346736 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': 3363006, 'mtr_portfolio_id': 25346736, 'created_at': datetime.datetime(2025, 7, 26, 6, 8, 29), 'result': '0.045678819551424575', 'result_long': None, 'result_double': None}] Qualite : 0.045678819551424575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25346736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25346736_26-07-2025_06_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25346736 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_P25346736_26-07-2025_06_08_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25346749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25346750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25346751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25346752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25346753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25346754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25346755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25346756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25346757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25346758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25346759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25346760, 'pht': 3726}}" where mtr_portfolio_id = 25346736 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25346736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172328, 0.045678819551424575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25346736_26-07-2025_06_08_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25346749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25346750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25346751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25346752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25346753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25346754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25346755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25346756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25346757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25346758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25346759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25346760, '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 = 25347414 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': 3363007, 'mtr_portfolio_id': 25347414, 'created_at': datetime.datetime(2025, 7, 26, 6, 8, 58), 'result': '0.042162562359864195', 'result_long': None, 'result_double': None}] Qualite : 0.042162562359864195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25347414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25347414_26-07-2025_06_09_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25347414 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_P25347414_26-07-2025_06_09_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25347441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25347442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25347443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25347444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25347445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25347446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25347447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25347448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25347449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25347450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25347451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25347452, 'pht': 3726}}" where mtr_portfolio_id = 25347414 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25347414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172329, 0.042162562359864195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25347414_26-07-2025_06_09_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25347441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25347442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25347443, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25347444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25347445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25347446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25347447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25347448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25347449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25347450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25347451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25347452, '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 = 25347931 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': 3363008, 'mtr_portfolio_id': 25347931, 'created_at': datetime.datetime(2025, 7, 26, 6, 9, 32), 'result': '0.04655132072945229', 'result_long': None, 'result_double': None}] Qualite : 0.04655132072945229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25347931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25347931_26-07-2025_06_09_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25347931 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_P25347931_26-07-2025_06_09_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25347944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25347945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25347946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25347947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25347948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25347949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25347950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25347951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25347952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25347953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25347954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25347956, 'pht': 3726}}" where mtr_portfolio_id = 25347931 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25347931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172330, 0.04655132072945229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25347931_26-07-2025_06_09_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25347944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25347945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25347946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25347947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25347948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25347949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25347950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25347951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25347952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25347953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25347954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25347956, '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 = 25348435 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': 3363009, 'mtr_portfolio_id': 25348435, 'created_at': datetime.datetime(2025, 7, 26, 6, 9, 29), 'result': '0.04092502998402724', 'result_long': None, 'result_double': None}] Qualite : 0.04092502998402724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25348435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25348435_26-07-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25348435 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_P25348435_26-07-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25348472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25348473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25348474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25348475, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25348476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25348477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25348478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25348479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25348480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25348481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25348482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25348483, 'pht': 3726}}" where mtr_portfolio_id = 25348435 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25348435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172331, 0.04092502998402724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25348435_26-07-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25348472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25348473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25348474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25348475, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25348476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25348477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25348478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25348479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25348480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25348481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25348482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25348483, '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 = 25349023 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': 3363010, 'mtr_portfolio_id': 25349023, 'created_at': datetime.datetime(2025, 7, 26, 6, 9, 58), 'result': '0.0472515099383199', 'result_long': None, 'result_double': None}] Qualite : 0.0472515099383199 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25349023 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25349023_26-07-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25349023 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_P25349023_26-07-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25349076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25349077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25349078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25349079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25349080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25349081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25349082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25349083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25349084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25349085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25349086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25349087, 'pht': 3726}}" where mtr_portfolio_id = 25349023 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25349023 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172332, 0.0472515099383199, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25349023_26-07-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25349076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25349077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25349078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25349079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25349080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25349081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25349082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25349083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25349084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25349085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25349086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25349087, '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 = 25349888 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': 3363011, 'mtr_portfolio_id': 25349888, 'created_at': datetime.datetime(2025, 7, 26, 6, 10, 29), 'result': '0.03220502609700956', 'result_long': None, 'result_double': None}] Qualite : 0.03220502609700956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25349888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25349888_26-07-2025_06_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25349888 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_P25349888_26-07-2025_06_10_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25349901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25349903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25349904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25349905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25349906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25349907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25349908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25349909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25349910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25349911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25349912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25349913, 'pht': 3726}}" where mtr_portfolio_id = 25349888 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25349888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172333, 0.03220502609700956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25349888_26-07-2025_06_10_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25349901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25349903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25349904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25349905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25349906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25349907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25349908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25349909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25349910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25349911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25349912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25349913, '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 = 25350622 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': 3363012, 'mtr_portfolio_id': 25350622, 'created_at': datetime.datetime(2025, 7, 26, 6, 10, 37), 'result': '0.03164118041592263', 'result_long': None, 'result_double': None}] Qualite : 0.03164118041592263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25350622 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25350622_26-07-2025_06_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25350622 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_P25350622_26-07-2025_06_10_41.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25350724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25350725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25350726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25350727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25350728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25350729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25350730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25350731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25350732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25350733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25350734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25350735, 'pht': 3726}}" where mtr_portfolio_id = 25350622 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25350622 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172334, 0.03164118041592263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25350622_26-07-2025_06_10_41.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25350724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25350725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25350726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25350727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25350728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25350729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25350730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25350731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25350732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25350733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25350734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25350735, '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 = 25351528 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': 3363013, 'mtr_portfolio_id': 25351528, 'created_at': datetime.datetime(2025, 7, 26, 6, 10, 58), 'result': '0.022502532652279954', 'result_long': None, 'result_double': None}] Qualite : 0.022502532652279954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25351528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25351528_26-07-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25351528 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_P25351528_26-07-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25351539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25351540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25351541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25351542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25351543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25351544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25351545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25351546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25351547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25351548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25351549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25351550, 'pht': 3726}}" where mtr_portfolio_id = 25351528 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25351528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172335, 0.022502532652279954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25351528_26-07-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25351539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25351540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25351541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25351542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25351543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25351544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25351545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25351546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25351547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25351548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25351549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25351550, '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 = 25352256 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': 3363014, 'mtr_portfolio_id': 25352256, 'created_at': datetime.datetime(2025, 7, 26, 6, 11, 32), 'result': '0.05268476530290649', 'result_long': None, 'result_double': None}] Qualite : 0.05268476530290649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25352256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25352256_26-07-2025_06_11_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25352256 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_P25352256_26-07-2025_06_11_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25352272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25352273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25352274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25352275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25352276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25352277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25352278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25352279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25352280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25352281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25352282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25352283, 'pht': 3726}}" where mtr_portfolio_id = 25352256 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25352256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172336, 0.05268476530290649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25352256_26-07-2025_06_11_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25352272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25352273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25352274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25352275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25352276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25352277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25352278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25352279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25352280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25352281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25352282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25352283, '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 = 25353016 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': 3363015, 'mtr_portfolio_id': 25353016, 'created_at': datetime.datetime(2025, 7, 26, 6, 11, 29), 'result': '0.07265643261190875', 'result_long': None, 'result_double': None}] Qualite : 0.07265643261190875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25353016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25353016_26-07-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25353016 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_P25353016_26-07-2025_06_11_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25353026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25353027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25353028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25353029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25353030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25353031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25353032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25353033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25353034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25353035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25353036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25353037, 'pht': 3726}}" where mtr_portfolio_id = 25353016 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25353016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172337, 0.07265643261190875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25353016_26-07-2025_06_11_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25353026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25353027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25353028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25353029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25353030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25353031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25353032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25353033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25353034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25353035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25353036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25353037, '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 = 25353670 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': 3363016, 'mtr_portfolio_id': 25353670, 'created_at': datetime.datetime(2025, 7, 26, 6, 11, 57), 'result': '0.10414004647729845', 'result_long': None, 'result_double': None}] Qualite : 0.10414004647729845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25353670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25353670_26-07-2025_06_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25353670 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_P25353670_26-07-2025_06_12_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25353717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25353718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25353719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25353720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25353721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25353722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25353723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25353724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25353725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25353726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25353727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25353728, 'pht': 3726}}" where mtr_portfolio_id = 25353670 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25353670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172338, 0.10414004647729845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25353670_26-07-2025_06_12_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25353717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25353718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25353719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25353720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25353721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25353722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25353723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25353724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25353725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25353726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25353727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25353728, '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 = 25354360 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': 3363017, 'mtr_portfolio_id': 25354360, 'created_at': datetime.datetime(2025, 7, 26, 6, 12, 27), 'result': '0.05788469294759163', 'result_long': None, 'result_double': None}] Qualite : 0.05788469294759163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25354360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25354360_26-07-2025_06_12_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25354360 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_P25354360_26-07-2025_06_12_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25354417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25354418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25354419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25354420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25354421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25354422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25354423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25354424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25354425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25354426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25354427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25354428, 'pht': 3726}}" where mtr_portfolio_id = 25354360 and dashboard_run_id = 2018650 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=25354360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13172339, 0.05788469294759163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25354360_26-07-2025_06_12_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25354417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25354418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25354419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25354420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25354421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25354422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25354423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25354424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25354425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25354426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25354427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25354428, '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 (25300799,25301195,25301514,25301834,25302231,25302823,25303320,25303775,25304225,25304897,25305370,25305682,25306068,25306533,25306957,25307315,25307617,25308128,25308546,25308925,25309168,25309704,25310123,25310401,25310789,25311308,25311733,25312097,25312469,25313240,25313826,25314373,25314907,25315779,25316346,25317122,25317769,25318571,25319566,25320248,25321128,25322056,25322696,25323538,25324457,25325112,25325767,25326491,25326972,25327552,25328045,25329531,25329314,25329244,25329332,25330021,25330731,25331142,25331499,25332160,25332683,25333343,25333978,25334527,25335257,25335958,25336467,25337010,25337727,25338349,25338861,25339392,25339993,25340514,25341089,25341667,25342303,25342844,25343445,25344009,25345036,25345643,25346211,25346736,25347414,25347931,25348435,25349023,25349888,25350622,25351528,25352256,25353016,25353670,25354360) result : ((1373635295,), (1373635319,), (1373635348,), (1373635372,), (1373635398,), (1373635441,), (1373635615,), (1373635639,), (1373635657,), (1373635660,), (1373635673,), (1373635677,), (1373635680,), (1373635683,), (1373635701,), (1373635726,), (1373635731,), (1373635734,), (1373635736,), (1373635737,), (1373635739,), (1373635750,), (1373635772,), (1373635781,), (1373635784,), (1373635788,), (1373635790,), (1373635795,), (1373635812,), (1373635819,), (1373635825,), (1373635832,), (1373635834,), (1373635836,), (1373635874,), (1373635878,), (1373635880,), (1373635884,), (1373635889,), (1373635897,), (1373636062,), (1373636088,), (1373636114,), (1373636122,), (1373636125,), (1373636128,), (1373636145,), (1373636201,), (1373636211,), (1373636226,), (1373636265,), (1373636316,), (1373636320,), (1373636423,), (1373636434,), (1373636440,), (1373636442,), (1373636456,), (1373636485,), (1373636688,), (1373656998,), (1373636723,), (1373636727,), (1373636729,), (1373636730,), (1373636732,), (1373636735,), (1373636833,), (1373637138,), (1373637146,), (1373637159,), (1373637188,), (1373637205,), (1373637208,), (1373637220,), (1373637224,), (1373637227,), (1373637229,), (1373637230,), (1373637233,), (1373637254,), (1373637260,), (1373637262,), (1373637264,), (1373637266,), (1373637269,), (1373637277,), (1373637302,), (1373637307,), (1373637316,), (1373637318,), (1373637321,), (1373637323,), (1373637342,), (1373637345,), (1373637348,), (1373637353,), (1373637358,), (1373637362,), (1373637367,), (1373637376,), (1373637381,), (1373637384,), (1373637386,), (1373637389,), (1373637686,), (1373637723,), (1373637751,), (1373637767,), (1373637813,), (1373637842,), (1373637964,), (1373637977,), (1373637994,), (1373638033,), (1373638043,), (1373638062,), (1373638078,), (1373638079,), (1373638080,), (1373638081,), (1373638082,), (1373638085,), (1373638105,), (1373638108,), (1373638111,), (1373638114,), (1373638117,), (1373638120,), (1373638135,), (1373638161,), (1373638169,), (1373638170,), (1373638172,), (1373638174,), (1373638179,), (1373640320,), (1373638199,), (1373638202,), (1373638205,), (1373638209,), (1373638211,), (1373638213,), (1373638244,), (1373638256,), (1373638258,), (1373638261,), (1373638265,), (1373638267,), (1373638271,), (1373638286,), (1373638295,), (1373638301,), (1373638303,), (1373638304,), (1373638305,), (1373638317,), (1373638345,), (1373638349,), (1373638352,), (1373638354,), (1373638355,), (1373638357,), (1373638368,), (1373638369,), (1373638370,), (1373638371,), (1373638373,), (1373638375,), (1373638397,), (1373638402,), (1373638404,), (1373638406,), (1373638408,), (1373638412,), (1373638425,), (1373638427,), (1373638430,), (1373638433,), (1373638435,), (1373638440,), (1373638456,), (1373638458,), (1373638461,), (1373638462,), (1373638466,), (1373638470,), (1373638481,), (1373638485,), (1373638489,), (1373638492,), (1373638493,), (1373638496,), (1373638528,), (1373638546,), (1373638566,), (1373638571,), (1373638577,), (1373638578,), (1373638579,), (1373638581,), (1373638597,), (1373638599,), (1373638601,), (1373638604,), (1373638606,), (1373638610,), (1373638628,), (1373638630,), (1373638633,), (1373638635,), (1373638637,), (1373638639,), (1373638656,), (1373638659,), (1373638661,), (1373638663,), (1373638666,), (1373638668,), (1373638682,), (1373638685,), (1373638688,), (1373638691,), (1373638694,), (1373638698,), (1373638714,), (1373638718,), (1373638722,), (1373638723,), (1373638725,), (1373638727,), (1373638738,), (1373638739,), (1373638741,), (1373638743,), (1373638745,), (1373638748,), (1373638773,), (1373638775,), (1373638777,), (1373638779,), (1373638781,), (1373638783,), (1373638804,), (1373638836,), (1373638868,), (1373638872,), (1373638874,), (1373638876,), (1373638878,), (1373638880,), (1373638899,), (1373638922,), (1373638926,), (1373638929,), (1373638943,), (1373638966,), (1373638993,), (1373639171,), (1373639181,), (1373639184,), (1373639186,), (1373639188,), (1373639191,), (1373639210,), (1373639217,), (1373639220,), (1373639223,), (1373639224,), (1373639226,), (1373639241,), (1373639244,), (1373639248,), (1373639251,), (1373639254,), (1373639257,), (1373639468,), (1373639493,), (1373639523,), (1373639552,), (1373639577,), (1373639600,), (1373639765,), (1373640057,), (1373640085,), (1373640111,), (1373640136,), (1373640161,), (1373640190,), (1373640309,), (1373640312,), (1373640314,), (1373640316,), (1373640318,), (1373640319,), (1373640331,), (1373640350,), (1373640353,), (1373640356,), (1373640358,), (1373640361,), (1373640364,), (1373640382,), (1373640385,), (1373640388,), (1373640390,), (1373640392,), (1373640394,), (1373640409,), (1373640412,), (1373640414,), (1373640415,), (1373640416,), (1373640418,), (1373640431,), (1373640433,), (1373640435,), (1373640437,), (1373640438,), (1373640444,), (1373640500,), (1373640502,), (1373640503,), (1373640505,), (1373640507,), (1373640519,), (1373640540,), (1373640566,), (1373640619,), (1373640670,), (1373640708,), (1373640740,), (1373640926,), (1373641132,), (1373641157,), (1373641166,), (1373641168,), (1373641171,), (1373641190,), (1373641203,), (1373641227,), (1373641255,), (1373641281,), (1373641306,), (1373641319,), (1373641332,), (1373641335,), (1373641339,), (1373641341,), (1373641344,), (1373641348,), (1373641372,), (1373641373,), (1373641375,), (1373641376,), (1373641377,), (1373641379,), (1373641396,), (1373641399,), (1373641402,), (1373641404,), (1373641407,), (1373641410,), (1373641425,), (1373641427,), (1373641430,), (1373641433,), (1373641435,), (1373641437,), (1373641448,), (1373641450,), (1373641453,), (1373641456,), (1373641459,), (1373641463,), (1373641481,), (1373641484,), (1373641488,), (1373641508,), (1373641532,), (1373641546,), (1373641579,), (1373641582,), (1373641585,), (1373641587,), (1373641591,), (1373641595,), (1373641615,), (1373641639,), (1373641643,), (1373641647,), (1373641650,), (1373641652,), (1373641655,), (1373641668,), (1373641671,), (1373641674,), (1373641676,), (1373641677,), (1373641679,), (1373641694,), (1373641696,), (1373641698,), (1373641700,), (1373641701,), (1373641704,), (1373641864,), (1373641889,), (1373641916,), (1373641940,), (1373641969,), (1373642000,), (1373642089,), (1373642092,), (1373642095,), (1373642097,), (1373642099,), (1373642101,), (1373642117,), (1373642121,), (1373642122,), (1373642123,), (1373642124,), (1373642127,), (1373642145,), (1373642147,), (1373642150,), (1373642152,), (1373642154,), (1373642156,), (1373642178,), (1373642180,), (1373642184,), (1373642186,), (1373642188,), (1373642192,), (1373642205,), (1373642206,), (1373642207,), (1373642208,), (1373642210,), (1373642213,), (1373642275,), (1373642296,), (1373642300,), (1373642304,), (1373642306,), (1373642308,), (1373642309,), (1373642321,), (1373642325,), (1373642328,), (1373642332,), (1373642334,), (1373642336,), (1373642349,), (1373642352,), (1373642355,), (1373642357,), (1373642359,), (1373642362,), (1373642375,), (1373642377,), (1373642381,), (1373642384,), (1373642386,), (1373642388,), (1373642411,), (1373642418,), (1373642420,), (1373642423,), (1373642426,), (1373642428,), (1373642450,), (1373642458,), (1373642463,), (1373642470,), (1373642473,), (1373642476,), (1373642489,), (1373642491,), (1373642494,), (1373642498,), (1373642499,), (1373642500,), (1373642514,), (1373642516,), (1373642518,), (1373642520,), (1373642522,), (1373642525,), (1373642541,), (1373642543,), (1373642544,), (1373642545,), (1373642548,), (1373642559,), (1373642588,), (1373642659,), (1373642661,), (1373642663,), (1373642665,), (1373642667,), (1373642670,), (1373642677,), (1373642679,), (1373642682,), (1373642685,), (1373642687,), (1373642692,), (1373642712,), (1373642715,), (1373642719,), (1373642720,), (1373642722,), (1373642724,), (1373656972,), (1373642766,), (1373642769,), (1373642772,), (1373642774,), (1373642776,), (1373642779,), (1373642901,), (1373642905,), (1373642906,), (1373642907,), (1373642908,), (1373642926,), (1373642950,), (1373642955,), (1373642958,), (1373642959,), (1373642961,), (1373642963,), (1373643008,), (1373643011,), (1373643012,), (1373643014,), (1373643017,), (1373643020,), (1373643035,), (1373643039,), (1373643042,), (1373643045,), (1373643047,), (1373643050,), (1373643068,), (1373643107,), (1373643110,), (1373643116,), (1373643120,), (1373643123,), (1373643126,), (1373643172,), (1373643174,), (1373643176,), (1373643198,), (1373643201,), (1373643205,), (1373643220,), (1373643222,), (1373643224,), (1373643226,), (1373643228,), (1373643232,), (1373643255,), (1373643260,), (1373643261,), (1373643262,), (1373643264,), (1373643266,), (1373643330,), (1373643331,), (1373643332,), (1373643333,), (1373643334,), (1373643336,), (1373643354,), (1373643355,), (1373643356,), (1373643357,), (1373643358,), (1373643360,), (1373643624,), (1373643649,), (1373643688,), (1373643713,), (1373643740,), (1373643769,), (1373644400,), (1373644430,), (1373644456,), (1373644482,), (1373644508,), (1373644538,), (1373656933,), (1373644643,), (1373644887,), (1373644892,), (1373644893,), (1373644894,), (1373644895,), (1373644898,), (1373644925,), (1373644927,), (1373644928,), (1373644929,), (1373644930,), (1373644933,), (1373644958,), (1373644963,), (1373644965,), (1373644969,), (1373644972,), (1373644975,), (1373644987,), (1373644989,), (1373644991,), (1373644992,), (1373644994,), (1373644997,), (1373645011,), (1373645013,), (1373645015,), (1373645036,), (1373645060,), (1373645087,), (1373645366,), (1373645390,), (1373645416,), (1373645433,), (1373645435,), (1373645438,), (1373645694,), (1373645718,), (1373645726,), (1373645727,), (1373645751,), (1373645753,), (1373645773,), (1373645775,), (1373645777,), (1373645778,), (1373645780,), (1373645783,), (1373645805,), (1373645812,), (1373645817,), (1373645819,), (1373645821,), (1373645874,), (1373645885,), (1373645892,), (1373645898,), (1373645901,), (1373645904,), (1373645907,), (1373645936,), (1373646036,), (1373646067,), (1373646084,), (1373646087,), (1373646091,), (1373646095,), (1373646124,), (1373646143,), (1373646159,), (1373646161,), (1373646164,), (1373646168,), (1373646242,), (1373646337,), (1373646360,), (1373646362,), (1373646364,), (1373646366,), (1373646368,), (1373646371,), (1373646396,), (1373646399,), (1373646401,), (1373646403,), (1373646404,), (1373646407,), (1373646421,), (1373646425,), (1373646426,), (1373646427,), (1373646428,), (1373646430,), (1373646446,), (1373646448,), (1373646450,), (1373646452,), (1373646455,), (1373646462,), (1373646658,), (1373646705,), (1373646740,), (1373646768,), (1373646798,), (1373646824,), (1373646946,), (1373647027,), (1373647131,), (1373647133,), (1373647136,), (1373647138,), (1373647140,), (1373647143,), (1373647155,), (1373647157,), (1373647159,), (1373647161,), (1373647164,), (1373647168,), (1373647185,), (1373647186,), (1373647188,), (1373647190,), (1373647193,), (1373647195,), (1373647198,), (1373647199,), (1373647212,), (1373647216,), (1373647217,), (1373647218,), (1373647219,), (1373647221,), (1373647250,), (1373647253,), (1373647254,), (1373647256,), (1373647259,), (1373647261,), (1373647272,), (1373647274,), (1373647276,), (1373647282,), (1373647284,), (1373647287,), (1373647297,), (1373647300,), (1373647302,), (1373647303,), (1373647306,), (1373647310,), (1373647421,), (1373647426,), (1373647435,), (1373647441,), (1373647451,), (1373647453,), (1373647473,), (1373647486,), (1373647488,), (1373647490,), (1373647491,), (1373647494,), (1373647497,), (1373647514,), (1373647521,), (1373647523,), (1373647524,), (1373647526,), (1373647529,), (1373647543,), (1373647544,), (1373647545,), (1373647546,), (1373647548,), (1373647552,), (1373647568,), (1373647570,), (1373647572,), (1373647574,), (1373647577,), (1373647581,), (1373647602,), (1373647604,), (1373647606,), (1373647608,), (1373647609,), (1373647612,), (1373647636,), (1373647641,), (1373647642,), (1373647643,), (1373647645,), (1373647648,), (1373647663,), (1373647666,), (1373647668,), (1373647670,), (1373647672,), (1373647673,), (1373647688,), (1373647689,), (1373647692,), (1373647694,), (1373647697,), (1373647700,), (1373647710,), (1373647711,), (1373647712,), (1373647713,), (1373647714,), (1373647717,), (1373647752,), (1373647771,), (1373647772,), (1373647773,), (1373647774,), (1373647775,), (1373647778,), (1373647804,), (1373647810,), (1373647817,), (1373647819,), (1373647821,), (1373647824,), (1373647834,), (1373647836,), (1373647838,), (1373647840,), (1373647841,), (1373647845,), (1373647858,), (1373647859,), (1373647860,), (1373647861,), (1373647863,), (1373647867,), (1373647903,), (1373647907,), (1373647909,), (1373647911,), (1373647912,), (1373647915,), (1373647928,), (1373647930,), (1373647931,), (1373647933,), (1373647936,), (1373647938,), (1373647949,), (1373647975,), (1373647983,), (1373647989,), (1373647992,), (1373647995,), (1373647997,), (1373648019,), (1373648026,), (1373648027,), (1373648028,), (1373648030,), (1373648032,), (1373648052,), (1373648067,), (1373648069,), (1373648071,), (1373648072,), (1373648073,), (1373648075,), (1373648097,), (1373648099,), (1373648102,), (1373648103,), (1373648105,), (1373648109,), (1373648125,), (1373648129,), (1373648132,), (1373648133,), (1373648135,), (1373648138,), (1373648148,), (1373648150,), (1373648152,), (1373648154,), (1373648155,), (1373648159,), (1373648238,), (1373648265,), (1373648292,), (1373648319,), (1373648345,), (1373648369,), (1373648513,), (1373648538,), (1373648562,), (1373648582,), (1373648585,), (1373648600,), (1373649458,), (1373649470,), (1373649488,), (1373649513,), (1373649556,), (1373649574,), (1373649813,), (1373650053,), (1373650055,), (1373650064,), (1373650076,), (1373650078,), (1373650092,), (1373650126,), (1373650133,), (1373650135,), (1373650137,), (1373650138,), (1373650141,), (1373650161,), (1373650167,), (1373650169,), (1373650171,), (1373650174,), (1373650177,), (1373650186,), (1373650188,), (1373650189,), (1373650190,), (1373650191,), (1373650194,), (1373650212,), (1373650215,), (1373650216,), (1373650217,), (1373650218,), (1373650220,), (1373650238,), (1373650246,), (1373650247,), (1373650249,), (1373650251,), (1373650253,), (1373650277,), (1373650281,), (1373650283,), (1373650285,), (1373650287,), (1373650290,), (1373650298,), (1373650300,), (1373650302,), (1373650304,), (1373650306,), (1373650309,), (1373650330,), (1373650355,), (1373650359,), (1373650361,), (1373650363,), (1373650366,), (1373650368,), (1373650381,), (1373650410,), (1373650411,), (1373650412,), (1373650413,), (1373650414,), (1373650416,), (1373650440,), (1373650443,), (1373650447,), (1373650449,), (1373650453,), (1373650457,), (1373650464,), (1373650470,), (1373650479,), (1373650482,), (1373650485,), (1373650489,), (1373650511,), (1373650516,), (1373650519,), (1373650521,), (1373650522,), (1373650525,), (1373650543,), (1373650548,), (1373650550,), (1373650551,), (1373650553,), (1373650555,), (1373650570,), (1373650572,), (1373650574,), (1373650575,), (1373650577,), (1373650580,), (1373650597,), (1373650627,), (1373650633,), (1373650635,), (1373650636,), (1373650638,), (1373650641,), (1373650658,), (1373650659,), (1373650661,), (1373650664,), (1373650666,), (1373650669,), (1373650689,), (1373650708,), (1373650710,), (1373650711,), (1373650712,), (1373650713,), (1373650715,), (1373650736,), (1373650741,), (1373650742,), (1373650743,), (1373650744,), (1373650746,), (1373650764,), (1373650765,), (1373650767,), (1373650769,), (1373650770,), (1373650773,), (1373650787,), (1373650792,), (1373650794,), (1373650796,), (1373650799,), (1373650802,), (1373650818,), (1373650825,), (1373650829,), (1373650831,), (1373650834,), (1373650838,), (1373650851,), (1373650857,), (1373650860,), (1373650864,), (1373650868,), (1373650873,), (1373650887,), (1373650915,), (1373650917,), (1373650920,), (1373650922,), (1373650925,), (1373650929,), (1373656886,), (1373650943,), (1373650946,), (1373650948,), (1373650950,), (1373650954,), (1373650957,), (1373650975,), (1373650976,), (1373650977,), (1373650979,), (1373650982,), (1373650984,), (1373650991,), (1373650993,), (1373650995,), (1373650997,), (1373650999,), (1373651003,), (1373651019,), (1373651022,), (1373651024,), (1373651026,), (1373651064,), (1373651067,), (1373651094,), (1373651095,), (1373651096,), (1373651097,), (1373651140,), (1373651146,), (1373651171,), (1373651185,), (1373651188,), (1373651189,), (1373651191,), (1373651195,), (1373651210,), (1373651211,), (1373651213,), (1373651215,), (1373651216,), (1373651219,), (1373651239,), (1373651244,), (1373651246,), (1373651248,), (1373651251,), (1373651253,), (1373651272,), (1373651274,), (1373651276,), (1373651278,), (1373651280,), (1373651283,), (1373651303,), (1373651315,), (1373651318,), (1373651319,), (1373651321,), (1373651324,), (1373651339,), (1373651346,), (1373651351,), (1373651355,), (1373651360,), (1373651365,), (1373651413,), (1373651432,), (1373651434,), (1373651435,), (1373651437,), (1373651439,), (1373651443,), (1373651462,), (1373651465,), (1373651466,), (1373651467,), (1373651468,), (1373651470,), (1373651495,), (1373653533,), (1373656841,), (1373651558,), (1373651560,), (1373651562,), (1373651564,), (1373651565,), (1373651566,), (1373651587,), (1373651589,), (1373651591,), (1373651592,), (1373651593,), (1373651594,), (1373651617,), (1373651623,), (1373651624,), (1373651625,), (1373651626,), (1373651629,), (1373651645,), (1373651647,), (1373651649,), (1373651650,), (1373651652,), (1373651655,), (1373651673,), (1373651676,), (1373651678,), (1373651680,), (1373651682,), (1373651684,), (1373651703,), (1373651722,), (1373651729,), (1373651735,), (1373651737,), (1373651739,), (1373651740,), (1373651863,), (1373651950,), (1373651958,), (1373651960,), (1373651962,), (1373651968,), (1373652021,), (1373652043,), (1373652051,), (1373652060,), (1373652062,), (1373652064,), (1373652066,), (1373652076,), (1373652078,), (1373652080,), (1373652081,), (1373652083,), (1373652086,), (1373652101,), (1373652109,), (1373652133,), (1373652156,), (1373652178,), (1373652202,), (1373652452,), (1373652456,), (1373652458,), (1373652461,), (1373652482,), (1373652504,), (1373652852,), (1373653408,), (1373653435,), (1373653461,), (1373653486,), (1373653509,), (1373653903,), (1373654239,), (1373654267,), (1373654282,), (1373654286,), (1373654288,), (1373654301,), (1373654366,), (1373654370,), (1373654373,), (1373654380,), (1373654386,), (1373654388,), (1373654401,), (1373654404,), (1373654408,), (1373654418,), (1373654426,), (1373654428,), (1373654448,), (1373654449,), (1373654450,), (1373654456,), (1373654462,), (1373654464,), (1373654485,), (1373654487,), (1373654498,), (1373654505,), (1373654506,), (1373654509,), (1373654533,), (1373654535,), (1373654541,), (1373654548,), (1373654551,), (1373654553,), (1373654575,), (1373654577,), (1373654578,), (1373654579,), (1373654581,), (1373654582,), (1373654607,), (1373654612,), (1373654617,), (1373654618,), (1373654619,), (1373654623,), (1373654644,), (1373654683,), (1373654685,), (1373654689,), (1373654690,), (1373654691,), (1373654693,), (1373654716,), (1373654744,), (1373654753,), (1373654756,), (1373654758,), (1373654761,), (1373654763,), (1373654781,), (1373654788,), (1373654790,), (1373654791,), (1373654793,), (1373654798,), (1373654829,), (1373654833,), (1373654841,), (1373654844,), (1373654845,), (1373654847,), (1373654870,), (1373654872,), (1373654873,), (1373654875,), (1373654878,), (1373654881,), (1373654901,), (1373654905,), (1373654907,), (1373654910,), (1373654912,), (1373654915,), (1373654931,), (1373654934,), (1373654935,), (1373654937,), (1373654939,), (1373654944,), (1373654967,), (1373654969,), (1373654971,), (1373654972,), (1373654974,), (1373654976,), (1373654996,), (1373655032,), (1373655038,), (1373655039,), (1373655041,), (1373655042,), (1373655044,), (1373655064,), (1373655067,), (1373655068,), (1373655070,), (1373655071,), (1373655073,), (1373655100,), (1373655103,), (1373655106,), (1373655108,), (1373655110,), (1373655113,), (1373655124,), (1373655126,), (1373655128,), (1373655130,), (1373655133,), (1373655135,), (1373655151,), (1373655160,), (1373655164,), (1373655167,), (1373655171,), (1373655173,), (1373655198,), (1373655226,), (1373655227,), (1373655233,), (1373655235,), (1373655236,), (1373655239,), (1373655261,), (1373655298,), (1373655326,), (1373655330,), (1373655334,), (1373655336,), (1373655340,), (1373655343,), (1373655360,), (1373655380,), (1373655382,), (1373655388,), (1373655396,), (1373655402,), (1373655405,), (1373655426,), (1373655427,), (1373655429,), (1373655432,), (1373655436,), (1373655439,), (1373655455,), (1373655458,), (1373655459,), (1373655461,), (1373655462,), (1373655464,), (1373655480,), (1373655484,), (1373655486,), (1373655487,), (1373655489,), (1373655491,), (1373655500,), (1373655502,), (1373655503,), (1373655504,), (1373655505,), (1373655508,), (1373655529,), (1373655538,), (1373655539,), (1373655541,), (1373655543,), (1373655545,), (1373655559,), (1373655560,), (1373655561,), (1373655563,), (1373655566,), (1373655568,), (1373655592,), (1373655595,), (1373655603,), (1373655612,), (1373655616,), (1373655620,), (1373655637,), (1373655668,), (1373655675,), (1373655680,), (1373655681,), (1373655682,), (1373655685,), (1373655706,), (1373655724,), (1373655726,), (1373655728,), (1373655730,), (1373655731,), (1373655734,), (1373655753,), (1373655756,), (1373655757,), (1373655758,), (1373655760,), (1373655762,), (1373655784,), (1373655790,), (1373655791,), (1373655792,), (1373655794,), (1373655797,), (1373655813,), (1373655814,), (1373655815,), (1373655816,), (1373655817,), (1373655819,), (1373655837,), (1373655842,), (1373655849,), (1373655850,), (1373655851,), (1373655854,), (1373655872,), (1373655879,), (1373655880,), (1373655881,), (1373655882,), (1373655884,), (1373655901,), (1373655905,), (1373655909,), (1373655916,), (1373655919,), (1373655922,), (1373655944,), (1373655970,), (1373656004,), (1373656006,), (1373656008,), (1373656015,), (1373656021,), (1373656024,), (1373656056,), (1373656058,), (1373656061,), (1373656065,), (1373656074,), (1373656076,), (1373656096,), (1373656097,), (1373656100,), (1373656103,), (1373656105,), (1373656108,), (1373656125,), (1373656128,), (1373656130,), (1373656132,), (1373656134,), (1373656137,), (1373656161,), (1373656164,), (1373656167,), (1373656169,), (1373656171,), (1373656174,), (1373656187,), (1373656189,), (1373656191,), (1373656193,), (1373656195,), (1373656198,), (1373656791,), (1373657247,), (1373657282,), (1373657300,), (1373657344,), (1373657371,), (1373657859,), (1373658166,), (1373658169,), (1373658177,), (1373658179,), (1373658181,), (1373658185,), (1373658391,), (1373658393,), (1373658399,), (1373658423,), (1373658447,), (1373658462,), (1373658486,), (1373658489,), (1373658491,), (1373658492,), (1373658494,), (1373658496,), (1373658520,), (1373658522,), (1373658530,), (1373658531,), (1373658533,), (1373658536,), (1373658569,), (1373658606,), (1373658615,), (1373658623,), (1373658624,), (1373658626,), (1373658629,), (1373658643,), (1373658647,), (1373658650,), (1373658653,), (1373658656,), (1373658659,), (1373658677,), (1373658681,), (1373658684,), (1373658685,), (1373658686,), (1373658688,), (1373658728,), (1373658731,), (1373658732,), (1373658734,), (1373658735,), (1373658738,), (1373658763,), (1373658793,), (1373658796,), (1373658798,), (1373658800,), (1373658803,), (1373658806,), (1373658817,), (1373658829,), (1373658836,), (1373658837,), (1373658839,), (1373658842,), (1373658858,), (1373658860,), (1373658866,), (1373658874,), (1373658876,), (1373658878,), (1373658901,), (1373658904,), (1373658906,), (1373658908,), (1373658909,), (1373658913,), (1373658926,), (1373658928,), (1373658937,), (1373658940,), (1373658941,), (1373658943,), (1373658956,), (1373658959,), (1373658962,), (1373658964,), (1373658966,), (1373658968,), (1373658982,), (1373658990,), (1373658997,), (1373658999,), (1373659001,), (1373659003,), (1373659021,), (1373659026,), (1373659029,), (1373659031,), (1373659033,), (1373659035,), (1373659047,), (1373659067,), (1373659074,), (1373659078,), (1373659080,), (1373659083,), (1373659086,), (1373659101,), (1373659103,), (1373659108,), (1373659112,), (1373659122,), (1373659130,), (1373659180,), (1373659186,), (1373659197,), (1373659202,), (1373659207,), (1373659210,), (1373659226,), (1373659229,), (1373659231,), (1373659234,), (1373659238,), (1373659243,), (1373659260,), (1373659264,), (1373659267,), (1373659269,), (1373659273,), (1373659277,), (1373659289,), (1373659296,), (1373659299,), (1373659301,), (1373659303,), (1373659306,), (1373659350,), (1373659353,), (1373659355,), (1373659356,), (1373659358,), (1373659364,), (1373659380,), (1373659383,), (1373659386,), (1373659388,), (1373659389,), (1373659392,), (1373659406,), (1373659409,), (1373659411,), (1373659413,), (1373659416,), (1373659419,), (1373659459,), (1373659460,), (1373659466,), (1373659473,), (1373659475,), (1373659477,), (1373659498,), (1373659518,), (1373659521,), (1373659524,), (1373659525,), (1373659528,), (1373659530,), (1373659547,), (1373659552,), (1373659557,), (1373659558,), (1373659560,), (1373659562,), (1373659578,), (1373659581,), (1373659585,), (1373659588,), (1373659591,), (1373659594,), (1373659604,), (1373659607,), (1373659610,), (1373659612,), (1373659615,), (1373659620,), (1373659635,), (1373659636,), (1373659638,), (1373659641,), (1373659643,), (1373659646,), (1373659668,), (1373659670,), (1373659672,), (1373659673,), (1373659676,), (1373659679,), (1373659695,), (1373659703,), (1373659710,), (1373659713,), (1373659715,), (1373659717,), (1373659739,), (1373659741,), (1373659742,), (1373659744,), (1373659746,), (1373659747,), (1373659754,), (1373659756,), (1373659757,), (1373659759,), (1373659761,), (1373659763,), (1373659784,), (1373659803,), (1373659807,), (1373659809,), (1373659812,), (1373659815,), (1373659817,), (1373659831,), (1373659838,), (1373659845,), (1373659846,), (1373659848,), (1373659851,), (1373659863,), (1373659866,), (1373659869,), (1373659873,), (1373659876,), (1373659878,), (1373659898,), (1373659903,), (1373659909,), (1373659910,), (1373659911,), (1373659913,), (1373659924,), (1373659926,), (1373659927,), (1373659929,), (1373659931,), (1373659935,), (1373659949,), (1373659951,), (1373659952,), (1373659953,), (1373659955,), (1373659957,), (1373659978,), (1373659980,), (1373659982,), (1373659983,), (1373659986,), (1373659988,), (1373660008,), (1373660018,), (1373660022,), (1373660023,), (1373660025,), (1373660028,), (1373660061,), (1373660065,), (1373660072,), (1373660073,), (1373660075,), (1373660078,), (1373660104,), (1373660127,), (1373660129,), (1373660131,), (1373660132,), (1373660134,), (1373660136,), (1373660146,), (1373660152,), (1373660159,), (1373660162,), (1373660164,), (1373660168,), (1373660178,), (1373660189,), (1373660196,), (1373660204,), (1373660207,), (1373660211,), (1373660223,), (1373660225,), (1373660228,), (1373660230,), (1373660231,), (1373660234,), (1373660252,), (1373660255,), (1373660257,), (1373660260,), (1373660261,), (1373660264,), (1373660516,), (1373660539,), (1373660571,), (1373660593,), (1373660619,), (1373660643,), (1373660943,), (1373661060,), (1373661088,), (1373661115,), (1373661141,), (1373661169,), (1373661458,), (1373661659,), (1373661703,), (1373661706,), (1373661708,), (1373661710,), (1373661711,), (1373661714,), (1373661733,), (1373661734,), (1373661739,), (1373661761,), (1373661788,), (1373661812,), (1373662059,), (1373662090,), (1373662114,), (1373662138,), (1373662159,), (1373662182,), (1373662427,), (1373662451,), (1373662475,), (1373662499,), (1373662523,), (1373662546,), (1373662602,), (1373662604,), (1373662613,), (1373662619,), (1373662622,), (1373662625,), (1373662876,), (1373662885,), (1373662897,), (1373662899,), (1373662901,), (1373662915,), (1373663008,), (1373663039,), (1373663065,), (1373663067,), (1373663068,), (1373663070,), (1373663072,), (1373663074,), (1373663093,), (1373663095,), (1373663097,), (1373663098,), (1373663099,), (1373663101,), (1373663118,), (1373663122,), (1373663124,), (1373663125,), (1373663128,), (1373663131,), (1373663146,), (1373663152,), (1373663156,), (1373663159,), (1373663161,), (1373663164,), (1373663180,), (1373663188,), (1373663190,), (1373663191,), (1373663193,), (1373663196,), (1373663211,), (1373663213,), (1373663214,), (1373663216,), (1373663217,), (1373663219,), (1373663235,), (1373663238,), (1373663241,), (1373663243,), (1373663246,), (1373663250,), (1373663273,), (1373663302,), (1373663306,), (1373663307,), (1373663309,), (1373663312,), (1373663315,), (1373663326,), (1373663329,), (1373663332,), (1373663333,), (1373663336,), (1373663340,), (1373663367,), (1373663392,), (1373663394,), (1373663397,), (1373663399,), (1373663402,), (1373663406,), (1373663421,), (1373663424,), (1373663428,), (1373663429,), (1373663432,), (1373663435,), (1373663448,), (1373663452,), (1373663455,), (1373663457,), (1373663458,), (1373663464,), (1373663474,), (1373663476,), (1373663478,), (1373663481,), (1373663484,), (1373663489,), (1373663504,), (1373663508,), (1373663512,), (1373663515,), (1373663519,), (1373663523,), (1373663543,), (1373663544,), (1373663547,), (1373663550,), (1373663553,), (1373663558,), (1373663577,), (1373663583,), (1373663593,), (1373663598,), (1373663601,), (1373663605,), (1373663622,), (1373663627,), (1373663634,), (1373663636,), (1373663639,), (1373663644,), (1373663676,), (1373663678,), (1373663679,), (1373663681,), (1373663684,), (1373663686,), (1373663713,), (1373663729,), (1373663732,), (1373663737,), (1373663739,), (1373663743,), (1373663746,), (1373663769,), (1373663773,), (1373663775,), (1373663776,), (1373663778,), (1373663781,), (1373663803,), (1373663807,), (1373663810,), (1373663811,), (1373663813,), (1373663816,), (1373663833,), (1373663838,), (1373663844,), (1373663846,), (1373663850,), (1373663855,), (1373663876,), (1373663879,), (1373663882,), (1373663885,), (1373663889,), (1373663893,), (1373663917,), (1373663924,), (1373663927,), (1373663929,), (1373663932,), (1373663935,), (1373663951,), (1373663964,), (1373663971,), (1373663974,), (1373663978,), (1373663983,), (1373664004,), (1373664013,), (1373664016,), (1373664020,), (1373664022,), (1373664027,), (1373664048,), (1373664074,), (1373664079,), (1373664083,), (1373664085,), (1373664087,), (1373664089,), (1373664103,), (1373664105,), (1373664106,), (1373664112,), (1373664114,), (1373664117,), (1373664132,), (1373664134,), (1373664135,), (1373664137,), (1373664142,), (1373664150,), (1373664161,), (1373664163,), (1373664165,), (1373664167,), (1373664169,), (1373664175,), (1373664189,), (1373664191,), (1373664199,), (1373664201,), (1373664204,), (1373664208,), (1373664228,), (1373664230,), (1373664232,), (1373664235,), (1373664237,), (1373664241,), (1373664253,), (1373664256,), (1373664264,), (1373664267,), (1373664271,), (1373664275,), (1373664287,), (1373664312,), (1373664332,), (1373664337,), (1373664339,), (1373664341,), (1373664343,), (1373664348,), (1373664367,), (1373664387,), (1373664414,), (1373664417,), (1373664425,), (1373664427,), (1373664429,), (1373664431,), (1373664441,), (1373664462,), (1373664465,), (1373664468,), (1373664469,), (1373664471,), (1373664474,), (1373664491,), (1373664493,), (1373664495,), (1373664500,), (1373664502,), (1373664504,), (1373664520,), (1373664523,), (1373664529,), (1373664536,), (1373664543,), (1373664562,), (1373664975,), (1373664981,), (1373664992,), (1373665011,), (1373665036,), (1373665055,), (1373686427,), (1373665253,), (1373665576,), (1373665597,), (1373665620,), (1373665631,), (1373665635,), (1373665639,), (1373665735,), (1373665755,), (1373665774,), (1373665792,), (1373665804,), (1373665807,), (1373665863,), (1373665865,), (1373665867,), (1373665869,), (1373665871,), (1373665873,), (1373665945,), (1373665963,), (1373665983,), (1373666004,), (1373666025,), (1373666048,), (1373666247,), (1373666265,), (1373666285,), (1373666306,), (1373666327,), (1373666345,), (1373666547,), (1373666569,), (1373666591,), (1373666615,), (1373666640,), (1373666661,), (1373666772,), (1373666796,), (1373666817,), (1373666874,), (1373666931,), (1373666979,), (1373667254,), (1373667296,), (1373667313,), (1373667320,), (1373667340,), (1373667350,), (1373667388,), (1373667428,), (1373667452,), (1373667476,), (1373667508,), (1373667538,), (1373667571,), (1373667750,), (1373667880,), (1373667910,), (1373667914,), (1373667915,), (1373667917,), (1373667918,), (1373668033,), (1373668039,), (1373668041,), (1373668042,), (1373668057,), (1373668060,), (1373668075,), (1373668076,), (1373668077,), (1373668078,), (1373668079,), (1373668085,), (1373668146,), (1373668200,), (1373668220,), (1373668227,), (1373668238,), (1373668241,), (1373668329,), (1373668330,), (1373668348,), (1373668349,), (1373668351,), (1373668354,), (1373668547,), (1373668550,), (1373668551,), (1373668553,), (1373668556,), (1373668561,), (1373668582,), (1373668598,), (1373668602,), (1373668604,), (1373668606,), (1373668609,), (1373668648,), (1373668650,), (1373668658,), (1373668672,), (1373668673,), (1373668675,), (1373668935,), (1373668969,), (1373668993,), (1373669017,), (1373669045,), (1373669071,), (1373669262,), (1373669308,), (1373669349,), (1373669378,), (1373669404,), (1373669430,), (1373669649,), (1373669683,), (1373669708,), (1373669742,), (1373669772,), (1373669797,), (1373670096,), (1373670128,), (1373670129,), (1373670131,), (1373670133,), (1373670134,), (1373670137,), (1373670159,), (1373670163,), (1373670168,), (1373670169,), (1373670170,), (1373670185,), (1373670259,), (1373670260,), (1373670267,), (1373670282,), (1373670292,), (1373670294,), (1373670364,), (1373670372,), (1373670375,), (1373670389,), (1373670415,), (1373670435,), (1373670505,), (1373670531,), (1373670555,), (1373670587,), (1373670612,), (1373670638,), (1373670779,), (1373670789,), (1373670793,), (1373670800,), (1373670807,), (1373670820,), (1373670851,), (1373670858,), (1373670861,), (1373670863,), (1373670866,), (1373670868,), (1373670897,), (1373670915,), (1373670918,), (1373670920,), (1373670942,), (1373670945,), (1373670947,), (1373671228,), (1373671505,), (1373671530,), (1373671554,), (1373671563,), (1373671572,), (1373671583,), (1373671686,), (1373671693,), (1373671703,), (1373671705,), (1373671708,), (1373671712,), (1373671727,), (1373671729,), (1373671737,), (1373671761,), (1373671785,), (1373671810,), (1373672064,), (1373672067,), (1373672069,), (1373672076,), (1373672079,), (1373672085,), (1373672172,), (1373672175,), (1373672182,), (1373672188,), (1373672191,), (1373672194,), (1373672214,), (1373672253,), (1373672256,), (1373672259,), (1373672261,), (1373672263,), (1373672267,), (1373672285,), (1373672320,), (1373672333,), (1373672359,), (1373672384,), (1373672410,), (1373672424,), (1373672494,), (1373672512,), (1373672517,), (1373672519,), (1373672522,), (1373672525,), (1373672611,), (1373672614,), (1373672616,), (1373672617,), (1373672619,), (1373672622,), (1373686401,), (1373672638,), (1373672641,), (1373672651,), (1373672653,), (1373672656,), (1373672658,), (1373672675,), (1373672697,), (1373672700,), (1373672705,), (1373672714,), (1373672721,), (1373672724,), (1373672741,), (1373672744,), (1373672746,), (1373672748,), (1373672750,), (1373672752,), (1373672769,), (1373672771,), (1373672773,), (1373672774,), (1373672776,), (1373672778,), (1373672805,), (1373672807,), (1373672808,), (1373672810,), (1373672811,), (1373672813,), (1373672833,), (1373672855,), (1373672861,), (1373672869,), (1373672872,), (1373672875,), (1373672878,), (1373672932,), (1373672934,), (1373672948,), (1373672949,), (1373672951,), (1373672953,), (1373673052,), (1373673079,), (1373673104,), (1373673130,), (1373673157,), (1373673182,), (1373673316,), (1373673330,), (1373673338,), (1373673352,), (1373673357,), (1373673379,), (1373673391,), (1373673397,), (1373673412,), (1373673415,), (1373673417,), (1373673419,), (1373673726,), (1373674305,), (1373674323,), (1373674350,), (1373674413,), (1373674474,), (1373674521,), (1373686376,), (1373675097,), (1373675127,), (1373675154,), (1373675180,), (1373675206,), (1373675289,), (1373675636,), (1373675944,), (1373675953,), (1373675955,), (1373675956,), (1373675958,), (1373676022,), (1373676345,), (1373676363,), (1373676365,), (1373676374,), (1373676394,), (1373676419,), (1373676686,), (1373676708,), (1373676716,), (1373676720,), (1373676729,), (1373676732,), (1373676804,), (1373676806,), (1373676808,), (1373676820,), (1373676838,), (1373676878,), (1373676989,), (1373677004,), (1373677011,), (1373677029,), (1373677039,), (1373677043,), (1373677091,), (1373677099,), (1373677101,), (1373677122,), (1373677156,), (1373677175,), (1373677304,), (1373677326,), (1373677351,), (1373677388,), (1373677424,), (1373677446,), (1373677673,), (1373678024,), (1373678032,), (1373678035,), (1373678039,), (1373678047,), (1373678064,), (1373678135,), (1373678305,), (1373678310,), (1373678320,), (1373678330,), (1373678349,), (1373678366,), (1373678446,), (1373678450,), (1373678455,), (1373678475,), (1373678496,), (1373678512,), (1373678741,), (1373678760,), (1373678779,), (1373678791,), (1373678800,), (1373678810,), (1373678942,), (1373678964,), (1373678988,), (1373679028,), (1373679047,), (1373679050,), (1373679084,), (1373679090,), (1373679097,), (1373679104,), (1373679109,), (1373679113,), (1373679291,), (1373679333,), (1373679352,), (1373679369,), (1373679385,), (1373679403,), (1373679524,), (1373679532,), (1373679547,), (1373679574,), (1373679581,), (1373679593,), (1373679658,), (1373679667,), (1373679694,), (1373679714,), (1373679732,), (1373679762,), (1373679947,), (1373679981,), (1373680007,), (1373680025,), (1373680031,), (1373680033,), (1373680066,), (1373680162,), (1373680182,), (1373680198,), (1373680227,), (1373680261,), (1373680294,), (1373680563,), (1373680597,), (1373680609,), (1373680620,), (1373680644,), (1373680658,), (1373680822,), (1373680828,), (1373680830,), (1373680832,), (1373680834,), (1373680843,), (1373680954,), (1373680968,), (1373680972,), (1373680976,), (1373680978,), (1373680981,), (1373681130,), (1373681157,), (1373681184,), (1373681211,), (1373681228,), (1373681248,), (1373681451,), (1373681459,), (1373681472,), (1373681475,), (1373681487,), (1373681492,), (1373681569,), (1373681572,), (1373681575,), (1373681587,), (1373681610,), (1373681622,), (1373681662,), (1373681685,), (1373681700,), (1373681703,), (1373681705,), (1373681709,), (1373681762,), (1373681769,), (1373681774,), (1373681778,), (1373681782,), (1373681787,), (1373681810,), (1373682052,), (1373682069,), (1373682103,), (1373682137,), (1373682158,), (1373682180,), (1373682260,), (1373682262,), (1373682263,), (1373682284,), (1373682316,), (1373682329,), (1373682405,), (1373682413,), (1373682415,), (1373682416,), (1373682418,), (1373682420,), (1373682487,), (1373682515,), (1373682534,), (1373682543,), (1373682561,), (1373682571,), (1373682631,), (1373682642,), (1373682669,), (1373682696,), (1373682725,), (1373682790,), (1373682998,), (1373683028,), (1373683057,), (1373683080,), (1373683099,), (1373683115,), (1373683234,), (1373683251,), (1373683295,), (1373683338,), (1373683388,), (1373683439,), (1373683685,), (1373683705,), (1373683726,), (1373683744,), (1373683748,), (1373683757,), (1373683791,), (1373683792,), (1373683794,), (1373683796,), (1373683799,), (1373683803,), (1373683972,), (1373684065,), (1373684069,), (1373684070,), (1373684099,), (1373684141,), (1373684153,), (1373684204,), (1373684205,), (1373684206,), (1373684207,), (1373684209,), (1373684214,), (1373684233,), (1373684242,), (1373684264,), (1373684285,), (1373684303,), (1373684324,), (1373684439,), (1373684448,), (1373684455,), (1373684456,), (1373684459,), (1373684465,), (1373684506,), (1373684521,), (1373684563,), (1373684593,), (1373684595,), (1373684598,), (1373684609,), (1373684618,), (1373684624,), (1373684625,), (1373684627,), (1373684630,), (1373684642,), (1373684643,), (1373684644,), (1373684646,), (1373684649,), (1373684652,), (1373684667,), (1373684668,), (1373684669,), (1373684671,), (1373684674,), (1373684679,), (1373684729,), (1373684738,), (1373684739,), (1373684742,), (1373684771,), (1373684774,), (1373684795,), (1373684888,), (1373684910,), (1373684919,), (1373684923,), (1373684928,), (1373684938,), (1373685082,), (1373685106,), (1373685134,), (1373685162,), (1373685187,), (1373685209,), (1373685360,), (1373685392,), (1373685431,), (1373685460,), (1373685492,), (1373685510,), (1373685700,), (1373685743,), (1373685785,), (1373685822,), (1373685847,), (1373685855,), (1373685992,), (1373685994,), (1373685995,), (1373685997,), (1373685999,), (1373686001,), (1373686018,), (1373686022,), (1373686027,), (1373686028,), (1373686030,), (1373686033,), (1373686350,), (1373686563,), (1373686590,), (1373686622,), (1373686653,), (1373686678,), (1373687412,), (1373687520,), (1373687618,), (1373687693,), (1373687770,), (1373687874,), (1373688180,), (1373688597,), (1373688670,), (1373688728,), (1373688788,), (1373688820,), (1373688849,), (1373689201,), (1373689209,), (1373689210,), (1373689211,), (1373689236,), (1373689283,), (1373689592,), (1373689618,), (1373689663,), (1373689709,), (1373689752,), (1373689778,), (1373690008,), (1373690037,), (1373690067,), (1373690080,), (1373690139,), (1373690141,), (1373690215,), (1373690242,), (1373690258,), (1373690312,), (1373690315,), (1373690317,), (1373690401,), (1373690402,), (1373690403,), (1373690404,), (1373690406,), (1373690411,), (1373690555,), (1373690580,), (1373690610,), (1373690636,), (1373690665,), (1373690690,), (1373690875,), (1373690903,), (1373690919,), (1373690928,), (1373690930,), (1373690934,), (1373691042,), (1373691095,), (1373691150,), (1373691223,), (1373691276,), (1373691292,), (1373691438,), (1373691509,), (1373691519,), (1373691580,), (1373691604,), (1373691631,), (1373691657,), (1373691833,), (1373691835,), (1373691837,), (1373691838,), (1373691840,), (1373691850,), (1373692066,), (1373692093,), (1373692119,), (1373692147,), (1373692173,), (1373692185,), (1373692300,), (1373692333,), (1373692348,), (1373692354,), (1373692384,), (1373692392,), (1373692501,), (1373692504,), (1373692520,), (1373692523,), (1373692524,), (1373692533,), (1373692624,), (1373692626,), (1373692628,), (1373692629,), (1373692631,), (1373692633,), (1373692658,), (1373692664,), (1373692665,), (1373692670,), (1373692681,), (1373692705,), (1373692776,), (1373692804,), (1373692831,), (1373692860,), (1373692886,), (1373692919,), (1373693211,), (1373693793,), (1373694151,), (1373694153,), (1373694154,), (1373694160,), (1373694191,), (1373694237,), (1373694464,), (1373695465,), (1373695483,), (1373695519,), (1373695599,), (1373695677,), (1373695750,), (1373696027,), (1373696065,), (1373696101,), (1373696127,), (1373696152,), (1373696182,), (1373696661,), (1373696704,), (1373696730,), (1373696750,), (1373696760,), (1373696763,), (1373696776,), (1373696780,), (1373696790,), (1373696792,), (1373696795,), (1373696798,), (1373696885,), (1373696887,), (1373696888,), (1373696903,), (1373696929,), (1373696951,), (1373697094,), (1373697406,), (1373697425,), (1373697440,), (1373697448,), (1373697451,), (1373697453,), (1373697600,), (1373697626,), (1373697652,), (1373697705,), (1373697716,), (1373697740,), (1373697843,), (1373697847,), (1373697851,), (1373697854,), (1373697857,), (1373697869,), (1373697872,), (1373697875,), (1373697877,), (1373697880,), (1373697883,), (1373697957,), (1373698135,), (1373698138,), (1373698140,), (1373698141,), (1373698143,), (1373698165,), (1373698390,), (1373698403,), (1373698405,), (1373698422,), (1373698427,), (1373698433,), (1373698578,), (1373698588,), (1373698591,), (1373698592,), (1373698594,), (1373698598,), (1373698720,), (1373698728,), (1373698733,), (1373698763,), (1373698768,), (1373698781,), (1373698864,), (1373698892,), (1373698921,), (1373698938,), (1373698947,), (1373698982,), (1373699311,), (1373699336,), (1373699360,), (1373699383,), (1373699408,), (1373699435,), (1373699717,), (1373700117,), (1373700171,), (1373700217,), (1373700283,), (1373700380,), (1373700462,), (1373700716,), (1373700750,), (1373700813,), (1373700860,), (1373700886,), (1373700913,), (1373701150,), (1373701193,), (1373701200,), (1373701203,), (1373701205,), (1373701207,), (1373701428,), (1373701459,), (1373701496,), (1373701520,), (1373701547,), (1373701580,), (1373701799,), (1373701812,), (1373701820,), (1373701822,), (1373701824,), (1373701831,), (1373702157,), (1373702178,), (1373702203,), (1373702220,), (1373702234,), (1373702238,), (1373702479,), (1373702490,), (1373702493,), (1373702514,), (1373702540,), (1373702566,), (1373702649,), (1373702651,), (1373702653,), (1373702654,), (1373702656,), (1373702658,), (1373702918,), (1373702945,), (1373702969,), (1373702996,), (1373703020,), (1373703054,), (1373703162,), (1373703538,), (1373703591,), (1373703638,), (1373703687,), (1373703712,), (1373703738,), (1373703997,), (1373704003,), (1373704005,), (1373704006,), (1373704008,), (1373704011,), (1373704154,), (1373704179,), (1373704204,), (1373704230,), (1373704256,), (1373704282,), (1373704408,), (1373704430,), (1373704455,), (1373704478,), (1373704499,), (1373704506,), (1373704754,), (1373704802,), (1373704850,), (1373704934,), (1373704960,), (1373704988,), (1373705111,), (1373705113,), (1373705120,), (1373705144,), (1373705160,), (1373705163,), (1373705690,), (1373706487,), (1373706559,), (1373706613,), (1373706665,), (1373706712,), (1373707137,), (1373707417,), (1373707451,), (1373707499,), (1373707538,), (1373707563,), (1373707604,), (1373707811,), (1373707814,), (1373707816,), (1373707817,), (1373707819,), (1373707822,), (1373708058,), (1373708061,), (1373708064,), (1373708066,), (1373708085,), (1373708112,), (1373708253,), (1373708258,), (1373708261,), (1373708263,), (1373708279,), (1373708305,), (1373708553,), (1373708574,), (1373708580,), (1373708582,), (1373708583,), (1373708589,), (1373708760,), (1373708811,), (1373708853,), (1373708884,), (1373708907,), (1373708912,), (1373709156,), (1373709179,), (1373709200,), (1373709228,), (1373709230,), (1373709233,), (1373709437,), (1373709466,), (1373709471,), (1373709494,), (1373709516,), (1373709635,), (1373709636,), (1373709647,), (1373709659,), (1373709663,), (1373709672,), (1373709872,), (1373710369,), (1373710391,), (1373710425,), (1373710457,), (1373710508,), (1373710550,), (1373710702,), (1373710715,), (1373710743,), (1373710766,), (1373710791,), (1373710826,), (1373711014,), (1373711039,), (1373711046,), (1373711047,), (1373711049,), (1373711051,), (1373711079,), (1373711105,), (1373711108,), (1373711109,), (1373711111,), (1373711114,), (1373711124,), (1373711128,), (1373711131,), (1373711133,), (1373711136,), (1373711145,), (1373711436,), (1373711449,), (1373711472,), (1373711496,), (1373711523,), (1373711533,), (1373711757,), (1373711792,), (1373711802,), (1373711873,), (1373711874,), (1373711881,), (1373711967,), (1373711971,), (1373711973,), (1373711975,), (1373711983,), (1373712011,), (1373712161,), (1373712458,), (1373712463,), (1373712476,), (1373712503,), (1373712530,), (1373712578,), (1373713004,), (1373713049,), (1373713073,), (1373713101,), (1373713126,), (1373713153,), (1373713585,), (1373713619,), (1373713641,), (1373713664,), (1373713687,), (1373713712,), (1373713846,), (1373713868,), (1373713890,), (1373713912,), (1373713934,), (1373713957,), (1373714426,), (1373714452,), (1373714485,), (1373714514,), (1373714521,), (1373714524,), (1373714833,), (1373714857,), (1373714901,), (1373714915,), (1373714924,), (1373714926,), (1373715300,), (1373715318,), (1373715341,), (1373715373,), (1373715401,), (1373715429,), (1373715643,), (1373715667,), (1373715694,), (1373715721,), (1373715752,), (1373715760,), (1373715827,), (1373715871,), (1373715913,), (1373715956,), (1373716007,), (1373716054,), (1373716357,), (1373716383,), (1373716408,), (1373716416,), (1373716418,), (1373716440,), (1373716948,), (1373717373,), (1373717389,), (1373717390,), (1373717392,), (1373717412,), (1373717441,), (1373717463,), (1373717471,), (1373717480,), (1373717490,), (1373717492,), (1373717495,), (1373717535,), (1373717560,), (1373717586,), (1373717609,), (1373717611,), (1373717624,), (1373717717,), (1373717720,), (1373717721,), (1373717723,), (1373717725,), (1373717727,), (1373717958,), (1373717960,), (1373717962,), (1373717963,), (1373717966,), (1373717968,), (1373718124,), (1373718127,), (1373718130,), (1373718132,), (1373718149,), (1373718175,), (1373718299,), (1373718322,), (1373718349,), (1373718373,), (1373718416,), (1373718473,), (1373718692,), (1373718734,), (1373718762,), (1373718788,), (1373718814,), (1373718851,), (1373719190,), (1373719194,), (1373719196,), (1373719198,), (1373719200,), (1373719203,), (1373719546,), (1373720037,), (1373720088,), (1373720149,), (1373720193,), (1373720240,), (1373720289,), (1373720644,), (1373720672,), (1373720702,), (1373720760,), (1373720788,), (1373720829,), (1373720942,), (1373720945,), (1373720948,), (1373720951,), (1373720954,), (1373720958,), (1373721123,), (1373721127,), (1373721130,), (1373721152,), (1373721154,), (1373721162,), (1373721227,), (1373721253,), (1373721273,), (1373721346,), (1373721424,), (1373721481,), (1373721756,), (1373721829,), (1373721900,), (1373721952,), (1373722000,), (1373722032,), (1373722281,), (1373722315,), (1373722338,), (1373722363,), (1373722386,), (1373722411,), (1373722588,), (1373722605,), (1373722615,), (1373722622,), (1373722635,), (1373722639,), (1373722739,), (1373722753,), (1373722766,), (1373722778,), (1373722793,), (1373722809,), (1373722945,), (1373723245,), (1373723307,), (1373723359,), (1373723409,), (1373723474,), (1373723543,), (1373724100,), (1373724122,), (1373724156,), (1373724207,), (1373724265,), (1373724288,), (1373724471,), (1373724486,), (1373724512,), (1373724538,), (1373724551,), (1373724576,), (1373724654,), (1373724672,), (1373724687,), (1373724692,), (1373724713,), (1373724728,), (1373724792,), (1373724794,), (1373724796,), (1373724801,), (1373724817,), (1373724834,), (1373724939,), (1373724941,), (1373724948,), (1373724954,), (1373724962,), (1373724966,), (1373725034,), (1373725047,), (1373725062,), (1373725076,), (1373725093,), (1373725110,), (1373725261,), (1373725278,), (1373725297,), (1373725312,), (1373725329,), (1373725358,), (1373725675,), (1373726065,), (1373726096,), (1373726136,), (1373726174,), (1373726206,), (1373726238,), (1373726431,), (1373726452,), (1373726470,), (1373726486,), (1373726501,), (1373726517,), (1373726777,), (1373726793,), (1373726812,), (1373726830,), (1373726861,), (1373726890,), (1373727325,), (1373727341,), (1373727362,), (1373727381,), (1373727397,), (1373727417,), (1373727694,), (1373727709,), (1373727726,), (1373727743,), (1373727761,), (1373727769,), (1373727858,), (1373727882,), (1373727903,), (1373727922,), (1373727940,), (1373727961,), (1373727980,), (1373727982,), (1373727984,), (1373727985,), (1373727989,), (1373727991,), (1373728042,), (1373728049,), (1373728050,), (1373728063,), (1373728065,), (1373728067,), (1373728153,), (1373728154,), (1373728155,), (1373728156,), (1373728158,), (1373728160,), (1373728180,), (1373728202,), (1373728204,), (1373728206,), (1373728208,), (1373728211,), (1373728213,), (1373728233,), (1373728238,), (1373728240,), (1373728241,), (1373728242,), (1373728244,), (1373728264,), (1373728269,), (1373728270,), (1373728271,), (1373728273,), (1373728276,), (1373734216,), (1373728297,), (1373728303,), (1373728305,), (1373728306,), (1373728309,), (1373728312,), (1373728331,), (1373728333,), (1373728334,), (1373728336,), (1373728338,), (1373728340,), (1373728358,), (1373728368,), (1373728374,), (1373728375,), (1373728377,), (1373728379,), (1373728394,), (1373728397,), (1373728398,), (1373728400,), (1373728401,), (1373728403,), (1373728426,), (1373728430,), (1373728431,), (1373728433,), (1373728435,), (1373728437,), (1373728469,), (1373728477,), (1373728480,), (1373728482,), (1373728483,), (1373728486,), (1373728509,), (1373728541,), (1373728547,), (1373728552,), (1373728557,), (1373728561,), (1373728566,), (1373728622,), (1373728629,), (1373728631,), (1373728633,), (1373728635,), (1373728637,), (1373728651,), (1373728657,), (1373728663,), (1373728665,), (1373728667,), (1373728670,), (1373728689,), (1373728695,), (1373728702,), (1373728703,), (1373728705,), (1373728708,), (1373728732,), (1373728733,), (1373728734,), (1373728736,), (1373728739,), (1373728741,), (1373728790,), (1373728792,), (1373728798,), (1373728799,), (1373728801,), (1373728804,), (1373728818,), (1373728819,), (1373728820,), (1373728821,), (1373728828,), (1373728834,), (1373728852,), (1373728854,), (1373728857,), (1373728861,), (1373728874,), (1373728878,), (1373728974,), (1373728981,), (1373728986,), (1373728992,), (1373728999,), (1373729004,), (1373729039,), (1373729067,), (1373729069,), (1373729071,), (1373729072,), (1373729074,), (1373729077,), (1373729104,), (1373729110,), (1373729111,), (1373729113,), (1373729116,), (1373729119,), (1373729137,), (1373729139,), (1373729141,), (1373729143,), (1373729145,), (1373729147,), (1373729177,), (1373729185,), (1373729187,), (1373729189,), (1373729192,), (1373729194,), (1373729251,), (1373729252,), (1373729253,), (1373729254,), (1373729273,), (1373729277,), (1373729323,), (1373729342,), (1373729364,), (1373729388,), (1373729416,), (1373729457,), (1373729497,), (1373729498,), (1373729499,), (1373729501,), (1373729503,), (1373729507,), (1373729536,), (1373729538,), (1373729543,), (1373729552,), (1373729572,), (1373729590,), (1373729629,), (1373729630,), (1373729631,), (1373729632,), (1373729634,), (1373729636,), (1373729799,), (1373730167,), (1373730436,), (1373730482,), (1373730515,), (1373730541,), (1373730570,), (1373730607,), (1373730736,), (1373730745,), (1373730746,), (1373730763,), (1373730789,), (1373730814,), (1373731128,), (1373731154,), (1373731158,), (1373731169,), (1373731171,), (1373731184,), (1373731297,), (1373731329,), (1373731356,), (1373731374,), (1373731388,), (1373731393,), (1373731449,), (1373731463,), (1373731464,), (1373731465,), (1373731467,), (1373731470,), (1373731493,), (1373731494,), (1373731495,), (1373731496,), (1373731505,), (1373731528,), (1373731646,), (1373731651,), (1373731657,), (1373731659,), (1373731667,), (1373731673,), (1373731826,), (1373731849,), (1373731869,), (1373731888,), (1373731940,), (1373731996,), (1373732266,), (1373732330,), (1373732334,), (1373732336,), (1373732338,), (1373732340,), (1373732342,), (1373732364,), (1373732376,), (1373732380,), (1373732395,), (1373732418,), (1373732420,), (1373732437,), (1373732476,), (1373732500,), (1373732501,), (1373732510,), (1373732512,), (1373732611,), (1373732613,), (1373732643,), (1373732663,), (1373732685,), (1373732688,), (1373732772,), (1373733119,), (1373734131,), (1373734752,), (1373735083,), (1373735089,), (1373735124,), (1373735134,), (1373735141,), (1373735165,), (1373735205,), (1373735293,), (1373735318,), (1373735354,), (1373735358,), (1373735360,), (1373735362,), (1373735367,), (1373735370,), (1373735391,), (1373735394,), (1373735396,), (1373735398,), (1373735399,), (1373735403,), (1373735425,), (1373735428,), (1373735434,), (1373735459,), (1373735484,), (1373735508,), (1373735757,), (1373735758,), (1373735763,), (1373735765,), (1373735769,), (1373735771,), (1373735846,), (1373735848,), (1373735849,), (1373735851,), (1373735853,), (1373735855,), (1373735884,), (1373735918,), (1373735926,), (1373735928,), (1373735929,), (1373735931,), (1373735935,), (1373735951,), (1373735952,), (1373735953,), (1373735955,), (1373735956,), (1373735959,), (1373735979,), (1373735981,), (1373735983,), (1373735985,), (1373735987,), (1373735992,), (1373736012,), (1373736017,), (1373736019,), (1373736022,), (1373736024,), (1373736027,), (1373739148,), (1373770729,), (1373736052,), (1373736054,), (1373736056,), (1373736058,), (1373736060,), (1373736063,), (1373736082,), (1373736084,), (1373736086,), (1373736087,), (1373736089,), (1373736091,), (1373736108,), (1373736119,), (1373736122,), (1373736123,), (1373736126,), (1373736129,), (1373736141,), (1373736151,), (1373736158,), (1373736161,), (1373736162,), (1373736164,), (1373736185,), (1373736191,), (1373736192,), (1373736194,), (1373736195,), (1373736198,), (1373736226,), (1373736228,), (1373736230,), (1373736231,), (1373736232,), (1373736234,), (1373736259,), (1373736282,), (1373736284,), (1373736287,), (1373736289,), (1373736290,), (1373736294,), (1373736315,), (1373736328,), (1373736332,), (1373736333,), (1373736335,), (1373736339,), (1373736358,), (1373736382,), (1373736389,), (1373736392,), (1373736395,), (1373736399,), (1373736400,), (1373736490,), (1373736491,), (1373736494,), (1373736496,), (1373736498,), (1373736501,), (1373736517,), (1373736519,), (1373736521,), (1373736523,), (1373736526,), (1373736531,), (1373736540,), (1373736545,), (1373736584,), (1373736595,), (1373736606,), (1373736614,), (1373736621,), (1373736549,), (1373736552,), (1373736553,), (1373736658,), (1373736903,), (1373736933,), (1373736964,), (1373736993,), (1373737063,), (1373737112,), (1373737421,), (1373737451,), (1373737469,), (1373737498,), (1373737503,), (1373737506,), (1373737566,), (1373737573,), (1373737602,), (1373737626,), (1373737651,), (1373737676,), (1373737903,), (1373737913,), (1373737918,), (1373737942,), (1373737968,), (1373737995,), (1373738060,), (1373738085,), (1373738114,), (1373738138,), (1373738171,), (1373738188,), (1373738213,), (1373738216,), (1373738219,), (1373738221,), (1373738224,), (1373738227,), (1373738251,), (1373738332,), (1373738338,), (1373738339,), (1373738340,), (1373738342,), (1373738345,), (1373738369,), (1373738374,), (1373738376,), (1373738378,), (1373738380,), (1373738385,), (1373738387,), (1373738391,), (1373738396,), (1373738399,), (1373738407,), (1373738410,), (1373738412,), (1373738418,), (1373738423,), (1373738430,), (1373738433,), (1373738434,), (1373739064,), (1373739366,), (1373739589,), (1373739755,), (1373739857,), (1373738523,), (1373738526,), (1373738529,), (1373738532,), (1373738535,), (1373738540,), (1373738542,), (1373738546,), (1373738547,), (1373738550,), (1373738553,), (1373738558,), (1373738560,), (1373738563,), (1373738883,), (1373739209,), (1373739538,), (1373739674,), (1373739810,), (1373738485,), (1373738487,), (1373738490,), (1373738491,), (1373738496,), (1373738502,), (1373738503,), (1373738505,), (1373738508,), (1373738509,), (1373738511,), (1373738515,), (1373738516,), (1373738518,), (1373738983,), (1373739010,), (1373739046,), (1373739344,), (1373739346,), (1373739386,), (1373739562,), (1373739582,), (1373739587,), (1373739684,), (1373739731,), (1373739743,), (1373739819,), (1373739829,), (1373739870,), (1373738566,), (1373738567,), (1373738572,), (1373738576,), (1373738580,), (1373739918,), (1373740774,), (1373740973,), (1373741422,), (1373741468,), (1373741510,), (1373741545,), (1373741598,), (1373741638,), (1373741837,), (1373741861,), (1373741890,), (1373741922,), (1373741956,), (1373741989,), (1373742115,), (1373742318,), (1373742336,), (1373742352,), (1373742380,), (1373742386,), (1373742390,), (1373742434,), (1373742452,), (1373742475,), (1373742492,), (1373742523,), (1373742555,), (1373742659,), (1373742681,), (1373742692,), (1373742697,), (1373742701,), (1373742703,), (1373743479,), (1373743531,), (1373743576,), (1373743639,), (1373743699,), (1373743745,), (1373762039,), (1373770635,), (1373770684,), (1373738439,), (1373738443,), (1373738444,), (1373738448,), (1373738452,), (1373738454,), (1373738460,), (1373738468,), (1373738470,), (1373738471,), (1373738473,), (1373738479,), (1373744094,), (1373744129,), (1373744189,), (1373744246,), (1373744325,), (1373744400,), (1373744997,), (1373745431,), (1373745451,), (1373745499,), (1373745545,), (1373745579,), (1373745613,), (1373745743,), (1373745785,), (1373745812,), (1373745834,), (1373745855,), (1373745880,), (1373746239,), (1373746288,), (1373746344,), (1373746396,), (1373746451,), (1373746503,), (1373746737,), (1373746787,), (1373746830,), (1373746854,), (1373746869,), (1373746872,), (1373747181,), (1373747208,), (1373747235,), (1373747285,), (1373747349,), (1373747403,), (1373747727,), (1373747738,), (1373747744,), (1373747758,), (1373747787,), (1373747830,), (1373748152,), (1373748161,), (1373748184,), (1373748195,), (1373748198,), (1373748201,), (1373748456,), (1373748488,), (1373748516,), (1373748545,), (1373748574,), (1373748600,), (1373748807,), (1373749079,), (1373749088,), (1373749090,), (1373749092,), (1373749093,), (1373749096,), (1373749207,), (1373749210,), (1373749214,), (1373749217,), (1373749284,), (1373749306,), (1373749581,), (1373749598,), (1373749604,), (1373749633,), (1373749660,), (1373749685,), (1373749928,), (1373749933,), (1373749935,), (1373749941,), (1373749945,), (1373749948,), (1373749987,), (1373750049,), (1373750076,), (1373750102,), (1373750130,), (1373750151,), (1373750232,), (1373750242,), (1373750251,), (1373750267,), (1373750294,), (1373750313,), (1373750386,), (1373750389,), (1373750392,), (1373750394,), (1373750396,), (1373750401,), (1373750441,), (1373750443,), (1373750446,), (1373750449,), (1373750452,), (1373750456,), (1373750576,), (1373750579,), (1373750582,), (1373750586,), (1373750588,), (1373750607,), (1373750635,), (1373750637,), (1373750638,), (1373750639,), (1373750640,), (1373750664,), (1373750708,), (1373750983,), (1373750992,), (1373751010,), (1373751021,), (1373751042,), (1373751054,), (1373751070,), (1373751079,), (1373751096,), (1373751105,), (1373751122,), (1373751125,), (1373751204,), (1373751452,), (1373751459,), (1373751468,), (1373751472,), (1373751475,), (1373751493,), (1373751598,), (1373751606,), (1373751608,), (1373751610,), (1373751612,), (1373751614,), (1373751667,), (1373751669,), (1373751671,), (1373751672,), (1373751673,), (1373751675,), (1373751694,), (1373751695,), (1373751696,), (1373751697,), (1373751699,), (1373751701,), (1373751714,), (1373751716,), (1373751718,), (1373751720,), (1373751722,), (1373751724,), (1373751730,), (1373751733,), (1373751735,), (1373751736,), (1373751737,), (1373751741,), (1373751782,), (1373751784,), (1373751786,), (1373751788,), (1373751790,), (1373751792,), (1373751802,), (1373751879,), (1373751881,), (1373751884,), (1373751922,), (1373751958,), (1373751960,), (1373751976,), (1373752011,), (1373752013,), (1373752015,), (1373752018,), (1373752020,), (1373752022,), (1373752039,), (1373752043,), (1373752047,), (1373752050,), (1373752052,), (1373752055,), (1373752072,), (1373752075,), (1373752078,), (1373752080,), (1373752081,), (1373752084,), (1373752104,), (1373752107,), (1373752111,), (1373752113,), (1373752115,), (1373752118,), (1373752135,), (1373752144,), (1373752149,), (1373752150,), (1373752151,), (1373752153,), (1373752179,), (1373752181,), (1373752183,), (1373752184,), (1373752186,), (1373752194,), (1373752260,), (1373752270,), (1373752273,), (1373752275,), (1373752298,), (1373752303,), (1373752348,), (1373752394,), (1373752421,), (1373752424,), (1373752427,), (1373752429,), (1373752432,), (1373752435,), (1373752496,), (1373752630,), (1373752632,), (1373752654,), (1373752684,), (1373752690,), (1373752699,), (1373752746,), (1373752750,), (1373752752,), (1373752755,), (1373752758,), (1373752760,), (1373752871,), (1373752898,), (1373752926,), (1373752948,), (1373752975,), (1373753001,), (1373753037,), (1373753048,), (1373753051,), (1373753054,), (1373753072,), (1373753076,), (1373753095,), (1373753098,), (1373753101,), (1373753103,), (1373753105,), (1373753107,), (1373753139,), (1373753289,), (1373753298,), (1373753304,), (1373753306,), (1373753309,), (1373753313,), (1373753328,), (1373753336,), (1373753339,), (1373753343,), (1373753349,), (1373753367,), (1373753514,), (1373753518,), (1373753521,), (1373753522,), (1373753545,), (1373753561,), (1373753592,), (1373753593,), (1373753595,), (1373753597,), (1373753600,), (1373753602,), (1373753619,), (1373753622,), (1373753625,), (1373753627,), (1373753629,), (1373753631,), (1373753652,), (1373753657,), (1373753659,), (1373753661,), (1373753662,), (1373753664,), (1373753684,), (1373753687,), (1373753690,), (1373753691,), (1373753692,), (1373753697,), (1373754133,), (1373754151,), (1373754186,), (1373754195,), (1373754224,), (1373754237,), (1373754409,), (1373754420,), (1373754438,), (1373754482,), (1373754507,), (1373754522,), (1373754692,), (1373754811,), (1373754829,), (1373754857,), (1373754883,), (1373754910,), (1373754938,), (1373755191,), (1373755194,), (1373755196,), (1373755214,), (1373755241,), (1373755252,), (1373755320,), (1373755322,), (1373755324,), (1373755326,), (1373755329,), (1373755332,), (1373755355,), (1373755362,), (1373755366,), (1373755368,), (1373755371,), (1373755374,), (1373755414,), (1373755426,), (1373755427,), (1373755430,), (1373755432,), (1373755434,), (1373755494,), (1373755496,), (1373755499,), (1373755501,), (1373755504,), (1373755508,), (1373755531,), (1373755539,), (1373755544,), (1373755546,), (1373755548,), (1373755551,), (1373755620,), (1373755625,), (1373755627,), (1373755628,), (1373755629,), (1373755631,), (1373755700,), (1373755702,), (1373755704,), (1373755705,), (1373755707,), (1373755710,), (1373755809,), (1373755921,), (1373755936,), (1373755939,), (1373755953,), (1373755955,), (1373755958,), (1373755977,), (1373755983,), (1373755992,), (1373756002,), (1373756003,), (1373756005,), (1373756053,), (1373756070,), (1373756079,), (1373756088,), (1373756092,), (1373756095,), (1373756099,), (1373756130,), (1373756138,), (1373756145,), (1373756149,), (1373756151,), (1373756153,), (1373756245,), (1373756248,), (1373756250,), (1373756251,), (1373756253,), (1373756256,), (1373756275,), (1373756280,), (1373756284,), (1373756287,), (1373756289,), (1373756291,), (1373756339,), (1373756342,), (1373756346,), (1373756347,), (1373756348,), (1373756350,), (1373756436,), (1373756440,), (1373756454,), (1373756455,), (1373756457,), (1373756460,), (1373756709,), (1373756833,), (1373756836,), (1373756839,), (1373756840,), (1373756842,), (1373756845,), (1373756863,), (1373756866,), (1373756869,), (1373756871,), (1373756873,), (1373756876,), (1373756902,), (1373756924,), (1373756928,), (1373756931,), (1373756933,), (1373756936,), (1373757055,), (1373757059,), (1373757067,), (1373757082,), (1373757089,), (1373757091,), (1373757321,), (1373757326,), (1373757333,), (1373757336,), (1373757338,), (1373757351,), (1373757388,), (1373757391,), (1373757406,), (1373757413,), (1373757417,), (1373757423,), (1373757501,), (1373757567,), (1373757573,), (1373757576,), (1373757589,), (1373757592,), (1373757597,), (1373757732,), (1373757735,), (1373757754,), (1373757763,), (1373757771,), (1373757779,), (1373757884,), (1373758100,), (1373758111,), (1373758114,), (1373758124,), (1373758126,), (1373758130,), (1373758148,), (1373758150,), (1373758152,), (1373758154,), (1373758157,), (1373758160,), (1373758175,), (1373758178,), (1373758181,), (1373758184,), (1373758187,), (1373758189,), (1373758205,), (1373758215,), (1373758220,), (1373758222,), (1373758223,), (1373758224,), (1373758245,), (1373758267,), (1373758290,), (1373758314,), (1373758335,), (1373758337,), (1373758439,), (1373758444,), (1373758452,), (1373758455,), (1373758475,), (1373758478,), (1373758555,), (1373758558,), (1373758561,), (1373758563,), (1373758564,), (1373758566,), (1373758666,), (1373758672,), (1373758676,), (1373758678,), (1373758680,), (1373758683,), (1373758745,), (1373758746,), (1373758747,), (1373758748,), (1373758750,), (1373758752,), (1373758908,), (1373758955,), (1373758959,), (1373758961,), (1373758963,), (1373758965,), (1373758966,), (1373758983,), (1373758984,), (1373758985,), (1373758986,), (1373758995,), (1373759005,), (1373759058,), (1373759060,), (1373759063,), (1373759065,), (1373759067,), (1373759069,), (1373759269,), (1373759283,), (1373759286,), (1373759303,), (1373759306,), (1373759311,), (1373759327,), (1373759356,), (1373759381,), (1373759407,), (1373759439,), (1373759462,), (1373759503,), (1373759507,), (1373759516,), (1373759520,), (1373759523,), (1373759535,), (1373759559,), (1373759563,), (1373759566,), (1373759567,), (1373759569,), (1373759573,), (1373759665,), (1373759691,), (1373759693,), (1373759712,), (1373759715,), (1373759724,), (1373759820,), (1373759824,), (1373759827,), (1373759829,), (1373759832,), (1373759835,), (1373759855,), (1373759877,), (1373759880,), (1373759882,), (1373759884,), (1373759885,), (1373759888,), (1373759914,), (1373759915,), (1373759917,), (1373759919,), (1373759921,), (1373759923,), (1373760074,), (1373760328,), (1373760352,), (1373760362,), (1373760421,), (1373760500,), (1373760612,), (1373760680,), (1373760685,), (1373760688,), (1373760695,), (1373760702,), (1373760705,), (1373760738,), (1373760750,), (1373760762,), (1373760769,), (1373760774,), (1373760778,), (1373761423,), (1373761873,), (1373761914,), (1373761943,), (1373761984,), (1373762014,), (1373762431,), (1373762665,), (1373762816,), (1373762849,), (1373762876,), (1373762901,), (1373762928,), (1373762953,), (1373763212,), (1373763238,), (1373763266,), (1373763292,), (1373763316,), (1373763341,), (1373763463,), (1373763495,), (1373763526,), (1373763565,), (1373763576,), (1373763579,), (1373763683,), (1373763686,), (1373763689,), (1373763692,), (1373763694,), (1373763697,), (1373763737,), (1373763740,), (1373763742,), (1373763745,), (1373763748,), (1373763750,), (1373763846,), (1373763848,), (1373763879,), (1373763880,), (1373763932,), (1373763936,), (1373764087,), (1373764165,), (1373764168,), (1373764171,), (1373764173,), (1373764175,), (1373764178,), (1373764206,), (1373764243,), (1373764246,), (1373764248,), (1373764269,), (1373764270,), (1373764272,), (1373764385,), (1373764396,), (1373764399,), (1373764401,), (1373764403,), (1373764405,), (1373764439,), (1373764443,), (1373764446,), (1373764466,), (1373764482,), (1373764484,), (1373770580,), (1373764534,), (1373764540,), (1373764543,), (1373764546,), (1373764566,), (1373764569,), (1373764585,), (1373764610,), (1373764637,), (1373764662,), (1373764689,), (1373764717,), (1373764734,), (1373764737,), (1373764740,), (1373764743,), (1373764746,), (1373764748,), (1373764788,), (1373764791,), (1373764795,), (1373764799,), (1373764818,), (1373764820,), (1373764908,), (1373764937,), (1373764943,), (1373764945,), (1373764950,), (1373764952,), (1373765029,), (1373765053,), (1373765077,), (1373765081,), (1373765084,), (1373765086,), (1373765087,), (1373765209,), (1373765314,), (1373765339,), (1373765348,), (1373765350,), (1373765352,), (1373765354,), (1373765373,), (1373765415,), (1373765422,), (1373765425,), (1373765439,), (1373765442,), (1373765463,), (1373765491,), (1373765494,), (1373765497,), (1373765500,), (1373765503,), (1373765506,), (1373765535,), (1373765542,), (1373765547,), (1373765570,), (1373765586,), (1373765588,), (1373765618,), (1373765623,), (1373765646,), (1373765674,), (1373765690,), (1373765695,), (1373765716,), (1373765726,), (1373765729,), (1373765732,), (1373765734,), (1373765738,), (1373765776,), (1373765797,), (1373765806,), (1373765808,), (1373765809,), (1373765811,), (1373765814,), (1373765826,), (1373765850,), (1373765858,), (1373765861,), (1373765862,), (1373765868,), (1373765904,), (1373765933,), (1373766059,), (1373766065,), (1373766068,), (1373766071,), (1373766074,), (1373766078,), (1373766093,), (1373766097,), (1373766101,), (1373766103,), (1373766105,), (1373766106,), (1373766134,), (1373766145,), (1373766153,), (1373766155,), (1373766157,), (1373766159,), (1373766226,), (1373766238,), (1373766243,), (1373766245,), (1373766246,), (1373766257,), (1373766287,), (1373766290,), (1373766300,), (1373766307,), (1373766311,), (1373766313,), (1373766395,), (1373766424,), (1373766494,), (1373766565,), (1373766591,), (1373766619,), (1373766740,), (1373767106,), (1373767165,), (1373767192,), (1373767216,), (1373767221,), (1373767234,), (1373767337,), (1373767348,), (1373767351,), (1373767353,), (1373767356,), (1373767360,), (1373767480,), (1373767494,), (1373767496,), (1373767498,), (1373767501,), (1373767503,), (1373767519,), (1373767521,), (1373767528,), (1373767530,), (1373767533,), (1373767534,), (1373767554,), (1373767556,), (1373767558,), (1373767559,), (1373767560,), (1373767564,), (1373767606,), (1373767621,), (1373767629,), (1373767635,), (1373767637,), (1373767645,), (1373767866,), (1373767868,), (1373767870,), (1373767871,), (1373767920,), (1373767922,), (1373767940,), (1373767942,), (1373767944,), (1373767945,), (1373767948,), (1373767951,), (1373767979,), (1373767981,), (1373767982,), (1373767985,), (1373767986,), (1373767989,), (1373768037,), (1373768199,), (1373768201,), (1373768203,), (1373768204,), (1373768220,), (1373768243,), (1373768304,), (1373768328,), (1373768352,), (1373768353,), (1373768356,), (1373768359,), (1373768580,), (1373768607,), (1373768630,), (1373768653,), (1373768678,), (1373768737,), (1373769016,), (1373769041,), (1373769057,), (1373769059,), (1373769064,), (1373769066,), (1373769146,), (1373769149,), (1373769152,), (1373769154,), (1373769155,), (1373769158,), (1373769178,), (1373769183,), (1373769185,), (1373769188,), (1373769198,), (1373769208,), (1373770504,), (1373771080,), (1373771702,), (1373771755,), (1373771791,), (1373771815,), (1373771842,), (1373771866,), (1373772115,), (1373772118,), (1373772120,), (1373772121,), (1373772123,), (1373772126,), (1373772301,), (1373772305,), (1373772307,), (1373772309,), (1373772330,), (1373772356,), (1373772478,), (1373772483,), (1373772489,), (1373772491,), (1373772494,), (1373772498,), (1373772560,), (1373772588,), (1373772603,), (1373772612,), (1373772634,), (1373772675,), (1373772962,), (1373772971,), (1373772975,), (1373772978,), (1373773011,), (1373773065,), (1373773198,), (1373773204,), (1373773206,), (1373773219,), (1373773232,), (1373773251,), (1373773322,), (1373773327,), (1373773357,), (1373773361,), (1373773364,), (1373773377,), (1373773417,), (1373773451,), (1373773492,), (1373773524,), (1373773527,), (1373773529,), (1373773843,), (1373773870,), (1373773900,), (1373773907,), (1373773918,), (1373773988,), (1373774208,), (1373774391,), (1373774519,), (1373774524,), (1373774533,), (1373774536,), (1373774538,), (1373774541,), (1373774670,), (1373774692,), (1373774702,), (1373774705,), (1373774708,), (1373774722,), (1373774794,), (1373774797,), (1373774800,), (1373774802,), (1373774821,), (1373774845,), (1373774880,), (1373774882,), (1373774885,), (1373774887,), (1373774888,), (1373774891,), (1373774933,), (1373774940,), (1373774951,), (1373774976,), (1373775000,), (1373775029,), (1373775055,), (1373775057,), (1373775059,), (1373775060,), (1373775061,), (1373775064,), (1373775081,), (1373775083,), (1373775084,), (1373775086,), (1373775088,), (1373775089,), (1373775128,), (1373775270,), (1373775296,), (1373775320,), (1373775344,), (1373775369,), (1373775394,), (1373775594,), (1373775602,), (1373775607,), (1373775612,), (1373775615,), (1373775619,), (1373775776,), (1373775794,), (1373775798,), (1373775820,), (1373775822,), (1373775826,), (1373775918,), (1373775921,), (1373775925,), (1373775926,), (1373775929,), (1373775936,), (1373776171,), (1373776180,), (1373776186,), (1373776188,), (1373776189,), (1373776192,), (1373776207,), (1373776208,), (1373776210,), (1373776212,), (1373776213,), (1373776216,), (1373776266,), (1373776272,), (1373776274,), (1373776275,), (1373776277,), (1373776280,), (1373776338,), (1373776340,), (1373776343,), (1373776345,), (1373776349,), (1373776353,), (1373776374,), (1373776386,), (1373776390,), (1373776394,), (1373776398,), (1373776402,), (1373776490,), (1373776857,), (1373776883,), (1373776884,), (1373776886,), (1373776887,), (1373776889,), (1373776892,), (1373776954,), (1373776982,), (1373777010,), (1373777012,), (1373777026,), (1373777033,), (1373777123,), (1373777127,), (1373777135,), (1373777136,), (1373777145,), (1373777157,), (1373777230,), (1373777235,), (1373777236,), (1373777237,), (1373777239,), (1373777242,), (1373777259,), (1373777265,), (1373777271,), (1373777275,), (1373777277,), (1373777281,), (1373777294,), (1373777299,), (1373777301,), (1373777303,), (1373777306,), (1373777310,), (1373777322,), (1373777323,), (1373777324,), (1373777325,), (1373777327,), (1373777330,), (1373777352,), (1373777353,), (1373777388,), (1373777431,), (1373777456,), (1373777487,), (1373777797,), (1373777833,), (1373777835,), (1373777836,), (1373777837,), (1373777839,), (1373777841,), (1373777857,), (1373777858,), (1373777859,), (1373777860,), (1373777862,), (1373777863,), (1373777887,), (1373777889,), (1373777890,), (1373777891,), (1373777894,), (1373777896,), (1373777908,), (1373777920,), (1373777927,), (1373777929,), (1373777933,), (1373777939,), (1373777952,), (1373777958,), (1373777959,), (1373777960,), (1373777962,), (1373777963,), (1373777982,), (1373777984,), (1373777986,), (1373777988,), (1373777989,), (1373777991,), (1373778014,), (1373778015,), (1373778016,), (1373778017,), (1373778019,), (1373778022,), (1373778039,), (1373778040,), (1373778041,), (1373778042,), (1373778044,), (1373778046,), (1373778070,), (1373778076,), (1373778077,), (1373778079,), (1373778082,), (1373778085,), (1373778119,), (1373778121,), (1373778123,), (1373778125,), (1373778128,), (1373778131,), (1373778155,), (1373778170,), (1373778171,), (1373778173,), (1373778175,), (1373778178,), (1373778181,), (1373778238,), (1373778242,), (1373778245,), (1373778247,), (1373778250,), (1373778268,), (1373778341,), (1373778345,), (1373778347,), (1373778348,), (1373778351,), (1373778354,), (1373778409,), (1373778411,), (1373778413,), (1373778414,), (1373778416,), (1373778418,), (1373778527,), (1373778547,), (1373778552,), (1373778554,), (1373778567,), (1373778570,), (1373778700,), (1373778728,), (1373778821,), (1373778894,), (1373778945,), (1373778996,), (1373779346,), (1373779402,), (1373779604,), (1373779633,), (1373779658,), (1373779687,), (1373779710,), (1373779739,), (1373780022,), (1373780248,), (1373780253,), (1373780256,), (1373780263,), (1373780298,), (1373780346,), (1373780754,), (1373780796,), (1373780832,), (1373780863,), (1373780903,), (1373780954,), (1373781243,), (1373781248,), (1373781251,), (1373781254,), (1373781256,), (1373781260,), (1373781445,), (1373781450,), (1373781452,), (1373781454,), (1373781457,), (1373781478,), (1373781600,), (1373781604,), (1373781606,), (1373781607,), (1373781609,), (1373781612,), (1373781635,), (1373781637,), (1373781639,), (1373781641,), (1373781643,), (1373781646,), (1373781668,), (1373781672,), (1373781674,), (1373781675,), (1373781678,), (1373781681,), (1373781728,), (1373781731,), (1373781749,), (1373781779,), (1373781797,), (1373781800,), (1373781872,), (1373781908,), (1373781912,), (1373781915,), (1373781917,), (1373781920,), (1373781923,), (1373781963,), (1373781967,), (1373781975,), (1373781988,), (1373781999,), (1373782005,), (1373782092,), (1373782095,), (1373782099,), (1373782101,), (1373782104,), (1373782107,), (1373782125,), (1373782134,), (1373782138,), (1373782141,), (1373782143,), (1373782146,), (1373782160,), (1373782162,), (1373782164,), (1373782166,), (1373782168,), (1373782171,), (1373782186,), (1373782188,), (1373782190,), (1373782191,), (1373782194,), (1373782197,), (1373782212,), (1373782291,), (1373782293,), (1373782304,), (1373782321,), (1373782324,), (1373782328,), (1373782359,), (1373782360,), (1373782361,), (1373782362,), (1373782364,), (1373782366,), (1373782488,), (1373782750,), (1373782757,), (1373782760,), (1373782762,), (1373782765,), (1373782768,), (1373782784,), (1373782787,), (1373782789,), (1373782791,), (1373782794,), (1373782797,), (1373782810,), (1373782814,), (1373782817,), (1373782818,), (1373782821,), (1373782823,), (1373782842,), (1373782844,), (1373782846,), (1373782848,), (1373782850,), (1373782852,), (1373782862,), (1373782863,), (1373782866,), (1373782869,), (1373782872,), (1373782875,), (1373782891,), (1373782902,), (1373782906,), (1373782908,), (1373782910,), (1373782914,), (1373782927,), (1373782929,), (1373782931,), (1373782932,), (1373782934,), (1373782935,), (1373782949,), (1373782956,), (1373782963,), (1373782965,), (1373782968,), (1373782970,), (1373792334,), (1373804155,), (1373783145,), (1373783277,), (1373783282,), (1373783287,), (1373783288,), (1373783290,), (1373783292,), (1373783303,), (1373783306,), (1373783309,), (1373783310,), (1373783311,), (1373783313,), (1373783334,), (1373783339,), (1373783342,), (1373783343,), (1373783346,), (1373783349,), (1373783363,), (1373783366,), (1373783369,), (1373783370,), (1373783373,), (1373783377,), (1373783399,), (1373783404,), (1373783407,), (1373783409,), (1373783411,), (1373783414,), (1373783498,), (1373783500,), (1373783501,), (1373783503,), (1373783504,), (1373783506,), (1373783529,), (1373783531,), (1373783533,), (1373783534,), (1373783536,), (1373783537,), (1373783553,), (1373783555,), (1373783556,), (1373783558,), (1373783559,), (1373783562,), (1373783579,), (1373783582,), (1373783592,), (1373783595,), (1373783596,), (1373783606,), (1373783657,), (1373783732,), (1373783755,), (1373783778,), (1373783807,), (1373783831,), (1373783857,), (1373784064,), (1373784066,), (1373784067,), (1373784088,), (1373784111,), (1373784151,), (1373784607,), (1373784614,), (1373784618,), (1373784619,), (1373784621,), (1373784624,), (1373784772,), (1373784791,), (1373784797,), (1373784800,), (1373784818,), (1373784821,), (1373784905,), (1373784935,), (1373784993,), (1373785026,), (1373785056,), (1373785083,), (1373785191,), (1373785194,), (1373785197,), (1373785200,), (1373785202,), (1373785225,), (1373785240,), (1373785251,), (1373785258,), (1373785262,), (1373785267,), (1373785277,), (1373785462,), (1373785489,), (1373785508,), (1373785511,), (1373785514,), (1373785518,), (1373785535,), (1373785539,), (1373785541,), (1373785542,), (1373785544,), (1373785546,), (1373785579,), (1373785613,), (1373785624,), (1373785628,), (1373785632,), (1373785633,), (1373785636,), (1373785715,), (1373785716,), (1373785721,), (1373785731,), (1373785733,), (1373785736,), (1373785752,), (1373785759,), (1373785760,), (1373785761,), (1373785766,), (1373785794,), (1373785829,), (1373785830,), (1373785832,), (1373785833,), (1373785835,), (1373785871,), (1373785907,), (1373785909,), (1373785910,), (1373785911,), (1373785913,), (1373785915,), (1373785936,), (1373785938,), (1373785939,), (1373785941,), (1373785942,), (1373785944,), (1373785960,), (1373785962,), (1373785964,), (1373785965,), (1373785968,), (1373785970,), (1373786804,), (1373786878,), (1373786948,), (1373787020,), (1373787090,), (1373787146,), (1373787632,), (1373787663,), (1373787686,), (1373787713,), (1373787738,), (1373787789,), (1373788048,), (1373788273,), (1373788287,), (1373788310,), (1373788316,), (1373788318,), (1373788322,), (1373788339,), (1373788387,), (1373788389,), (1373788391,), (1373788392,), (1373788395,), (1373788441,), (1373788459,), (1373788460,), (1373788462,), (1373788465,), (1373788469,), (1373788472,), (1373788480,), (1373788481,), (1373788483,), (1373788486,), (1373788488,), (1373788492,), (1373788511,), (1373788513,), (1373788515,), (1373788517,), (1373788522,), (1373788527,), (1373788542,), (1373788572,), (1373788588,), (1373788590,), (1373788593,), (1373788595,), (1373788611,), (1373788618,), (1373788628,), (1373788630,), (1373788631,), (1373788633,), (1373788681,), (1373788683,), (1373788685,), (1373788686,), (1373788687,), (1373788688,), (1373788709,), (1373788725,), (1373788729,), (1373788732,), (1373788734,), (1373788736,), (1373788738,), (1373788746,), (1373788758,), (1373788766,), (1373788769,), (1373788770,), (1373788772,), (1373788786,), (1373788790,), (1373788792,), (1373788793,), (1373788795,), (1373788797,), (1373788810,), (1373788814,), (1373788821,), (1373788828,), (1373788831,), (1373788833,), (1373788852,), (1373788854,), (1373788856,), (1373788859,), (1373788863,), (1373788866,), (1373788874,), (1373788885,), (1373788889,), (1373788892,), (1373788895,), (1373788896,), (1373788905,), (1373788907,), (1373788909,), (1373788910,), (1373788912,), (1373788914,), (1373788931,), (1373788935,), (1373788938,), (1373788940,), (1373788944,), (1373788946,), (1373788989,), (1373789006,), (1373789008,), (1373789010,), (1373789011,), (1373789014,), (1373789017,), (1373789022,), (1373789024,), (1373789026,), (1373789028,), (1373789030,), (1373789034,), (1373789052,), (1373789054,), (1373789057,), (1373789060,), (1373789063,), (1373789067,), (1373789073,), (1373789074,), (1373789077,), (1373789079,), (1373789081,), (1373789085,), (1373789105,), (1373789125,), (1373789150,), (1373789157,), (1373789158,), (1373789159,), (1373789161,), (1373789162,), (1373789176,), (1373789177,), (1373789178,), (1373789179,), (1373789181,), (1373789183,), (1373789205,), (1373789211,), (1373789213,), (1373789215,), (1373789217,), (1373789220,), (1373789266,), (1373789268,), (1373789269,), (1373789271,), (1373789273,), (1373789275,), (1373789308,), (1373789328,), (1373789331,), (1373789334,), (1373789335,), (1373789337,), (1373789340,), (1373789351,), (1373789358,), (1373789364,), (1373789365,), (1373789368,), (1373789372,), (1373789384,), (1373789386,), (1373789389,), (1373789392,), (1373789394,), (1373789398,), (1373789409,), (1373789414,), (1373789428,), (1373789435,), (1373789437,), (1373789440,), (1373789455,), (1373789477,), (1373789479,), (1373789483,), (1373789496,), (1373789504,), (1373789506,), (1373789516,), (1373789518,), (1373789520,), (1373789522,), (1373789525,), (1373789530,), (1373789540,), (1373789543,), (1373789550,), (1373789558,), (1373789566,), (1373789570,), (1373789623,), (1373789633,), (1373789636,), (1373789660,), (1373789669,), (1373789680,), (1373789684,), (1373789700,), (1373789701,), (1373789702,), (1373789704,), (1373789707,), (1373789711,), (1373789731,), (1373789732,), (1373789734,), (1373789736,), (1373789739,), (1373789743,), (1373789756,), (1373789771,), (1373789787,), (1373789789,), (1373789794,), (1373789806,), (1373789901,), (1373789908,), (1373789915,), (1373789916,), (1373789918,), (1373789921,), (1373790037,), (1373790063,), (1373790087,), (1373790111,), (1373790133,), (1373790157,), (1373790182,), (1373790183,), (1373790185,), (1373790187,), (1373790190,), (1373790194,), (1373790208,), (1373790210,), (1373790212,), (1373790214,), (1373790217,), (1373790220,), (1373790306,), (1373790324,), (1373790327,), (1373790329,), (1373790352,), (1373790378,), (1373790499,), (1373790762,), (1373790763,), (1373790764,), (1373790765,), (1373790767,), (1373790783,), (1373791087,), (1373791089,), (1373791091,), (1373791093,), (1373791094,), (1373791096,), (1373791112,), (1373791119,), (1373791124,), (1373791125,), (1373791127,), (1373791130,), (1373791193,), (1373791197,), (1373791198,), (1373791204,), (1373791205,), (1373791220,), (1373791305,), (1373791306,), (1373791307,), (1373791308,), (1373791321,), (1373791348,), (1373791481,), (1373791483,), (1373791485,), (1373791486,), (1373791488,), (1373791491,), (1373791637,), (1373791653,), (1373791664,), (1373791672,), (1373791678,), (1373791680,), (1373792275,), (1373792331,), (1373792948,), (1373792977,), (1373793014,), (1373793037,), (1373793065,), (1373793729,), (1373794650,), (1373794700,), (1373794735,), (1373794783,), (1373794828,), (1373794887,), (1373795187,), (1373795209,), (1373795234,), (1373795263,), (1373795310,), (1373795339,), (1373795480,), (1373795524,), (1373795536,), (1373795539,), (1373795543,), (1373795569,), (1373795885,), (1373795937,), (1373795988,), (1373796026,), (1373796031,), (1373796035,), (1373796131,), (1373796148,), (1373796166,), (1373796172,), (1373796175,), (1373796177,), (1373796238,), (1373796239,), (1373796243,), (1373796253,), (1373796283,), (1373796296,), (1373796456,), (1373796477,), (1373796482,), (1373796485,), (1373796492,), (1373796495,), (1373796907,), (1373796953,), (1373796991,), (1373797029,), (1373797057,), (1373797070,), (1373797277,), (1373797321,), (1373797353,), (1373797378,), (1373797406,), (1373797436,), (1373797748,), (1373797821,), (1373797822,), (1373797823,), (1373797824,), (1373797826,), (1373797829,), (1373797882,), (1373797903,), (1373797929,), (1373797953,), (1373797956,), (1373797959,), (1373798081,), (1373798082,), (1373798084,), (1373798085,), (1373798086,), (1373798089,), (1373798398,), (1373798433,), (1373798463,), (1373798491,), (1373798538,), (1373798575,), (1373798690,), (1373798753,), (1373798781,), (1373798782,), (1373798801,), (1373798833,), (1373798939,), (1373798955,), (1373798959,), (1373798968,), (1373798970,), (1373798972,), (1373798991,), (1373798992,), (1373799003,), (1373799004,), (1373799005,), (1373799009,), (1373799102,), (1373799104,), (1373799112,), (1373799115,), (1373799117,), (1373799121,), (1373799230,), (1373799232,), (1373799234,), (1373799235,), (1373799236,), (1373799238,), (1373799305,), (1373799586,), (1373799590,), (1373799597,), (1373799604,), (1373799609,), (1373799616,), (1373799692,), (1373799693,), (1373799720,), (1373799773,), (1373799775,), (1373799778,), (1373799796,), (1373799797,), (1373799798,), (1373799799,), (1373799800,), (1373799803,), (1373799824,), (1373799852,), (1373799875,), (1373799902,), (1373799927,), (1373799953,), (1373800298,), (1373800310,), (1373800316,), (1373800322,), (1373800338,), (1373800347,), (1373800652,), (1373800678,), (1373800706,), (1373800759,), (1373800789,), (1373800793,), (1373800872,), (1373800889,), (1373800929,), (1373800981,), (1373801035,), (1373801086,), (1373801309,), (1373801312,), (1373801315,), (1373801317,), (1373801319,), (1373801323,), (1373801342,), (1373801343,), (1373801346,), (1373801348,), (1373801350,), (1373801353,), (1373801385,), (1373801424,), (1373801445,), (1373801469,), (1373801495,), (1373801543,), (1373801633,), (1373801850,), (1373801856,), (1373801861,), (1373801866,), (1373801869,), (1373801872,), (1373801889,), (1373801892,), (1373801896,), (1373801900,), (1373801904,), (1373801907,), (1373801913,), (1373801914,), (1373801916,), (1373801917,), (1373801920,), (1373801923,), (1373801940,), (1373801942,), (1373801944,), (1373801945,), (1373801947,), (1373801952,), (1373802004,), (1373802007,), (1373802010,), (1373802012,), (1373802015,), (1373802019,), (1373802033,), (1373802039,), (1373802041,), (1373802045,), (1373802052,), (1373802055,), (1373802089,), (1373802092,), (1373802095,), (1373802101,), (1373802102,), (1373802104,), (1373802130,), (1373802132,), (1373802133,), (1373802135,), (1373802137,), (1373802140,), (1373802163,), (1373802184,), (1373802187,), (1373802189,), (1373802190,), (1373802191,), (1373802193,), (1373802209,), (1373802220,), (1373802222,), (1373802223,), (1373802225,), (1373802227,), (1373802239,), (1373802240,), (1373802243,), (1373802245,), (1373802248,), (1373802251,), (1373802265,), (1373802274,), (1373802281,), (1373802293,), (1373802300,), (1373802302,), (1373802315,), (1373802317,), (1373802319,), (1373802320,), (1373802322,), (1373802326,), (1373802351,), (1373802354,), (1373802357,), (1373802360,), (1373802362,), (1373802366,), (1373802379,), (1373802389,), (1373802393,), (1373802395,), (1373802398,), (1373802403,), (1373802423,), (1373802434,), (1373802435,), (1373802437,), (1373802440,), (1373802444,), (1373802464,), (1373802478,), (1373802490,), (1373802492,), (1373802495,), (1373802499,), (1373802503,), (1373802588,), (1373802596,), (1373802597,), (1373802598,), (1373802600,), (1373802603,), (1373802723,), (1373802753,), (1373802759,), (1373802760,), (1373802763,), (1373802787,), (1373802867,), (1373802939,), (1373802946,), (1373802949,), (1373802951,), (1373802953,), (1373802956,), (1373802969,), (1373802972,), (1373802975,), (1373802977,), (1373802978,), (1373802981,), (1373803000,), (1373803010,), (1373803017,), (1373803019,), (1373803021,), (1373803036,), (1373804130,), (1373804674,), (1373804709,), (1373804776,), (1373804818,), (1373804845,), (1373805136,), (1373805319,), (1373805322,), (1373805325,), (1373805327,), (1373805330,), (1373805332,), (1373805349,), (1373805352,), (1373805359,), (1373805361,), (1373805363,), (1373805366,), (1373805379,), (1373805381,), (1373805382,), (1373805384,), (1373805387,), (1373805391,), (1373805412,), (1373805459,), (1373805477,), (1373805479,), (1373805482,), (1373805484,), (1373805499,), (1373805501,), (1373805503,), (1373805505,), (1373805507,), (1373805511,), (1373805525,), (1373805526,), (1373805537,), (1373805539,), (1373805542,), (1373805545,), (1373805560,), (1373805563,), (1373805565,), (1373805567,), (1373805568,), (1373805571,), (1373805588,), (1373805590,), (1373805592,), (1373805601,), (1373805603,), (1373805605,), (1373805720,), (1373805851,), (1373805858,), (1373805859,), (1373805861,), (1373805864,), (1373805868,), (1373805882,), (1373805883,), (1373805885,), (1373805887,), (1373805889,), (1373805894,), (1373805909,), (1373805913,), (1373805914,), (1373805915,), (1373805930,), (1373805939,), (1373805960,), (1373805962,), (1373805973,), (1373805975,), (1373805977,), (1373805979,), (1373806219,), (1373806230,), (1373806245,), (1373806249,), (1373806252,), (1373806268,), (1373806294,), (1373806297,), (1373806300,), (1373806349,), (1373806378,), (1373806380,), (1373806400,), (1373806403,), (1373806410,), (1373806411,), (1373806414,), (1373806416,), (1373806430,), (1373806432,), (1373806434,), (1373806441,), (1373806443,), (1373806445,), (1373806518,), (1373806521,), (1373806523,), (1373806524,), (1373806530,), (1373806534,), (1373806553,), (1373806554,), (1373806555,), (1373806580,), (1373806589,), (1373806592,), (1373806802,), (1373807129,), (1373807130,), (1373807131,), (1373807132,), (1373807134,), (1373807136,), (1373807165,), (1373807180,), (1373807185,), (1373807186,), (1373807188,), (1373807190,), (1373807270,), (1373807307,), (1373807308,), (1373807309,), (1373807310,), (1373807313,), (1373807321,), (1373807346,), (1373807347,), (1373807348,), (1373807349,), (1373807351,), (1373807352,), (1373807367,), (1373807374,), (1373807379,), (1373807381,), (1373807384,), (1373807386,), (1373807398,), (1373807399,), (1373807400,), (1373807401,), (1373807402,), (1373807404,), (1373807417,), (1373807420,), (1373807422,), (1373807423,), (1373807426,), (1373807430,), (1373807463,), (1373807484,), (1373807485,), (1373807486,), (1373807488,), (1373807490,), (1373807492,), (1373807504,), (1373807505,), (1373807506,), (1373807507,), (1373807509,), (1373807512,), (1373807532,), (1373807533,), (1373807534,), (1373807535,), (1373807537,), (1373807541,), (1373807555,), (1373807556,), (1373807557,), (1373807558,), (1373807560,), (1373807563,), (1373807587,), (1373807589,), (1373807590,), (1373807591,), (1373807593,), (1373807595,), (1373807613,), (1373807625,), (1373807649,), (1373807675,), (1373807699,), (1373807724,), (1373807882,), (1373807883,), (1373807884,), (1373807885,), (1373807887,), (1373807895,), (1373807945,), (1373807947,), (1373807949,), (1373807951,), (1373807954,), (1373807956,), (1373807969,), (1373807975,), (1373807980,), (1373807982,), (1373807984,), (1373807988,), (1373808049,), (1373808073,), (1373808075,), (1373808077,), (1373808078,), (1373808080,), (1373808082,), (1373808105,), (1373808107,), (1373808108,), (1373808110,), (1373808112,), (1373808114,), (1373808141,), (1373808151,), (1373808174,), (1373808178,), (1373808180,), (1373808182,), (1373808270,), (1373808297,), (1373808324,), (1373808347,), (1373808349,), (1373808352,), (1373808553,), (1373808579,), (1373808603,), (1373808629,), (1373808636,), (1373808638,), (1373808755,), (1373808757,), (1373808759,), (1373808775,), (1373808779,), (1373808786,), (1373808854,), (1373808858,), (1373808862,), (1373808865,), (1373808866,), (1373808868,), (1373808885,), (1373808887,), (1373808888,), (1373808890,), (1373808891,), (1373808893,), (1373808914,), (1373808916,), (1373808918,), (1373808921,), (1373808924,), (1373808926,), (1373808957,), (1373808981,), (1373808983,), (1373808985,), (1373808986,), (1373808988,), (1373808990,), (1373809069,), (1373809070,), (1373809072,), (1373809073,), (1373809075,), (1373809077,), (1373809095,), (1373809100,), (1373809102,), (1373809103,), (1373809105,), (1373809107,), (1373809121,), (1373809124,), (1373809127,), (1373809128,), (1373809130,), (1373809132,), (1373809147,), (1373809150,), (1373809153,), (1373809154,), (1373809156,), (1373809157,), (1373809169,), (1373809172,), (1373809174,), (1373809176,), (1373809179,), (1373809181,), (1373809199,), (1373809202,), (1373809205,), (1373809207,), (1373809210,), (1373809216,), (1373809707,), (1373810331,), (1373810357,), (1373810382,), (1373810411,), (1373810446,), (1373810915,), (1373811460,), (1373811463,), (1373811465,), (1373811468,), (1373811472,), (1373811475,), (1373811648,), (1373811655,), (1373811681,), (1373811708,), (1373811725,), (1373811732,), (1373811767,), (1373811769,), (1373811771,), (1373811773,), (1373811775,), (1373811778,), (1373811790,), (1373811795,), (1373811797,), (1373811798,), (1373811800,), (1373811801,), (1373811976,), (1373812048,), (1373812087,), (1373812123,), (1373812149,), (1373812174,), (1373812450,), (1373812476,), (1373812507,), (1373812533,), (1373812559,), (1373812586,), (1373812698,), (1373812727,), (1373812755,), (1373812782,), (1373812810,), (1373812813,), (1373812944,), (1373812950,), (1373812952,), (1373812962,), (1373812972,), (1373812985,), (1373813281,), (1373813645,), (1373813670,), (1373813699,), (1373813703,), (1373813705,), (1373813707,), (1373813861,), (1373813878,), (1373813880,), (1373813929,), (1373814053,), (1373814181,), (1373814747,), (1373814845,), (1373814925,), (1373814957,), (1373815018,), (1373815059,), (1373815232,), (1373868240,), (1373815432,), (1373815564,), (1373815566,), (1373815567,), (1373815568,), (1373815569,), (1373815572,), (1373815876,), (1373815965,), (1373815976,), (1373816017,), (1373816033,), (1373816038,), (1373816051,), (1373816053,), (1373816054,), (1373816056,), (1373816060,), (1373816064,), (1373816102,), (1373816104,), (1373816110,), (1373816131,), (1373816140,), (1373816143,), (1373816221,), (1373816226,), (1373816228,), (1373816230,), (1373816232,), (1373816235,), (1373816249,), (1373816271,), (1373816434,), (1373816514,), (1373816590,), (1373816667,), (1373816753,), (1373816841,), (1373817108,), (1373817726,), (1373817727,), (1373817729,), (1373817731,), (1373817753,), (1373817783,), (1373817925,), (1373817927,), (1373817928,), (1373817930,), (1373817932,), (1373817935,), (1373817957,), (1373817959,), (1373817986,), (1373818055,), (1373818126,), (1373818206,), (1373818414,), (1373818417,), (1373818484,), (1373818564,), (1373818590,), (1373818592,), (1373818662,), (1373818665,), (1373818667,), (1373818669,), (1373818673,), (1373818675,), (1373818701,), (1373818703,), (1373818706,), (1373818708,), (1373818712,), (1373818715,), (1373818727,), (1373818747,), (1373818748,), (1373818749,), (1373818750,), (1373818782,), (1373818864,), (1373819210,), (1373819218,), (1373819220,), (1373819235,), (1373819327,), (1373819395,), (1373819481,), (1373819483,), (1373819485,), (1373819486,), (1373819489,), (1373819493,), (1373819510,), (1373819511,), (1373819513,), (1373819515,), (1373819518,), (1373819520,), (1373819538,), (1373819544,), (1373819546,), (1373819547,), (1373819549,), (1373819552,), (1373819562,), (1373819564,), (1373819611,), (1373819677,), (1373819747,), (1373819811,), (1373820052,), (1373820149,), (1373820172,), (1373820184,), (1373820200,), (1373820204,), (1373820218,), (1373820219,), (1373820226,), (1373820227,), (1373820228,), (1373820230,), (1373820278,), (1373820531,), (1373820546,), (1373820631,), (1373820633,), (1373820655,), (1373820666,), (1373820682,), (1373820684,), (1373820685,), (1373820687,), (1373820690,), (1373820693,), (1373820950,), (1373820979,), (1373821006,), (1373821032,), (1373821059,), (1373821085,), (1373821492,), (1373821519,), (1373821545,), (1373821569,), (1373821604,), (1373821648,), (1373821918,), (1373821965,), (1373822036,), (1373822088,), (1373822131,), (1373822155,), (1373822276,), (1373822288,), (1373822289,), (1373822290,), (1373822292,), (1373822294,), (1373822314,), (1373822317,), (1373822325,), (1373822331,), (1373822332,), (1373822334,), (1373822354,), (1373822357,), (1373822360,), (1373822361,), (1373822362,), (1373822379,), (1373823153,), (1373823180,), (1373823216,), (1373823243,), (1373823268,), (1373823294,), (1373823945,), (1373823993,), (1373824053,), (1373824096,), (1373824197,), (1373824224,), (1373824437,), (1373824647,), (1373824654,), (1373824656,), (1373824657,), (1373824685,), (1373824775,), (1373825263,), (1373825287,), (1373825389,), (1373825494,), (1373825521,), (1373825547,), (1373825984,), (1373826011,), (1373826035,), (1373826059,), (1373826139,), (1373826166,), (1373826336,), (1373826338,), (1373826340,), (1373826341,), (1373826350,), (1373826376,), (1373826522,), (1373826547,), (1373826557,), (1373826560,), (1373826563,), (1373826566,), (1373826578,), (1373826579,), (1373826581,), (1373826583,), (1373826585,), (1373826588,), (1373827457,), (1373827481,), (1373827515,), (1373827619,), (1373827657,), (1373827686,), (1373828095,), (1373828126,), (1373828197,), (1373828242,), (1373828271,), (1373828324,), (1373828665,), (1373828845,), (1373828891,), (1373828943,), (1373828988,), (1373829050,), (1373829078,), (1373829751,), (1373829819,), (1373829838,), (1373829863,), (1373829888,), (1373829891,), (1373830191,), (1373830244,), (1373830246,), (1373830248,), (1373830249,), (1373830251,), (1373830253,), (1373830258,), (1373830265,), (1373830267,), (1373830269,), (1373830270,), (1373830271,), (1373830273,), (1373830289,), (1373830296,), (1373830297,), (1373830299,), (1373830301,), (1373830303,), (1373830312,), (1373830315,), (1373830318,), (1373830319,), (1373830322,), (1373830323,), (1373830339,), (1373830341,), (1373830343,), (1373830344,), (1373830346,), (1373830348,), (1373830359,), (1373830361,), (1373830362,), (1373830364,), (1373830365,), (1373830367,), (1373830390,), (1373830413,), (1373830417,), (1373830420,), (1373830423,), (1373830426,), (1373830429,), (1373830931,), (1373830942,), (1373830970,), (1373830994,), (1373831021,), (1373831048,), (1373831495,), (1373831524,), (1373831575,), (1373831577,), (1373831584,), (1373831592,), (1373831825,), (1373831852,), (1373831878,), (1373831902,), (1373831930,), (1373831959,), (1373832090,), (1373832116,), (1373832141,), (1373832165,), (1373832166,), (1373832168,), (1373832290,), (1373832295,), (1373832300,), (1373832301,), (1373832324,), (1373832395,), (1373832731,), (1373832732,), (1373832733,), (1373832804,), (1373832893,), (1373832919,), (1373833068,), (1373833069,), (1373833070,), (1373833071,), (1373833073,), (1373833076,), (1373833094,), (1373833096,), (1373833097,), (1373833099,), (1373833102,), (1373833106,), (1373833121,), (1373833148,), (1373833149,), (1373833150,), (1373833151,), (1373833153,), (1373833157,), (1373833537,), (1373833632,), (1373833703,), (1373833704,), (1373833706,), (1373833709,), (1373833979,), (1373834007,), (1373834032,), (1373834098,), (1373834124,), (1373834152,), (1373834421,), (1373834446,), (1373834471,), (1373834506,), (1373834535,), (1373834566,), (1373834690,), (1373834692,), (1373834694,), (1373834695,), (1373834698,), (1373834714,), (1373834816,), (1373834818,), (1373834820,), (1373834822,), (1373834826,), (1373834829,), (1373835346,), (1373835348,), (1373835351,), (1373835352,), (1373835355,), (1373835358,), (1373835635,), (1373835648,), (1373835650,), (1373835652,), (1373835655,), (1373835657,), (1373835683,), (1373835689,), (1373835716,), (1373835745,), (1373835773,), (1373835804,), (1373836097,), (1373836692,), (1373836702,), (1373836704,), (1373836705,), (1373836754,), (1373836833,), (1373836957,), (1373837043,), (1373837049,), (1373837065,), (1373837088,), (1373837113,), (1373837127,), (1373837164,), (1373837166,), (1373837168,), (1373837169,), (1373837171,), (1373837174,), (1373837189,), (1373837197,), (1373837198,), (1373837200,), (1373837204,), (1373837208,), (1373837220,), (1373837222,), (1373837223,), (1373837225,), (1373837228,), (1373837231,), (1373837705,), (1373837736,), (1373837770,), (1373837813,), (1373837872,), (1373837978,), (1373838295,), (1373838322,), (1373838345,), (1373838372,), (1373838398,), (1373838425,), (1373838594,), (1373838606,), (1373838610,), (1373838612,), (1373838615,), (1373838618,), (1373838829,), (1373838979,), (1373838982,), (1373838985,), (1373838988,), (1373838992,), (1373838994,), (1373839000,), (1373839008,), (1373839030,), (1373839059,), (1373839087,), (1373839111,), (1373839136,), (1373839407,), (1373839432,), (1373839461,), (1373839539,), (1373839643,), (1373839749,), (1373840283,), (1373840285,), (1373840287,), (1373840290,), (1373840291,), (1373840311,), (1373840786,), (1373840812,), (1373840834,), (1373840846,), (1373840853,), (1373840857,), (1373840871,), (1373840874,), (1373840877,), (1373840879,), (1373840880,), (1373840884,), (1373840897,), (1373840898,), (1373840900,), (1373840902,), (1373840904,), (1373840906,), (1373841408,), (1373841432,), (1373841456,), (1373841524,), (1373841632,), (1373841677,), (1373842021,), (1373842053,), (1373842077,), (1373842103,), (1373842131,), (1373842156,), (1373842266,), (1373842465,), (1373842469,), (1373842472,), (1373842500,), (1373842578,), (1373842673,), (1373842812,), (1373842814,), (1373842816,), (1373842817,), (1373842829,), (1373842834,), (1373842851,), (1373842856,), (1373842858,), (1373842877,), (1373842906,), (1373842932,), (1373843190,), (1373843222,), (1373843248,), (1373843272,), (1373843275,), (1373843278,), (1373843407,), (1373843431,), (1373843444,), (1373843457,), (1373843464,), (1373843467,), (1373843475,), (1373843477,), (1373843479,), (1373843480,), (1373843482,), (1373843485,), (1373843983,), (1373844090,), (1373844170,), (1373844195,), (1373844219,), (1373844265,), (1373845470,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25072025': {'nb_upload': 12, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25329531]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439] map_info['map_portfolio_photo'] : {25329531: [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439]} final : True mtd_id 4302 list_pids : [1373738479, 1373738473, 1373738471, 1373738470, 1373738468, 1373738460, 1373738454, 1373738452, 1373738448, 1373738444, 1373738443, 1373738439] Looping around the photos to save general results len do output : 1 /25329531Didn'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, '3389666') ('4302', '25329531', '1373738479', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738473', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738471', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738470', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738468', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738460', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738454', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738452', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738448', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738444', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738443', None, None, None, None, None, '3389666') ('4302', None, None, None, None, None, None, None, '3389666') ('4302', '25329531', '1373738439', None, None, None, None, None, '3389666') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25329531', 'None', None, None, None, None, '3389666'), ('4302', '25329531', '1373738479', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738473', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738471', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738470', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738468', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738460', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738454', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738452', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738448', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738444', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738443', None, None, None, None, None, '3389666'), ('4302', '25329531', '1373738439', None, None, None, None, None, '3389666')] time used for this insertion : 0.014179706573486328 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.5139639377594 time spend to save output : 0.014434337615966797 total time spend for step 5 : 8.528398275375366 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 (3389666) 2.57user 2.08system 0:17.95elapsed 25%CPU (0avgtext+0avgdata 160356maxresident)k 47632inputs+10096outputs (216major+77491minor)pagefaults 0swaps