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 : 3428519 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 (4066579) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4066579) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659160 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4066579'] with mtr_portfolio_ids : ['28659160'] and first list_photo_ids : [] new path : /proc/3428519/ Name: python3 Umask: 0002 State: R (running) Tgid: 3428519 Ngid: 0 Pid: 3428519 PPid: 3428516 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3428519 NSpid: 3428519 NSpgid: 3427812 NSsid: 3427812 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98632 kB VmRSS: 98632 kB RssAnon: 59912 kB RssFile: 38720 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 576 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: 37 nonvoluntary_ctxt_switches: 155 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3428519', 'Ngid': '0', 'Pid': '3428519', 'PPid': '3428516', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3428519', 'NSpid': '3428519', 'NSpgid': '3427812', 'NSsid': '3427812', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98632 kB', 'VmRSS': '98632 kB', 'RssAnon': '59912 kB', 'RssFile': '38720 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '576 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': '37', 'nonvoluntary_ctxt_switches': '155'} ('datou_batch_current', '3428519', '1106908', '0', '1106884', '865636', '98632', b'', 'marlene', '4066579') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28659160) 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 (4066579 ) ) 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 (28659160) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395051944, 'portfolio_id': 28659160}, {'photo_id': 1395051927, 'portfolio_id': 28659160}, {'photo_id': 1395051803, 'portfolio_id': 28659160}, {'photo_id': 1395051801, 'portfolio_id': 28659160}, {'photo_id': 1395051800, 'portfolio_id': 28659160}, {'photo_id': 1395051799, 'portfolio_id': 28659160}, {'photo_id': 1395051712, 'portfolio_id': 28659160}, {'photo_id': 1395051710, 'portfolio_id': 28659160}, {'photo_id': 1395051673, 'portfolio_id': 28659160}, {'photo_id': 1395051671, 'portfolio_id': 28659160}, {'photo_id': 1395051668, 'portfolio_id': 28659160}, {'photo_id': 1395051650, 'portfolio_id': 28659160}, {'photo_id': 1395051648, 'portfolio_id': 28659160}, {'photo_id': 1395051647, 'portfolio_id': 28659160}, {'photo_id': 1395051629, 'portfolio_id': 28659160}, {'photo_id': 1395051624, 'portfolio_id': 28659160}, {'photo_id': 1395051621, 'portfolio_id': 28659160}, {'photo_id': 1395051620, 'portfolio_id': 28659160}, {'photo_id': 1395051619, 'portfolio_id': 28659160}, {'photo_id': 1395051599, 'portfolio_id': 28659160}, {'photo_id': 1395051596, 'portfolio_id': 28659160}, {'photo_id': 1395051594, 'portfolio_id': 28659160}, {'photo_id': 1395051592, 'portfolio_id': 28659160}, {'photo_id': 1395051454, 'portfolio_id': 28659160}, {'photo_id': 1395051136, 'portfolio_id': 28659160}, {'photo_id': 1395051103, 'portfolio_id': 28659160}, {'photo_id': 1395051071, 'portfolio_id': 28659160}, {'photo_id': 1395051038, 'portfolio_id': 28659160}, {'photo_id': 1395050949, 'portfolio_id': 28659160}, {'photo_id': 1395050945, 'portfolio_id': 28659160}, {'photo_id': 1395050942, 'portfolio_id': 28659160}, {'photo_id': 1395050940, 'portfolio_id': 28659160}, {'photo_id': 1395050938, 'portfolio_id': 28659160}, {'photo_id': 1395050920, 'portfolio_id': 28659160}, {'photo_id': 1395050919, 'portfolio_id': 28659160}, {'photo_id': 1395050809, 'portfolio_id': 28659160}, {'photo_id': 1395050287, 'portfolio_id': 28659160}] map_portfolio_id_photo_id: {28659160: [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799, 1395051712, 1395051710, 1395051673, 1395051671, 1395051668, 1395051650, 1395051648, 1395051647, 1395051629, 1395051624, 1395051621, 1395051620, 1395051619, 1395051599, 1395051596, 1395051594, 1395051592, 1395051454, 1395051136, 1395051103, 1395051071, 1395051038, 1395050949, 1395050945, 1395050942, 1395050940, 1395050938, 1395050920, 1395050919, 1395050809, 1395050287]} ##### 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.01661229133605957 #### 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 Nov 18 14:14: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28659160) 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 : 28659160 get user id for portfolio 28659160 get sub ptf for main ptf 28659160, type 3726 and hashtags ['Teint_Dans_La_Masse', 'autre_refus', 'Carton_brun', 'cartonnette', 'Carton_gris', 'kraft', 'metal', 'flou', 'environnement', 'mal_croppe', 'plastique', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28659160 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','Carton_brun','cartonnette','Carton_gris','kraft','metal','flou','environnement','mal_croppe','plastique','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28659160 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','Carton_brun','cartonnette','Carton_gris','kraft','metal','flou','environnement','mal_croppe','plastique','papier')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 28659160, 'sub_port_id': 28659164, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434698, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}, 'Carton_gris': {'main_port_id': 28659160, 'sub_port_id': 28659165, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434699, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}, 'autre_refus': {'main_port_id': 28659160, 'sub_port_id': 28659166, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434700, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28659160, 'sub_port_id': 28659167, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434701, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}, 'Carton_brun': {'main_port_id': 28659160, 'sub_port_id': 28659168, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434702, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}, 'kraft': {'main_port_id': 28659160, 'sub_port_id': 28659169, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434703, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}, 'metal': {'main_port_id': 28659160, 'sub_port_id': 28659170, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434704, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}, 'flou': {'main_port_id': 28659160, 'sub_port_id': 28659171, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434705, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}, 'plastique': {'main_port_id': 28659160, 'sub_port_id': 28659172, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434706, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}, 'cartonnette': {'main_port_id': 28659160, 'sub_port_id': 28659173, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434707, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}, 'environnement': {'main_port_id': 28659160, 'sub_port_id': 28659174, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434708, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}, 'mal_croppe': {'main_port_id': 28659160, 'sub_port_id': 28659175, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434709, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659164 , 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=28659160 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 (28659164) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659165 , 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=28659160 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 (28659165) result : ((1395051586,), (1395051587,), (1395051588,), (1395051638,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659166 , 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=28659160 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 (28659166) result : ((1395051585,), (1395051636,), (1395051637,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659167 , 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=28659160 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 (28659167) result : ((1395051582,), (1395051583,), (1395051902,), (1395051903,), (1395051904,), (1395051905,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659168 , 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=28659160 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 (28659168) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659169 , 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=28659160 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 (28659169) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659170 , 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=28659160 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 (28659170) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659171 , 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=28659160 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 (28659171) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659172 , 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=28659160 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 (28659172) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659173 , 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=28659160 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 (28659173) result : ((1395051907,), (1395051908,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659174 , 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=28659160 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 (28659174) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28659175 , 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=28659160 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 (28659175) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28659160) result : ((1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) 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 (1395051800) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28659160 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','Carton_brun','cartonnette','Carton_gris','kraft','metal','flou','environnement','mal_croppe','plastique','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28659160 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','Carton_brun','cartonnette','Carton_gris','kraft','metal','flou','environnement','mal_croppe','plastique','papier')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 28659160, 'sub_port_id': 28659176, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434710, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}, 'Carton_gris': {'main_port_id': 28659160, 'sub_port_id': 28659177, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434711, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}, 'autre_refus': {'main_port_id': 28659160, 'sub_port_id': 28659178, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434712, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 28659160, 'sub_port_id': 28659179, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434713, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}, 'Carton_brun': {'main_port_id': 28659160, 'sub_port_id': 28659180, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434714, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}, 'kraft': {'main_port_id': 28659160, 'sub_port_id': 28659181, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434715, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}, 'metal': {'main_port_id': 28659160, 'sub_port_id': 28659182, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434716, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}, 'flou': {'main_port_id': 28659160, 'sub_port_id': 28659183, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434717, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}, 'plastique': {'main_port_id': 28659160, 'sub_port_id': 28659184, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434718, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}, 'cartonnette': {'main_port_id': 28659160, 'sub_port_id': 28659185, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434719, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}, 'environnement': {'main_port_id': 28659160, 'sub_port_id': 28659186, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434720, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}, 'mal_croppe': {'main_port_id': 28659160, 'sub_port_id': 28659187, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19434721, 'last_updated_at': datetime.datetime(2025, 11, 18, 14, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 14, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 14, 5)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659176,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659164 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659177,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659165 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659178,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659166 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659179,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659167 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659180,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659168 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659181,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659169 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659182,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659170 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28659187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28659175 lien utilise dans velours : https://marlene.fotonower.com/velours/28659176,28659177,28659178,28659179,28659180,28659181,28659182,28659183,28659184,28659185,28659186,28659187?tags=papier,Carton_gris,autre_refus,Teint_Dans_La_Masse,Carton_brun,kraft,metal,flou,plastique,cartonnette,environnement,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28659160]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799] map_info['map_portfolio_photo'] : {28659160: [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799, 1395051712, 1395051710, 1395051673, 1395051671, 1395051668, 1395051650, 1395051648, 1395051647, 1395051629, 1395051624, 1395051621, 1395051620, 1395051619, 1395051599, 1395051596, 1395051594, 1395051592, 1395051454, 1395051136, 1395051103, 1395051071, 1395051038, 1395050949, 1395050945, 1395050942, 1395050940, 1395050938, 1395050920, 1395050919, 1395050809, 1395050287]} final : False mtd_id 4302 list_pids : [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799] Looping around the photos to save general results len do output : 1 /28659160. 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, '4066579') ('4302', '28659160', '1395051944', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051927', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051803', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051801', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051800', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051799', None, None, None, None, None, '4066579') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '28659160', "{'papier': 28659164, 'Carton_gris': 28659165, 'autre_refus': 28659166, 'Teint_Dans_La_Masse': 28659167, 'Carton_brun': 28659168, 'kraft': 28659169, 'metal': 28659170, 'flou': 28659171, 'plastique': 28659172, 'cartonnette': 28659173, 'environnement': 28659174, 'mal_croppe': 28659175}", None, None, None, None, '4066579'), ('4302', '28659160', '1395051944', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051927', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051803', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051801', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051800', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051799', None, None, None, None, None, '4066579')] time used for this insertion : 0.013745307922363281 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4445631504058838 time spend to save output : 0.01405191421508789 total time spend for step 1 : 0.4586150646209717 step2:final Tue Nov 18 14:14: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 (28659160) 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 28659160 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395050287,1395050809,1395050920,1395050919,1395050949,1395050945,1395050942,1395050940,1395050938,1395051136,1395051103,1395051071,1395051038,1395051454,1395051599,1395051596,1395051594,1395051592,1395051629,1395051624,1395051621,1395051620,1395051619,1395051650,1395051648,1395051647,1395051673,1395051671,1395051668,1395051712,1395051710,1395051803,1395051801,1395051800,1395051799,1395051944,1395051927); 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([28659160]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ('0.032871960174540325',), 1395051799: ('0.032871960174540325',)} new output for save of step final : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ('0.032871960174540325',), 1395051799: ('0.032871960174540325',)} [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799] map_info['map_portfolio_photo'] : {28659160: [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799, 1395051712, 1395051710, 1395051673, 1395051671, 1395051668, 1395051650, 1395051648, 1395051647, 1395051629, 1395051624, 1395051621, 1395051620, 1395051619, 1395051599, 1395051596, 1395051594, 1395051592, 1395051454, 1395051136, 1395051103, 1395051071, 1395051038, 1395050949, 1395050945, 1395050942, 1395050940, 1395050938, 1395050920, 1395050919, 1395050809, 1395050287]} final : False mtd_id 4302 list_pids : [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799] Looping around the photos to save general results len do output : 6 /1395051944.Didn't retrieve data . /1395051927.Didn't retrieve data . /1395051803.Didn't retrieve data . /1395051801.Didn't retrieve data . /1395051800.Didn't retrieve data . /1395051799.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, '4066579') ('4302', '28659160', '1395051944', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051927', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051803', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051801', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051800', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051799', None, None, None, None, None, '4066579') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '28659160', '1395051944', '0.032871960174540325', None, None, None, None, '4066579'), ('4302', '28659160', '1395051927', '0.032871960174540325', None, None, None, None, '4066579'), ('4302', '28659160', '1395051803', '0.032871960174540325', None, None, None, None, '4066579'), ('4302', '28659160', '1395051801', '0.032871960174540325', None, None, None, None, '4066579'), ('4302', '28659160', '1395051800', '0.032871960174540325', None, None, None, None, '4066579'), ('4302', '28659160', '1395051799', '0.032871960174540325', None, None, None, None, '4066579')] time used for this insertion : 0.01775646209716797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0677347183227539 time spend to save output : 0.018222808837890625 total time spend for step 2 : 0.08595752716064453 step3:velours_tree Tue Nov 18 14:14: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 : {28659160: [{'papier': 28659164, 'Carton_gris': 28659165, 'autre_refus': 28659166, 'Teint_Dans_La_Masse': 28659167, 'Carton_brun': 28659168, 'kraft': 28659169, 'metal': 28659170, 'flou': 28659171, 'plastique': 28659172, 'cartonnette': 28659173, 'environnement': 28659174, 'mal_croppe': 28659175}]} input_args_next_step : {28659160: ()} output_args : {28659160: [{'papier': 28659164, 'Carton_gris': 28659165, 'autre_refus': 28659166, 'Teint_Dans_La_Masse': 28659167, 'Carton_brun': 28659168, 'kraft': 28659169, 'metal': 28659170, 'flou': 28659171, 'plastique': 28659172, 'cartonnette': 28659173, 'environnement': 28659174, 'mal_croppe': 28659175}]} args : 28659160 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 : ({'papier': 28659164, 'Carton_gris': 28659165, 'autre_refus': 28659166, 'Teint_Dans_La_Masse': 28659167, 'Carton_brun': 28659168, 'kraft': 28659169, 'metal': 28659170, 'flou': 28659171, 'plastique': 28659172, 'cartonnette': 28659173, 'environnement': 28659174, 'mal_croppe': 28659175},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28659160) 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([28659160]) 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.3072049617767334 time spend to save output : 6.4849853515625e-05 total time spend for step 3 : 0.307269811630249 step4:send_mail_cod Tue Nov 18 14:14: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 : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ('0.032871960174540325',), 1395051799: ('0.032871960174540325',)} input_args_next_step : {1395051944: ()} output_args : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ('0.032871960174540325',), 1395051799: ('0.032871960174540325',)} args : 1395051944 depend.output_id : 0 input_args_next_step : {1395051944: ('0.032871960174540325',), 1395051927: ()} output_args : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ('0.032871960174540325',), 1395051799: ('0.032871960174540325',)} args : 1395051927 depend.output_id : 0 input_args_next_step : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ()} output_args : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ('0.032871960174540325',), 1395051799: ('0.032871960174540325',)} args : 1395051803 depend.output_id : 0 input_args_next_step : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ()} output_args : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ('0.032871960174540325',), 1395051799: ('0.032871960174540325',)} args : 1395051801 depend.output_id : 0 input_args_next_step : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ()} output_args : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ('0.032871960174540325',), 1395051799: ('0.032871960174540325',)} args : 1395051800 depend.output_id : 0 input_args_next_step : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ('0.032871960174540325',), 1395051799: ()} output_args : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ('0.032871960174540325',), 1395051799: ('0.032871960174540325',)} args : 1395051799 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 : {28659160: [{'papier': 28659164, 'Carton_gris': 28659165, 'autre_refus': 28659166, 'Teint_Dans_La_Masse': 28659167, 'Carton_brun': 28659168, 'kraft': 28659169, 'metal': 28659170, 'flou': 28659171, 'plastique': 28659172, 'cartonnette': 28659173, 'environnement': 28659174, 'mal_croppe': 28659175}]} input_args_next_step : {1395051944: ('0.032871960174540325',), 1395051927: ('0.032871960174540325',), 1395051803: ('0.032871960174540325',), 1395051801: ('0.032871960174540325',), 1395051800: ('0.032871960174540325',), 1395051799: ('0.032871960174540325',), 28659160: ()} output_args : {28659160: [{'papier': 28659164, 'Carton_gris': 28659165, 'autre_refus': 28659166, 'Teint_Dans_La_Masse': 28659167, 'Carton_brun': 28659168, 'kraft': 28659169, 'metal': 28659170, 'flou': 28659171, 'plastique': 28659172, 'cartonnette': 28659173, 'environnement': 28659174, 'mal_croppe': 28659175}]} args : 28659160 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 :7, first value : ('0.032871960174540325',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28659160) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1395051944,1395051927,1395051803,1395051801,1395051800,1395051799) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395051799 begin to download photo : 1395051801 begin to download photo : 1395051927 download finish for photo 1395051801 begin to download photo : 1395051803 download finish for photo 1395051927 begin to download photo : 1395051944 download finish for photo 1395051799 begin to download photo : 1395051800 download finish for photo 1395051803 download finish for photo 1395051944 download finish for photo 1395051800 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P28659160_18-11-2025_14_14_30.pdf 28659166 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659166 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395051585: '1763471226_1129810_1395051038_e0ee812f03900041b9e000b076d6c437_rle_crop_4037643575_0.png', 1395051636: '1763471345_1134304_1395051594_d629381a3874f1af3d74c655dd68edcd_rle_crop_4037645143_0.png', 1395051637: '1763471345_1134304_1395051594_d629381a3874f1af3d74c655dd68edcd_rle_crop_4037645140_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/a41fa4cc3ab19b6bdeae44b7c9f974d2_1570426.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/1cca6501a1073aa8b75b15731073cc8f_93844139.png change filename to text .imagette286591661763471670/ imagette286591661763471670/1763471226_1129810_1395051038_e0ee812f03900041b9e000b076d6c437_rle_crop_4037643575_0.png.png imagette286591661763471670/1763471345_1134304_1395051594_d629381a3874f1af3d74c655dd68edcd_rle_crop_4037645143_0.png.png imagette286591661763471670/1763471345_1134304_1395051594_d629381a3874f1af3d74c655dd68edcd_rle_crop_4037645140_0.png.png imagette286591691763471670/ imagette286591701763471670/ imagette286591711763471670/ imagette286591721763471670/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/7d945bac01c1af9ba5a1feeaa3cc85d4_76629353.png imagette286591661763471670 28659169 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659169 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286591691763471670 28659170 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659170 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286591701763471670 28659171 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286591711763471670 28659172 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286591721763471670 28659173 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395051907: '1763471586_1140844_1395051671_b2d1d94c486dd136fbdfeddd8e5c5549_rle_crop_4037652163_0.png', 1395051908: '1763471586_1140844_1395051668_07fab7051074d48febc600a891b327c1_rle_crop_4037652177_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/bc0de6ec0da1bff499efdc6cc50cc3f0_67138636.png change filename to text .imagette286591731763471670/ imagette286591731763471670/1763471586_1140844_1395051671_b2d1d94c486dd136fbdfeddd8e5c5549_rle_crop_4037652163_0.png.png imagette286591731763471670/1763471586_1140844_1395051668_07fab7051074d48febc600a891b327c1_rle_crop_4037652177_0.png.png imagette286591751763471670/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/a04fc9dd4a2aeedb761b04135e023845_53345688.png imagette286591731763471670 28659175 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659175 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286591751763471670 28659165 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659165 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395051586: '1763471226_1129810_1395051103_cefb3309eef1bf9fd826b988b51a8c57_rle_crop_4037643316_0.png', 1395051587: '1763471226_1129810_1395051071_4f7a6fba3da0edbb3b30ddf57bdd0df4_rle_crop_4037643561_0.png', 1395051588: '1763471226_1129810_1395051038_e0ee812f03900041b9e000b076d6c437_rle_crop_4037643574_0.png', 1395051638: '1763471345_1134304_1395051594_d629381a3874f1af3d74c655dd68edcd_rle_crop_4037645141_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/41138dcd7124d50975b4be02e6d757e3_20893612.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/a1aa07dcf98cc78537e5e08a61966022_63614649.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/c3753eca54ee05d7563467e770ef0341_2762994.png change filename to text .imagette286591651763471670/ imagette286591651763471670/1763471226_1129810_1395051071_4f7a6fba3da0edbb3b30ddf57bdd0df4_rle_crop_4037643561_0.png.png imagette286591651763471670/1763471226_1129810_1395051038_e0ee812f03900041b9e000b076d6c437_rle_crop_4037643574_0.png.png imagette286591651763471670/1763471345_1134304_1395051594_d629381a3874f1af3d74c655dd68edcd_rle_crop_4037645141_0.png.png imagette286591651763471670/1763471226_1129810_1395051103_cefb3309eef1bf9fd826b988b51a8c57_rle_crop_4037643316_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/628336d1e33f63dd0b5b7b5a9485e71d_85119919.png imagette286591651763471670 28659167 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659167 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395051582: '1763471226_1129810_1395051103_cefb3309eef1bf9fd826b988b51a8c57_rle_crop_4037643315_0.png', 1395051583: '1763471226_1129810_1395051038_e0ee812f03900041b9e000b076d6c437_rle_crop_4037643578_0.png', 1395051902: '1763471586_1140844_1395051671_b2d1d94c486dd136fbdfeddd8e5c5549_rle_crop_4037652166_0.png', 1395051903: '1763471586_1140844_1395051668_07fab7051074d48febc600a891b327c1_rle_crop_4037652176_0.png', 1395051904: '1763471586_1140844_1395051668_07fab7051074d48febc600a891b327c1_rle_crop_4037652178_0.png', 1395051905: '1763471586_1140844_1395051668_07fab7051074d48febc600a891b327c1_rle_crop_4037652182_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/37a8ed1cbc6d5e145e5a173723d3048f_97282393.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/a8ce6a07d1e05c945d382ec589b5ee54_41567340.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/5d415eb19970d62bf848f35dd015cd98_83968471.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/5c935e93e68040e8ffe40a398dbde5a7_21784877.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/7acd793b1c5ed573fb4bf625a8cb3320_42878503.png change filename to text .imagette286591671763471671/ imagette286591671763471671/1763471226_1129810_1395051038_e0ee812f03900041b9e000b076d6c437_rle_crop_4037643578_0.png.png imagette286591671763471671/1763471586_1140844_1395051671_b2d1d94c486dd136fbdfeddd8e5c5549_rle_crop_4037652166_0.png.png imagette286591671763471671/1763471586_1140844_1395051668_07fab7051074d48febc600a891b327c1_rle_crop_4037652178_0.png.png imagette286591671763471671/1763471586_1140844_1395051668_07fab7051074d48febc600a891b327c1_rle_crop_4037652176_0.png.png imagette286591671763471671/1763471226_1129810_1395051103_cefb3309eef1bf9fd826b988b51a8c57_rle_crop_4037643315_0.png.png imagette286591671763471671/1763471586_1140844_1395051668_07fab7051074d48febc600a891b327c1_rle_crop_4037652182_0.png.png imagette286591681763471671/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/741ce052e029dc2f87a05b410c535ca0_30332752.png imagette286591671763471671 28659168 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659168 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286591681763471671 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28659160 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28659176,28659177,28659178,28659179,28659180,28659181,28659182,28659183,28659184,28659185,28659186,28659187?tags=papier,Carton_gris,autre_refus,Teint_Dans_La_Masse,Carton_brun,kraft,metal,flou,plastique,cartonnette,environnement,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1395051944] : ('0.032871960174540325',) no score found for photo 1395051944 We are sending mail with results at report@fotonower.com args[1395051927] : ('0.032871960174540325',) no score found for photo 1395051927 We are sending mail with results at report@fotonower.com args[1395051803] : ('0.032871960174540325',) no score found for photo 1395051803 We are sending mail with results at report@fotonower.com args[1395051801] : ('0.032871960174540325',) no score found for photo 1395051801 We are sending mail with results at report@fotonower.com args[1395051800] : ('0.032871960174540325',) no score found for photo 1395051800 We are sending mail with results at report@fotonower.com args[1395051799] : ('0.032871960174540325',) no score found for photo 1395051799 We are sending mail with results at report@fotonower.com refus_total : 0.032871960174540325 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659160 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_P28659160_18-11-2025_14_14_30.pdf results_Auto_P28659160_18-11-2025_14_14_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_14_30.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','28659160','results_Auto_P28659160_18-11-2025_14_14_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_14_30.pdf','pdf','','0.11','0.032871960174540325') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28659160]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799] map_info['map_portfolio_photo'] : {28659160: [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799, 1395051712, 1395051710, 1395051673, 1395051671, 1395051668, 1395051650, 1395051648, 1395051647, 1395051629, 1395051624, 1395051621, 1395051620, 1395051619, 1395051599, 1395051596, 1395051594, 1395051592, 1395051454, 1395051136, 1395051103, 1395051071, 1395051038, 1395050949, 1395050945, 1395050942, 1395050940, 1395050938, 1395050920, 1395050919, 1395050809, 1395050287]} final : False mtd_id 4302 list_pids : [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799] 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, '4066579') ('4302', '28659160', '1395051944', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051927', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051803', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051801', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051800', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051799', None, None, None, None, None, '4066579') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '28659160', '1395051944', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051927', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051803', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051801', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051800', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051799', None, None, None, None, None, '4066579')] time used for this insertion : 0.014683246612548828 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2702438831329346 time spend to save output : 0.014948368072509766 total time spend for step 4 : 2.2851922512054443 step5:split_time_score Tue Nov 18 14:14:32 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 : ['28659160'] 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 : [('28659160',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28659160) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395051801: {'path': 'temp/1763471670_3428519_1395051801_b102e2a448ea6023e7aec78c3f85be95.jpg', 'extension': 'jpg'}, 1395051803: {'path': 'temp/1763471670_3428519_1395051803_197c8a116b7d97b9d7d53f5a03125b10.jpg', 'extension': 'jpg'}, 1395051927: {'path': 'temp/1763471670_3428519_1395051927_8ee616dbede8d6f3f9da773f530aa58b.jpg', 'extension': 'jpg'}, 1395051944: {'path': 'temp/1763471670_3428519_1395051944_c7afc285b6d333d565ab586b8768eb98.jpg', 'extension': 'jpg'}, 1395051799: {'path': 'temp/1763471670_3428519_1395051799_d46f52349ffa3c6572219023b55120bf.jpg', 'extension': 'jpg'}, 1395051800: {'path': 'temp/1763471670_3428519_1395051800_57d166931190afdc68a542fb0e8b574a.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 = 28659160; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28659160 group by h (('14', 37),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28659160 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 (28659160) 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 (28659160) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18112025 28659160 Nombre de photos uploadées : 37 / 23040 (0%) 18112025 28659160 Nombre de photos taguées (types de déchets): 0 / 37 (0%) 18112025 28659160 Nombre de photos taguées (volume) : 0 / 37 (0%) [{'photo_id': 1395050287, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/74be0bf6c0fd4380fb6f4771518f5159.jpg', 'username': None, 'uploaded_at': 1763470928, 'text': 'image_18112025_14_00_55_10134.jpg'}, {'photo_id': 1395050809, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/459f057fa6e9597ee82cf23dab6f7f71.jpg', 'username': None, 'uploaded_at': 1763470987, 'text': 'image_18112025_14_01_24_10142.jpg'}, {'photo_id': 1395050920, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/f331ec5f2f2f886f57c159a915e13691.jpg', 'username': None, 'uploaded_at': 1763471047, 'text': 'image_18112025_14_02_15_10136.jpg'}, {'photo_id': 1395050919, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/f5046d8d72956a44f826a3030940428d.jpg', 'username': None, 'uploaded_at': 1763471047, 'text': 'image_18112025_14_03_34_9138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004832744598388672 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28659160, '2025-11-18' ) 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-11-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2598648,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2030494213104248 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= 2598648 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28631138, 'dashboard_result_id': 17420282, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28631823, 'dashboard_result_id': 17420283, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28632284, 'dashboard_result_id': 17420284, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28632886, 'dashboard_result_id': 17420285, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28634373, 'dashboard_result_id': 17420286, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28635010, 'dashboard_result_id': 17420287, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28635491, 'dashboard_result_id': 17420288, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28636035, 'dashboard_result_id': 17420289, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28636740, 'dashboard_result_id': 17420290, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28637017, 'dashboard_result_id': 17420291, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28637392, 'dashboard_result_id': 17420293, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28638080, 'dashboard_result_id': 17420294, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28638689, 'dashboard_result_id': 17420296, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28639147, 'dashboard_result_id': 17420298, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28639591, 'dashboard_result_id': 17420299, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28641020, 'dashboard_result_id': 17420301, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28641206, 'dashboard_result_id': 17420303, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28641579, 'dashboard_result_id': 17420304, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28641934, 'dashboard_result_id': 17420306, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28642364, 'dashboard_result_id': 17420308, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28642968, 'dashboard_result_id': 17420309, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28643374, 'dashboard_result_id': 17420310, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28643779, 'dashboard_result_id': 17420311, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28644283, 'dashboard_result_id': 17420312, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28645127, 'dashboard_result_id': 17420313, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28645778, 'dashboard_result_id': 17420314, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28646472, 'dashboard_result_id': 17420315, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28647027, 'dashboard_result_id': 17420316, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28647656, 'dashboard_result_id': 17420317, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28648493, 'dashboard_result_id': 17420318, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28649305, 'dashboard_result_id': 17420319, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28650959, 'dashboard_result_id': 17420320, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28651460, 'dashboard_result_id': 17420321, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28651808, 'dashboard_result_id': 17420322, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28652248, 'dashboard_result_id': 17420323, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652248_18-11-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28652266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652269, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28652749, 'dashboard_result_id': 17420324, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652749_18-11-2025_10_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28652761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652772, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28653464, 'dashboard_result_id': 17420325, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653464_18-11-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28653477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653485, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28653849, 'dashboard_result_id': 17420326, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653849_18-11-2025_11_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28653868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653879, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28654500, 'dashboard_result_id': 17420327, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28654500_18-11-2025_11_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28654534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28654535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28654536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28654537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28654538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28654539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28654540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28654541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28654542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28654543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28654544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28654545, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28655193, 'dashboard_result_id': 17420328, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655193_18-11-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655210, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28655671, 'dashboard_result_id': 17420329, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655671_18-11-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655707, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28656138, 'dashboard_result_id': 17420330, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28656138_18-11-2025_14_00_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28656174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28656175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28656176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28656177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28656178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28656179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28656180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28656181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28656182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28656183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28656184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28656185, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28658327, 'dashboard_result_id': 17420331, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658327_18-11-2025_13_29_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658348, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28658538, 'dashboard_result_id': 17420332, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658538_18-11-2025_13_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658554, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28658711, 'dashboard_result_id': 17420333, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658711_18-11-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658723, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2610207, 'mtr_portfolio_id': 28659160, 'dashboard_result_id': 17420334, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_13_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28659164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659168, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659175, '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 = 28631138 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063453, 'mtr_portfolio_id': 28631138, 'created_at': datetime.datetime(2025, 11, 18, 6, 13, 30), 'result': '0.027044003199104157', 'result_long': None, 'result_double': None}] Qualite : 0.027044003199104157 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28631138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28631138 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, 'pht': 3726}}" where mtr_portfolio_id = 28631138 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28631138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420282, 0.027044003199104157, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28631823 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063454, 'mtr_portfolio_id': 28631823, 'created_at': datetime.datetime(2025, 11, 18, 6, 13, 58), 'result': '0.05851027303634385', 'result_long': None, 'result_double': None}] Qualite : 0.05851027303634385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28631823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28631823 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, 'pht': 3726}}" where mtr_portfolio_id = 28631823 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28631823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420283, 0.05851027303634385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28632284 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063455, 'mtr_portfolio_id': 28632284, 'created_at': datetime.datetime(2025, 11, 18, 6, 14, 29), 'result': '0.050061643709369275', 'result_long': None, 'result_double': None}] Qualite : 0.050061643709369275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28632284 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28632284 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, 'pht': 3726}}" where mtr_portfolio_id = 28632284 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28632284 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420284, 0.050061643709369275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28632886 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063456, 'mtr_portfolio_id': 28632886, 'created_at': datetime.datetime(2025, 11, 18, 6, 15, 28), 'result': '0.0354841780332806', 'result_long': None, 'result_double': None}] Qualite : 0.0354841780332806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28632886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28632886 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, 'pht': 3726}}" where mtr_portfolio_id = 28632886 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28632886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420285, 0.0354841780332806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28634373 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063457, 'mtr_portfolio_id': 28634373, 'created_at': datetime.datetime(2025, 11, 18, 6, 15, 59), 'result': '0.043975554337369126', 'result_long': None, 'result_double': None}] Qualite : 0.043975554337369126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28634373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28634373 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, 'pht': 3726}}" where mtr_portfolio_id = 28634373 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28634373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420286, 0.043975554337369126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28635010 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063458, 'mtr_portfolio_id': 28635010, 'created_at': datetime.datetime(2025, 11, 18, 6, 16, 8), 'result': '0.03015534667359816', 'result_long': None, 'result_double': None}] Qualite : 0.03015534667359816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28635010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28635010 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, 'pht': 3726}}" where mtr_portfolio_id = 28635010 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28635010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420287, 0.03015534667359816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28635491 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063459, 'mtr_portfolio_id': 28635491, 'created_at': datetime.datetime(2025, 11, 18, 6, 16, 30), 'result': '0.04740794187181342', 'result_long': None, 'result_double': None}] Qualite : 0.04740794187181342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28635491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28635491 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, 'pht': 3726}}" where mtr_portfolio_id = 28635491 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28635491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420288, 0.04740794187181342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28636035 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063460, 'mtr_portfolio_id': 28636035, 'created_at': datetime.datetime(2025, 11, 18, 6, 17, 29), 'result': '0.0323353417388423', 'result_long': None, 'result_double': None}] Qualite : 0.0323353417388423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28636035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28636035 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, 'pht': 3726}}" where mtr_portfolio_id = 28636035 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28636035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420289, 0.0323353417388423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28636740 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063461, 'mtr_portfolio_id': 28636740, 'created_at': datetime.datetime(2025, 11, 18, 6, 18), 'result': '0.0684027049911958', 'result_long': None, 'result_double': None}] Qualite : 0.0684027049911958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28636740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28636740 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, 'pht': 3726}}" where mtr_portfolio_id = 28636740 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28636740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420290, 0.0684027049911958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28637017 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063462, 'mtr_portfolio_id': 28637017, 'created_at': datetime.datetime(2025, 11, 18, 6, 18, 29), 'result': '0.0537666861023958', 'result_long': None, 'result_double': None}] Qualite : 0.0537666861023958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28637017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28637017 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, 'pht': 3726}}" where mtr_portfolio_id = 28637017 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28637017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420291, 0.0537666861023958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28637392 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063463, 'mtr_portfolio_id': 28637392, 'created_at': datetime.datetime(2025, 11, 18, 6, 19, 58), 'result': '0.05145964967620445', 'result_long': None, 'result_double': None}] Qualite : 0.05145964967620445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28637392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28637392 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, 'pht': 3726}}" where mtr_portfolio_id = 28637392 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28637392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420293, 0.05145964967620445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28638080 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063464, 'mtr_portfolio_id': 28638080, 'created_at': datetime.datetime(2025, 11, 18, 6, 20, 29), 'result': '0.03214392118285005', 'result_long': None, 'result_double': None}] Qualite : 0.03214392118285005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28638080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28638080 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, 'pht': 3726}}" where mtr_portfolio_id = 28638080 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28638080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420294, 0.03214392118285005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28638689 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063465, 'mtr_portfolio_id': 28638689, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 8), 'result': '0.053369357786094584', 'result_long': None, 'result_double': None}] Qualite : 0.053369357786094584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28638689 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28638689 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, 'pht': 3726}}" where mtr_portfolio_id = 28638689 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28638689 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420296, 0.053369357786094584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28639147 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063466, 'mtr_portfolio_id': 28639147, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 26), 'result': '0.043664073794498326', 'result_long': None, 'result_double': None}] Qualite : 0.043664073794498326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28639147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28639147 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, 'pht': 3726}}" where mtr_portfolio_id = 28639147 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28639147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420298, 0.043664073794498326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28639591 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063467, 'mtr_portfolio_id': 28639591, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 56), 'result': '0.047182145080419576', 'result_long': None, 'result_double': None}] Qualite : 0.047182145080419576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28639591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28639591 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, 'pht': 3726}}" where mtr_portfolio_id = 28639591 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28639591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420299, 0.047182145080419576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28641020 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063468, 'mtr_portfolio_id': 28641020, 'created_at': datetime.datetime(2025, 11, 18, 6, 22, 29), 'result': '0.05131668854412686', 'result_long': None, 'result_double': None}] Qualite : 0.05131668854412686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, 'pht': 3726}}" where mtr_portfolio_id = 28641020 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28641020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420301, 0.05131668854412686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28641206 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063469, 'mtr_portfolio_id': 28641206, 'created_at': datetime.datetime(2025, 11, 18, 6, 23, 28), 'result': '0.042545553451280756', 'result_long': None, 'result_double': None}] Qualite : 0.042545553451280756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641206 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641206 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, 'pht': 3726}}" where mtr_portfolio_id = 28641206 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28641206 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420303, 0.042545553451280756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28641579 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063377, 'mtr_portfolio_id': 28641579, 'created_at': datetime.datetime(2025, 11, 18, 5, 47, 28), 'result': '0.05853607655274519', 'result_long': None, 'result_double': None}] Qualite : 0.05853607655274519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641579 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, 'pht': 3726}}" where mtr_portfolio_id = 28641579 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28641579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420304, 0.05853607655274519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28641934 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063585, 'mtr_portfolio_id': 28641934, 'created_at': datetime.datetime(2025, 11, 18, 6, 3, 27), 'result': '0.0420865347740443', 'result_long': None, 'result_double': None}] Qualite : 0.0420865347740443 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641934 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641934 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, 'pht': 3726}}" where mtr_portfolio_id = 28641934 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28641934 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420306, 0.0420865347740443, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28642364 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063660, 'mtr_portfolio_id': 28642364, 'created_at': datetime.datetime(2025, 11, 18, 6, 19, 28), 'result': '0.06073383736561497', 'result_long': None, 'result_double': None}] Qualite : 0.06073383736561497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28642364 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28642364 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, 'pht': 3726}}" where mtr_portfolio_id = 28642364 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28642364 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420308, 0.06073383736561497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28642968 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063734, 'mtr_portfolio_id': 28642968, 'created_at': datetime.datetime(2025, 11, 18, 6, 33, 28), 'result': '0.05626145265431898', 'result_long': None, 'result_double': None}] Qualite : 0.05626145265431898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28642968 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28642968 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, 'pht': 3726}}" where mtr_portfolio_id = 28642968 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28642968 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420309, 0.05626145265431898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28643374 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063793, 'mtr_portfolio_id': 28643374, 'created_at': datetime.datetime(2025, 11, 18, 6, 47, 29), 'result': '0.05293475167005118', 'result_long': None, 'result_double': None}] Qualite : 0.05293475167005118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28643374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28643374 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, 'pht': 3726}}" where mtr_portfolio_id = 28643374 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28643374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420310, 0.05293475167005118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28643779 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063851, 'mtr_portfolio_id': 28643779, 'created_at': datetime.datetime(2025, 11, 18, 7, 2, 58), 'result': '0.04435094046803636', 'result_long': None, 'result_double': None}] Qualite : 0.04435094046803636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28643779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28643779 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, 'pht': 3726}}" where mtr_portfolio_id = 28643779 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28643779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420311, 0.04435094046803636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28644283 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063968, 'mtr_portfolio_id': 28644283, 'created_at': datetime.datetime(2025, 11, 18, 7, 18, 59), 'result': '0.03468004728367508', 'result_long': None, 'result_double': None}] Qualite : 0.03468004728367508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28644283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28644283 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, 'pht': 3726}}" where mtr_portfolio_id = 28644283 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28644283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420312, 0.03468004728367508, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28645127 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064092, 'mtr_portfolio_id': 28645127, 'created_at': datetime.datetime(2025, 11, 18, 7, 35, 30), 'result': '0.027859632548191356', 'result_long': None, 'result_double': None}] Qualite : 0.027859632548191356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28645127 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28645127 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, 'pht': 3726}}" where mtr_portfolio_id = 28645127 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28645127 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420313, 0.027859632548191356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28645778 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064173, 'mtr_portfolio_id': 28645778, 'created_at': datetime.datetime(2025, 11, 18, 7, 49), 'result': '0.0590152139734779', 'result_long': None, 'result_double': None}] Qualite : 0.0590152139734779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28645778 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28645778 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, 'pht': 3726}}" where mtr_portfolio_id = 28645778 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28645778 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420314, 0.0590152139734779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28646472 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064317, 'mtr_portfolio_id': 28646472, 'created_at': datetime.datetime(2025, 11, 18, 8, 2, 59), 'result': '0.07002810345918892', 'result_long': None, 'result_double': None}] Qualite : 0.07002810345918892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28646472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28646472 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, 'pht': 3726}}" where mtr_portfolio_id = 28646472 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28646472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420315, 0.07002810345918892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28647027 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064437, 'mtr_portfolio_id': 28647027, 'created_at': datetime.datetime(2025, 11, 18, 8, 17, 28), 'result': '0.0510507725241517', 'result_long': None, 'result_double': None}] Qualite : 0.0510507725241517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28647027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28647027 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, 'pht': 3726}}" where mtr_portfolio_id = 28647027 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28647027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420316, 0.0510507725241517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28647656 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064588, 'mtr_portfolio_id': 28647656, 'created_at': datetime.datetime(2025, 11, 18, 8, 33, 30), 'result': '0.04203229748767614', 'result_long': None, 'result_double': None}] Qualite : 0.04203229748767614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28647656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28647656 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, 'pht': 3726}}" where mtr_portfolio_id = 28647656 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28647656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420317, 0.04203229748767614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28648493 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064766, 'mtr_portfolio_id': 28648493, 'created_at': datetime.datetime(2025, 11, 18, 8, 48, 59), 'result': '0.03588526522438144', 'result_long': None, 'result_double': None}] Qualite : 0.03588526522438144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28648493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28648493 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, 'pht': 3726}}" where mtr_portfolio_id = 28648493 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28648493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420318, 0.03588526522438144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28649305 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064969, 'mtr_portfolio_id': 28649305, 'created_at': datetime.datetime(2025, 11, 18, 9, 34, 59), 'result': '0.0541977277007493', 'result_long': None, 'result_double': None}] Qualite : 0.0541977277007493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28649305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28649305 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, 'pht': 3726}}" where mtr_portfolio_id = 28649305 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28649305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420319, 0.0541977277007493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28650959 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065191, 'mtr_portfolio_id': 28650959, 'created_at': datetime.datetime(2025, 11, 18, 9, 48, 58), 'result': '0.04071743132239154', 'result_long': None, 'result_double': None}] Qualite : 0.04071743132239154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28650959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28650959 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, 'pht': 3726}}" where mtr_portfolio_id = 28650959 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28650959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420320, 0.04071743132239154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28651460 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065279, 'mtr_portfolio_id': 28651460, 'created_at': datetime.datetime(2025, 11, 18, 10, 2, 57), 'result': '0.1055295895326338', 'result_long': None, 'result_double': None}] Qualite : 0.1055295895326338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28651460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28651460 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, 'pht': 3726}}" where mtr_portfolio_id = 28651460 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28651460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420321, 0.1055295895326338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28651808 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065400, 'mtr_portfolio_id': 28651808, 'created_at': datetime.datetime(2025, 11, 18, 10, 16, 58), 'result': '0.03774582213050657', 'result_long': None, 'result_double': None}] Qualite : 0.03774582213050657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28651808 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28651808 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, 'pht': 3726}}" where mtr_portfolio_id = 28651808 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28651808 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420322, 0.03774582213050657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28652248 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065494, 'mtr_portfolio_id': 28652248, 'created_at': datetime.datetime(2025, 11, 18, 10, 32, 57), 'result': '0.04842535208555276', 'result_long': None, 'result_double': None}] Qualite : 0.04842535208555276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28652248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652248_18-11-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28652248 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652248_18-11-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28652266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652269, 'pht': 3726}}" where mtr_portfolio_id = 28652248 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28652248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420323, 0.04842535208555276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652248_18-11-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28652266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652269, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28652749 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065589, 'mtr_portfolio_id': 28652749, 'created_at': datetime.datetime(2025, 11, 18, 10, 49), 'result': '0.0392963227833819', 'result_long': None, 'result_double': None}] Qualite : 0.0392963227833819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28652749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652749_18-11-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28652749 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652749_18-11-2025_10_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28652761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652772, 'pht': 3726}}" where mtr_portfolio_id = 28652749 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28652749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420324, 0.0392963227833819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652749_18-11-2025_10_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28652761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652772, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28653464 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065735, 'mtr_portfolio_id': 28653464, 'created_at': datetime.datetime(2025, 11, 18, 11, 2, 59), 'result': '0.044935169530185635', 'result_long': None, 'result_double': None}] Qualite : 0.044935169530185635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28653464 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653464_18-11-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28653464 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653464_18-11-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28653477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653485, 'pht': 3726}}" where mtr_portfolio_id = 28653464 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28653464 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420325, 0.044935169530185635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653464_18-11-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28653477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653485, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28653849 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065814, 'mtr_portfolio_id': 28653849, 'created_at': datetime.datetime(2025, 11, 18, 11, 17), 'result': '0.04346195309913817', 'result_long': None, 'result_double': None}] Qualite : 0.04346195309913817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28653849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653849_18-11-2025_11_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28653849 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653849_18-11-2025_11_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28653868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653879, 'pht': 3726}}" where mtr_portfolio_id = 28653849 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28653849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420326, 0.04346195309913817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653849_18-11-2025_11_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28653868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653879, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28654500 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065904, 'mtr_portfolio_id': 28654500, 'created_at': datetime.datetime(2025, 11, 18, 11, 32, 31), 'result': '0.04532263780244547', 'result_long': None, 'result_double': None}] Qualite : 0.04532263780244547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28654500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28654500_18-11-2025_11_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28654500 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28654500_18-11-2025_11_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28654534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28654535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28654536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28654537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28654538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28654539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28654540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28654541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28654542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28654543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28654544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28654545, 'pht': 3726}}" where mtr_portfolio_id = 28654500 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28654500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420327, 0.04532263780244547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28654500_18-11-2025_11_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28654534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28654535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28654536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28654537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28654538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28654539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28654540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28654541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28654542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28654543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28654544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28654545, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28655193 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066046, 'mtr_portfolio_id': 28655193, 'created_at': datetime.datetime(2025, 11, 18, 11, 46, 58), 'result': '0.0982486872859036', 'result_long': None, 'result_double': None}] Qualite : 0.0982486872859036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28655193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655193_18-11-2025_11_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28655193 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655193_18-11-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655210, 'pht': 3726}}" where mtr_portfolio_id = 28655193 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28655193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420328, 0.0982486872859036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655193_18-11-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655210, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28655671 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066103, 'mtr_portfolio_id': 28655671, 'created_at': datetime.datetime(2025, 11, 18, 12, 3), 'result': '0.15661501072345188', 'result_long': None, 'result_double': None}] Qualite : 0.15661501072345188 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28655671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655671_18-11-2025_12_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28655671 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655671_18-11-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655707, 'pht': 3726}}" where mtr_portfolio_id = 28655671 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28655671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420329, 0.15661501072345188, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655671_18-11-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655707, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28656138 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066190, 'mtr_portfolio_id': 28656138, 'created_at': datetime.datetime(2025, 11, 18, 14, 0), 'result': '0.06195973976749275', 'result_long': None, 'result_double': None}] Qualite : 0.06195973976749275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28656138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28656138_18-11-2025_14_00_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28656138 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28656138_18-11-2025_14_00_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28656174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28656175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28656176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28656177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28656178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28656179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28656180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28656181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28656182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28656183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28656184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28656185, 'pht': 3726}}" where mtr_portfolio_id = 28656138 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28656138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420330, 0.06195973976749275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28656138_18-11-2025_14_00_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28656174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28656175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28656176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28656177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28656178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28656179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28656180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28656181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28656182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28656183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28656184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28656185, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28658327 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 = 28658327 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 = 28658327 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28658327 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 = 28658327 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28658327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658327_18-11-2025_13_29_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28658327 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658327_18-11-2025_13_29_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658348, 'pht': 3726}}" where mtr_portfolio_id = 28658327 and dashboard_run_id = 2610207 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28658538 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 = 28658538 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 = 28658538 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28658538 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 = 28658538 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28658538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658538_18-11-2025_13_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28658538 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658538_18-11-2025_13_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658554, 'pht': 3726}}" where mtr_portfolio_id = 28658538 and dashboard_run_id = 2610207 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28658711 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066517, 'mtr_portfolio_id': 28658711, 'created_at': datetime.datetime(2025, 11, 18, 14, 2, 59), 'result': '0.02541703047821988', 'result_long': None, 'result_double': None}] Qualite : 0.02541703047821988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28658711 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658711_18-11-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28658711 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658711_18-11-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658723, 'pht': 3726}}" where mtr_portfolio_id = 28658711 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28658711 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420333, 0.02541703047821988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658711_18-11-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658723, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28659160 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066579, 'mtr_portfolio_id': 28659160, 'created_at': datetime.datetime(2025, 11, 18, 14, 14, 29), 'result': '0.032871960174540325', 'result_long': None, 'result_double': None}] Qualite : 0.032871960174540325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28659160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_14_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28659160 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_14_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28659164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659168, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659175, 'pht': 3726}}" where mtr_portfolio_id = 28659160 and dashboard_run_id = 2610207 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28659160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17420334, 0.032871960174540325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_14_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28659164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659168, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659175, '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 (28631138,28631823,28632284,28632886,28634373,28635010,28635491,28636035,28636740,28637017,28637392,28638080,28638689,28639147,28639591,28641020,28641206,28641579,28641934,28642364,28642968,28643374,28643779,28644283,28645127,28645778,28646472,28647027,28647656,28648493,28649305,28650959,28651460,28651808,28652248,28652749,28653464,28653849,28654500,28655193,28655671,28656138,28658327,28658538,28658711,28659160) result : ((1394942829,), (1394942839,), (1394942854,), (1394942987,), (1394943023,), (1394943063,), (1394943097,), (1394943498,), (1394943530,), (1394943559,), (1394943590,), (1394943624,), (1394943662,), (1394943743,), (1394943745,), (1394943747,), (1394943763,), (1394943798,), (1394944144,), (1394944180,), (1394944221,), (1394944235,), (1394944353,), (1394944356,), (1394944361,), (1394944367,), (1394944520,), (1394944521,), (1394944522,), (1394944524,), (1394944558,), (1394944561,), (1394944566,), (1394944570,), (1394944660,), (1394944662,), (1394944664,), (1394944697,), (1394944732,), (1394944749,), (1394944768,), (1394944790,), (1394944816,), (1394944948,), (1394944984,), (1394945016,), (1394945047,), (1394945081,), (1394945204,), (1394945206,), (1394945232,), (1394945230,), (1394945264,), (1394945275,), (1394945292,), (1394945294,), (1394945296,), (1394945300,), (1394945303,), (1394945305,), (1394945638,), (1394945676,), (1394945706,), (1394945739,), (1394945744,), (1394945748,), (1394945896,), (1394945915,), (1394945920,), (1394945993,), (1394945995,), (1394945999,), (1394946019,), (1394946020,), (1394946027,), (1394946030,), (1394946056,), (1394946143,), (1394946145,), (1394946173,), (1394946233,), (1394946234,), (1394946235,), (1394946262,), (1394946263,), (1394946264,), (1394946281,), (1394946283,), (1394946288,), (1394946292,), (1394946305,), (1394946307,), (1394946313,), (1394946321,), (1394946330,), (1394946353,), (1394946355,), (1394946357,), (1394946360,), (1394946379,), (1394946383,), (1394946389,), (1394946394,), (1394946399,), (1394946413,), (1394946414,), (1394946838,), (1394946827,), (1394946833,), (1394946835,), (1394947037,), (1394947061,), (1394947090,), (1394947099,), (1394947124,), (1394947126,), (1394947128,), (1394947150,), (1394947152,), (1394947155,), (1394947158,), (1394947162,), (1394947466,), (1394947500,), (1394947531,), (1394947562,), (1394947985,), (1394948017,), (1394948052,), (1394948537,), (1394948549,), (1394948550,), (1394948576,), (1394948768,), (1394948769,), (1394948771,), (1394948780,), (1394948921,), (1394948953,), (1394948986,), (1394949023,), (1394949059,), (1394949193,), (1394949207,), (1394949242,), (1394949276,), (1394949310,), (1394949343,), (1394949442,), (1394949444,), (1394949446,), (1394949482,), (1394949483,), (1394949484,), (1394949487,), (1394949510,), (1394949512,), (1394949538,), (1394949540,), (1394949543,), (1394949577,), (1394949573,), (1394949574,), (1394949575,), (1394949595,), (1394949596,), (1394949619,), (1394949620,), (1394949651,), (1394949655,), (1394949656,), (1394949681,), (1394949683,), (1394949685,), (1394949689,), (1394949708,), (1394949709,), (1394949710,), (1394949713,), (1394949744,), (1394949746,), (1394949748,), (1394949771,), (1394949772,), (1394949773,), (1394949776,), (1394949870,), (1394949902,), (1394949932,), (1394949965,), (1394950203,), (1394950243,), (1394950275,), (1394950331,), (1394950332,), (1394950355,), (1394950357,), (1394950359,), (1394950699,), (1394950729,), (1394950763,), (1394950795,), (1394951147,), (1394951182,), (1394951216,), (1394951615,), (1394963649,), (1394963683,), (1394963715,), (1394964148,), (1394964211,), (1394964268,), (1394964527,), (1394964530,), (1394964533,), (1394965229,), (1394965632,), (1394965634,), (1394965636,), (1394965639,), (1394965975,), (1394966022,), (1394966266,), (1394966268,), (1394966375,), (1394966377,), (1394966379,), (1394966381,), (1394966385,), (1394966389,), (1394966406,), (1394966407,), (1394966408,), (1394966726,), (1394966817,), (1394966906,), (1394967003,), (1394967113,), (1394967210,), (1394967516,), (1394967518,), (1394967528,), (1394967619,), (1394967804,), (1394967805,), (1394967806,), (1394967809,), (1394967814,), (1394967816,), (1394967832,), (1394967834,), (1394967859,), (1394967922,), (1394968030,), (1394968151,), (1394968277,), (1394969140,), (1394968941,), (1394968971,), (1394969001,), (1394969034,), (1394969676,), (1394969703,), (1394969704,), (1394969887,), (1394969910,), (1394969912,), (1394969942,), (1394969966,), (1394969969,), (1394969971,), (1394969974,), (1394969978,), (1394970005,), (1394970007,), (1394970009,), (1394970013,), (1394970033,), (1394970034,), (1394970035,), (1394970038,), (1394970043,), (1394970782,), (1394970901,), (1394971026,), (1394971150,), (1394971854,), (1394971896,), (1394971958,), (1394972000,), (1394972185,), (1394972187,), (1394972191,), (1394972196,), (1394972200,), (1394972204,), (1394972932,), (1394972933,), (1394972934,), (1394972935,), (1394973217,), (1394973243,), (1394973245,), (1394973327,), (1394973328,), (1394973329,), (1394973331,), (1394973380,), (1394973381,), (1394973382,), (1394973406,), (1394973409,), (1394973411,), (1394973414,), (1394973422,), (1394973423,), (1394973425,), (1394973426,), (1394973428,), (1394973429,), (1394973448,), (1394973447,), (1394973467,), (1394973468,), (1394973469,), (1394973471,), (1394973475,), (1394973518,), (1394973553,), (1394973574,), (1394973644,), (1394973645,), (1394973646,), (1394973648,), (1394973652,), (1394973952,), (1394973985,), (1394974026,), (1394974060,), (1394974415,), (1394974429,), (1394974430,), (1394974432,), (1394974593,), (1394974625,), (1394974655,), (1394974688,), (1394975008,), (1394975040,), (1394975071,), (1394975104,), (1394975463,), (1394975584,), (1394975588,), (1394975591,), (1394975595,), (1394975598,), (1394975675,), (1394975706,), (1394975921,), (1394975922,), (1394975923,), (1394975926,), (1394975965,), (1394975967,), (1394975969,), (1394975973,), (1394975978,), (1394975981,), (1394976006,), (1394976008,), (1394976011,), (1394976017,), (1394976041,), (1394976043,), (1394976045,), (1394976068,), (1394976069,), (1394976070,), (1394976073,), (1394976076,), (1394976080,), (1394976099,), (1394976095,), (1394976097,), (1394976117,), (1394976118,), (1394976121,), (1394976127,), (1394976132,), (1394976155,), (1394976157,), (1394976159,), (1394976181,), (1394976182,), (1394976183,), (1394976186,), (1394976190,), (1394976195,), (1394976220,), (1394976230,), (1394976234,), (1394976237,), (1394976242,), (1394976246,), (1394976323,), (1394976330,), (1394976331,), (1394976350,), (1394976361,), (1394976386,), (1394976387,), (1394976388,), (1394976391,), (1394976412,), (1394976413,), (1394976415,), (1394976419,), (1394976423,), (1394976449,), (1394976451,), (1394976453,), (1394976456,), (1394976460,), (1394976465,), (1394976482,), (1394976483,), (1394976484,), (1394976487,), (1394976518,), (1394976520,), (1394976521,), (1394976525,), (1394976545,), (1394976546,), (1394976547,), (1394976586,), (1394976608,), (1394976609,), (1394976610,), (1394976612,), (1394976619,), (1394976623,), (1394976637,), (1394976671,), (1394976670,), (1394976798,), (1394976800,), (1394976805,), (1394976812,), (1394976832,), (1394976881,), (1394976915,), (1394976916,), (1394976917,), (1394976920,), (1394976941,), (1394976943,), (1394976945,), (1394976949,), (1394976967,), (1394976968,), (1394976969,), (1394976971,), (1394976993,), (1394976994,), (1394977028,), (1394977085,), (1394977086,), (1394977124,), (1394977121,), (1394977122,), (1394977148,), (1394977154,), (1394977164,), (1394977175,), (1394977193,), (1394977195,), (1394977197,), (1394977218,), (1394977219,), (1394977220,), (1394977221,), (1394977241,), (1394977245,), (1394977247,), (1394977250,), (1394977273,), (1394977276,), (1394977277,), (1394977280,), (1394977284,), (1394977287,), (1394977303,), (1394977305,), (1394977306,), (1394977327,), (1394977328,), (1394977329,), (1394977331,), (1394977334,), (1394977338,), (1394977354,), (1394977355,), (1394977357,), (1394977360,), (1394977387,), (1394977388,), (1394977389,), (1394977391,), (1394977394,), (1394977418,), (1394977420,), (1394977424,), (1394977428,), (1394977431,), (1394977433,), (1394977439,), (1394977440,), (1394977445,), (1394977446,), (1394977447,), (1394977448,), (1394977452,), (1394977520,), (1394977521,), (1394977523,), (1394977645,), (1394977679,), (1394977717,), (1394977859,), (1394977900,), (1394977933,), (1394977967,), (1394978272,), (1394978209,), (1394978239,), (1394979060,), (1394979134,), (1394979631,), (1394979642,), (1394979644,), (1394979993,), (1394980024,), (1394980059,), (1394980093,), (1394980487,), (1394980490,), (1394980494,), (1394980499,), (1394980504,), (1394980508,), (1394980699,), (1394980719,), (1394980731,), (1394980735,), (1394980769,), (1394980771,), (1394980816,), (1394980817,), (1394980818,), (1394980824,), (1394980844,), (1394980847,), (1394980852,), (1394980855,), (1394980858,), (1394980879,), (1394980880,), (1394980886,), (1394980889,), (1394980892,), (1394980904,), (1394980936,), (1394980969,), (1394981007,), (1394981041,), (1394981077,), (1394981375,), (1394981405,), (1394981652,), (1394981655,), (1394981668,), (1394981700,), (1394981737,), (1394981771,), (1394981910,), (1394981950,), (1394981958,), (1394981965,), (1394981968,), (1394982167,), (1394982198,), (1394982230,), (1394982265,), (1394982301,), (1394982673,), (1394982710,), (1394982744,), (1394983012,), (1394982981,), (1394982991,), (1394983009,), (1394983029,), (1394983030,), (1394983031,), (1394983033,), (1394983066,), (1394983068,), (1394983070,), (1394983094,), (1394983095,), (1394983096,), (1394983114,), (1394983116,), (1394983118,), (1394983154,), (1394983156,), (1394983307,), (1394983337,), (1394983372,), (1394983408,), (1394983819,), (1394983836,), (1394983838,), (1394983841,), (1394983845,), (1394984020,), (1394984021,), (1394984027,), (1394984053,), (1394984054,), (1394984057,), (1394984062,), (1394984087,), (1394984089,), (1394984091,), (1394984095,), (1394984113,), (1394984114,), (1394984117,), (1394984122,), (1394984127,), (1394984130,), (1394984138,), (1394984139,), (1394984141,), (1394984145,), (1394984147,), (1394984151,), (1394984156,), (1394984175,), (1394984177,), (1394984180,), (1394984186,), (1394984201,), (1394984203,), (1394984235,), (1394984231,), (1394984232,), (1394984233,), (1394984258,), (1394984259,), (1394984260,), (1394984264,), (1394984269,), (1394984298,), (1394984300,), (1394984301,), (1394984303,), (1394984332,), (1394984333,), (1394984334,), (1394984337,), (1394984341,), (1394984354,), (1394984356,), (1394984358,), (1394984702,), (1394985930,), (1394985947,), (1394985949,), (1394985953,), (1394985958,), (1394985977,), (1394985980,), (1394985982,), (1394985985,), (1394986005,), (1394986006,), (1394986007,), (1394986010,), (1394986030,), (1394986032,), (1394986034,), (1394986038,), (1394986041,), (1394986054,), (1394986055,), (1394986056,), (1394986058,), (1394986063,), (1394986068,), (1394986111,), (1394986100,), (1394986102,), (1394986104,), (1394986107,), (1394986137,), (1394986138,), (1394986139,), (1394986162,), (1394986164,), (1394986166,), (1394986169,), (1394986174,), (1394986348,), (1394986377,), (1394986408,), (1394986440,), (1394986861,), (1394986893,), (1394986897,), (1394986900,), (1394987109,), (1394987112,), (1394987140,), (1394987190,), (1394987192,), (1394987194,), (1394987197,), (1394987254,), (1394987255,), (1394987256,), (1394987258,), (1394987280,), (1394987284,), (1394987288,), (1394987291,), (1394987294,), (1394987310,), (1394987312,), (1394987344,), (1394987345,), (1394987346,), (1394987370,), (1394987371,), (1394987372,), (1394987374,), (1394987379,), (1394987394,), (1394987396,), (1394987398,), (1394988093,), (1394988165,), (1394988997,), (1394988924,), (1394988958,), (1394988990,), (1394989244,), (1394989277,), (1394989286,), (1394989400,), (1394989402,), (1394989404,), (1394989407,), (1394989411,), (1394989414,), (1394989450,), (1394989453,), (1394989454,), (1394989479,), (1394989481,), (1394989483,), (1394989487,), (1394989491,), (1394989518,), (1394989519,), (1394989520,), (1394989523,), (1394989552,), (1394989591,), (1394989596,), (1394989600,), (1394989605,), (1394989608,), (1394989632,), (1394989633,), (1394989634,), (1394989662,), (1394989664,), (1394989667,), (1394989672,), (1394989678,), (1394989700,), (1394989701,), (1394989702,), (1394989704,), (1394989709,), (1394989712,), (1394989729,), (1394989731,), (1394993476,), (1394993339,), (1394993474,), (1394993475,), (1394993516,), (1394993518,), (1394993520,), (1394993539,), (1394993560,), (1394993586,), (1394993588,), (1394993591,), (1394993596,), (1394993609,), (1394993615,), (1394993618,), (1394993621,), (1394993638,), (1394993639,), (1394993640,), (1394993642,), (1394993646,), (1394993668,), (1394993669,), (1394993671,), (1394993675,), (1394993698,), (1394993700,), (1394993701,), (1394993704,), (1394993709,), (1394993754,), (1394993762,), (1394993763,), (1394993764,), (1394993767,), (1394993769,), (1394993735,), (1394993736,), (1394993743,), (1394993747,), (1394993751,), (1394993773,), (1394993776,), (1394993779,), (1394993782,), (1394993784,), (1394993795,), (1394993797,), (1394993798,), (1394993818,), (1394993820,), (1394993822,), (1394993826,), (1394993863,), (1394993898,), (1394994235,), (1394994269,), (1394994298,), (1394994327,), (1394994581,), (1394994583,), (1394994584,), (1394994587,), (1394994591,), (1394994838,), (1394994856,), (1394994881,), (1394994933,), (1394994936,), (1394994940,), (1394994945,), (1394995009,), (1394995011,), (1394995020,), (1394995029,), (1394995037,), (1394995062,), (1394995063,), (1394995064,), (1394995067,), (1394995071,), (1394995096,), (1394995098,), (1394995107,), (1394995111,), (1394995115,), (1394995117,), (1394995130,), (1394995135,), (1394995137,), (1394995141,), (1394995142,), (1394995144,), (1394995148,), (1394995151,), (1394995155,), (1394995180,), (1394995183,), (1394995186,), (1394995190,), (1394995194,), (1394995213,), (1394995233,), (1394995253,), (1394995257,), (1394995261,), (1394995336,), (1394995340,), (1394995346,), (1394995349,), (1394995311,), (1394995314,), (1394995318,), (1394995327,), (1394995355,), (1394995356,), (1394995359,), (1394995374,), (1394995376,), (1394995378,), (1394995412,), (1394995414,), (1394995415,), (1394995417,), (1394995436,), (1394995438,), (1394995440,), (1394995443,), (1394995470,), (1394995471,), (1394995472,), (1394995474,), (1394995478,), (1394995493,), (1394995495,), (1394995497,), (1394995500,), (1394995504,), (1394995507,), (1394995521,), (1394995522,), (1394995523,), (1394995524,), (1394995526,), (1394995545,), (1394995548,), (1394995552,), (1394995557,), (1394995586,), (1394995587,), (1394995588,), (1394995590,), (1394995594,), (1394995597,), (1394995608,), (1394995609,), (1394995611,), (1394995613,), (1394995642,), (1394995646,), (1394995647,), (1394995668,), (1394995670,), (1394995674,), (1394995678,), (1394995680,), (1394995684,), (1394995700,), (1394995702,), (1394995704,), (1394995708,), (1394995739,), (1394995741,), (1394995742,), (1394995778,), (1394995766,), (1394995768,), (1394995772,), (1394995799,), (1394995800,), (1394995801,), (1394995829,), (1394995831,), (1394995832,), (1394995836,), (1394995841,), (1394995844,), (1394995858,), (1394995859,), (1394995860,), (1394995862,), (1394995892,), (1394995894,), (1394995896,), (1394995920,), (1394995921,), (1394995922,), (1394995924,), (1394995926,), (1394995929,), (1394995966,), (1394995967,), (1394995969,), (1394995973,), (1394995978,), (1394995992,), (1394995993,), (1394995994,), (1394995997,), (1394996028,), (1394996037,), (1394996042,), (1394996045,), (1394996049,), (1394996054,), (1394996069,), (1394996070,), (1394996071,), (1394996105,), (1394996107,), (1394996110,), (1394996115,), (1394996120,), (1394996124,), (1394996139,), (1394996142,), (1394996147,), (1394996152,), (1394996157,), (1394996160,), (1394996167,), (1394996168,), (1394996174,), (1394996180,), (1394996182,), (1394996223,), (1394996258,), (1394996292,), (1394996325,), (1394996479,), (1394996483,), (1394996486,), (1394996490,), (1394996495,), (1394996500,), (1394996543,), (1394996538,), (1394996541,), (1394996749,), (1394996783,), (1394996813,), (1394996861,), (1394996896,), (1394997263,), (1394997295,), (1394997320,), (1394997323,), (1394998509,), (1394998564,), (1394998565,), (1394998566,), (1394998568,), (1394998601,), (1394998605,), (1394998607,), (1394998637,), (1394998638,), (1394998639,), (1394998658,), (1394998660,), (1394998662,), (1394998669,), (1394998703,), (1394998704,), (1394998705,), (1394998707,), (1394998711,), (1394998737,), (1394998739,), (1394998741,), (1394998773,), (1394998774,), (1394998776,), (1394998778,), (1394998782,), (1394998784,), (1394998809,), (1394998796,), (1394998798,), (1394998800,), (1394998803,), (1394998806,), (1394998831,), (1394998832,), (1394998833,), (1394998834,), (1394998862,), (1394998864,), (1394998866,), (1394998869,), (1394998878,), (1394998905,), (1394998908,), (1394998911,), (1394998915,), (1394998945,), (1394998947,), (1394998948,), (1394998950,), (1394998983,), (1394998986,), (1394998988,), (1394998991,), (1394998994,), (1394998999,), (1394999027,), (1394999029,), (1394999030,), (1394999033,), (1394999037,), (1394999042,), (1394999071,), (1394999072,), (1394999073,), (1394999107,), (1394999113,), (1394999115,), (1394999119,), (1394999124,), (1394999127,), (1394999145,), (1394999146,), (1394999147,), (1394999149,), (1394999151,), (1394999154,), (1394999186,), (1394999187,), (1394999188,), (1394999191,), (1394999212,), (1394999214,), (1394999215,), (1394999218,), (1394999221,), (1394999236,), (1394999239,), (1394999241,), (1394999278,), (1394999279,), (1394999280,), (1394999282,), (1394999286,), (1394999289,), (1394999316,), (1394999318,), (1394999320,), (1394999324,), (1394999359,), (1394999367,), (1394999369,), (1394999371,), (1394999373,), (1394999347,), (1394999348,), (1394999350,), (1394999353,), (1394999356,), (1394999376,), (1394999378,), (1394999414,), (1394999416,), (1394999491,), (1394999494,), (1394999497,), (1394999501,), (1394999505,), (1394999624,), (1394999625,), (1394999626,), (1394999628,), (1394999655,), (1394999657,), (1394999696,), (1394999698,), (1394999700,), (1394999703,), (1394999709,), (1394999742,), (1394999743,), (1394999744,), (1394999746,), (1394999747,), (1394999790,), (1394999792,), (1394999794,), (1394999798,), (1394999820,), (1394999821,), (1394999822,), (1394999824,), (1394999828,), (1394999832,), (1394999945,), (1394999946,), (1394999948,), (1394999950,), (1394999954,), (1394999978,), (1394999979,), (1394999980,), (1394999983,), (1395000004,), (1395000005,), (1395000009,), (1395000017,), (1395000022,), (1395000027,), (1395000052,), (1395000054,), (1395000056,), (1395000059,), (1395000092,), (1395000080,), (1395000082,), (1395000084,), (1395000087,), (1395000115,), (1395000116,), (1395000117,), (1395000120,), (1395000124,), (1395000129,), (1395000145,), (1395000147,), (1395000149,), (1395000175,), (1395000179,), (1395000187,), (1395000193,), (1395000215,), (1395000217,), (1395000218,), (1395000221,), (1395000225,), (1395000249,), (1395000250,), (1395000251,), (1395000252,), (1395000284,), (1395000286,), (1395000288,), (1395000292,), (1395000301,), (1395000325,), (1395000326,), (1395000327,), (1395000329,), (1395000333,), (1395000336,), (1395000374,), (1395000376,), (1395000379,), (1395000382,), (1395000422,), (1395000444,), (1395000451,), (1395000484,), (1395000486,), (1395000490,), (1395000496,), (1395000501,), (1395000534,), (1395000536,), (1395000538,), (1395000542,), (1395000547,), (1395000563,), (1395000569,), (1395000573,), (1395000621,), (1395000613,), (1395000614,), (1395000615,), (1395000617,), (1395000633,), (1395000635,), (1395000637,), (1395000640,), (1395000643,), (1395001140,), (1395001183,), (1395001218,), (1395001257,), (1395001290,), (1395001607,), (1395001609,), (1395001610,), (1395001613,), (1395001842,), (1395001863,), (1395001865,), (1395001874,), (1395002153,), (1395002182,), (1395002215,), (1395002430,), (1395002443,), (1395002456,), (1395002466,), (1395002472,), (1395002521,), (1395002522,), (1395002523,), (1395002528,), (1395002539,), (1395002569,), (1395002583,), (1395002625,), (1395002662,), (1395002696,), (1395002746,), (1395003118,), (1395003120,), (1395003130,), (1395003164,), (1395003305,), (1395003306,), (1395003307,), (1395003342,), (1395003344,), (1395003347,), (1395003350,), (1395003353,), (1395003435,), (1395003442,), (1395003446,), (1395003452,), (1395003529,), (1395003559,), (1395003591,), (1395003621,), (1395004088,), (1395004129,), (1395004167,), (1395004197,), (1395004430,), (1395004403,), (1395004405,), (1395004407,), (1395004421,), (1395004426,), (1395004674,), (1395004702,), (1395004732,), (1395004736,), (1395004877,), (1395004878,), (1395004884,), (1395004903,), (1395004952,), (1395004953,), (1395004955,), (1395004960,), (1395004964,), (1395005015,), (1395005018,), (1395005020,), (1395005024,), (1395005435,), (1395005444,), (1395005445,), (1395005467,), (1395005470,), (1395005472,), (1395005475,), (1395005492,), (1395005494,), (1395005496,), (1395005498,), (1395005501,), (1395005505,), (1395005529,), (1395005530,), (1395005531,), (1395005533,), (1395005536,), (1395005574,), (1395005585,), (1395005597,), (1395005602,), (1395005641,), (1395005663,), (1395005695,), (1395005731,), (1395005769,), (1395005805,), (1395005989,), (1395005997,), (1395006002,), (1395006106,), (1395006111,), (1395006112,), (1395006115,), (1395006126,), (1395006132,), (1395006192,), (1395006193,), (1395006248,), (1395006303,), (1395006337,), (1395006433,), (1395006439,), (1395006447,), (1395006449,), (1395006526,), (1395006544,), (1395006554,), (1395006558,), (1395006561,), (1395006511,), (1395006514,), (1395006517,), (1395006521,), (1395006524,), (1395006528,), (1395006532,), (1395006534,), (1395006537,), (1395006540,), (1395006575,), (1395006576,), (1395006577,), (1395006579,), (1395006583,), (1395006604,), (1395006856,), (1395006889,), (1395006918,), (1395007350,), (1395007383,), (1395007412,), (1395007447,), (1395007460,), (1395007559,), (1395007589,), (1395007621,), (1395007652,), (1395007774,), (1395007776,), (1395007799,), (1395007838,), (1395007916,), (1395007917,), (1395007918,), (1395008038,), (1395008040,), (1395008077,), (1395008082,), (1395008083,), (1395008086,), (1395008091,), (1395008109,), (1395008110,), (1395008112,), (1395008179,), (1395008180,), (1395008183,), (1395008195,), (1395008199,), (1395008204,), (1395008239,), (1395008241,), (1395008243,), (1395008247,), (1395008251,), (1395008282,), (1395008283,), (1395008285,), (1395008287,), (1395008292,), (1395008332,), (1395008316,), (1395008318,), (1395008320,), (1395008323,), (1395008328,), (1395008409,), (1395008436,), (1395008460,), (1395008479,), (1395008529,), (1395008530,), (1395008531,), (1395008534,), (1395008539,), (1395008543,), (1395008557,), (1395008558,), (1395008560,), (1395008564,), (1395008577,), (1395008607,), (1395008609,), (1395008611,), (1395008637,), (1395008638,), (1395008639,), (1395008640,), (1395008670,), (1395008735,), (1395008765,), (1395008932,), (1395008961,), (1395008994,), (1395009020,), (1395009032,), (1395009080,), (1395009081,), (1395009091,), (1395009092,), (1395009130,), (1395009132,), (1395009136,), (1395009140,), (1395009159,), (1395009172,), (1395009175,), (1395009180,), (1395009184,), (1395009197,), (1395009199,), (1395009201,), (1395009205,), (1395009210,), (1395009213,), (1395009312,), (1395009349,), (1395009385,), (1395009391,), (1395009393,), (1395009395,), (1395009924,), (1395009955,), (1395009987,), (1395010023,), (1395010113,), (1395010118,), (1395010120,), (1395009856,), (1395009894,), (1395010128,), (1395010131,), (1395010136,), (1395010158,), (1395010375,), (1395010379,), (1395010392,), (1395010422,), (1395010811,), (1395010842,), (1395010871,), (1395011051,), (1395011079,), (1395011114,), (1395011149,), (1395011183,), (1395011328,), (1395011342,), (1395011343,), (1395011352,), (1395011357,), (1395011393,), (1395011395,), (1395011402,), (1395011405,), (1395011410,), (1395011415,), (1395011458,), (1395011459,), (1395011460,), (1395011463,), (1395011485,), (1395011486,), (1395011488,), (1395011926,), (1395011955,), (1395011986,), (1395012018,), (1395012056,), (1395012462,), (1395012496,), (1395012526,), (1395012560,), (1395012598,), (1395012924,), (1395012951,), (1395013403,), (1395013423,), (1395013450,), (1395013461,), (1395013474,), (1395013479,), (1395013508,), (1395013510,), (1395013512,), (1395013516,), (1395013544,), (1395013545,), (1395013547,), (1395013551,), (1395013612,), (1395013601,), (1395013606,), (1395013608,), (1395013684,), (1395013691,), (1395013705,), (1395013855,), (1395013857,), (1395013859,), (1395013864,), (1395013870,), (1395014073,), (1395014102,), (1395014136,), (1395014173,), (1395014180,), (1395014183,), (1395014217,), (1395014219,), (1395014222,), (1395014252,), (1395014253,), (1395014254,), (1395014257,), (1395014287,), (1395014289,), (1395014291,), (1395014294,), (1395014298,), (1395014317,), (1395014318,), (1395014319,), (1395014321,), (1395014324,), (1395014346,), (1395014347,), (1395014348,), (1395014350,), (1395014372,), (1395014374,), (1395014406,), (1395014407,), (1395014408,), (1395014535,), (1395014537,), (1395014540,), (1395014544,), (1395014608,), (1395014609,), (1395014659,), (1395014679,), (1395014723,), (1395014725,), (1395014766,), (1395014760,), (1395014762,), (1395014811,), (1395014851,), (1395014883,), (1395014919,), (1395014920,), (1395014921,), (1395014948,), (1395014951,), (1395014953,), (1395014984,), (1395014985,), (1395015515,), (1395015518,), (1395015544,), (1395015545,), (1395015549,), (1395015556,), (1395015560,), (1395015593,), (1395015599,), (1395015601,), (1395015604,), (1395015607,), (1395015645,), (1395015664,), (1395015665,), (1395015667,), (1395015668,), (1395015735,), (1395015719,), (1395015721,), (1395015723,), (1395015727,), (1395015730,), (1395015762,), (1395015763,), (1395015767,), (1395015770,), (1395016164,), (1395016171,), (1395016185,), (1395016320,), (1395016321,), (1395016322,), (1395016399,), (1395016401,), (1395016404,), (1395016409,), (1395016414,), (1395016433,), (1395016434,), (1395016435,), (1395016459,), (1395016464,), (1395016467,), (1395016472,), (1395016476,), (1395016511,), (1395016513,), (1395016516,), (1395016595,), (1395016623,), (1395016624,), (1395016687,), (1395016715,), (1395016716,), (1395016719,), (1395016826,), (1395016828,), (1395016849,), (1395016869,), (1395016879,), (1395016888,), (1395017051,), (1395017083,), (1395017115,), (1395017153,), (1395017328,), (1395017390,), (1395017452,), (1395017521,), (1395018064,), (1395018077,), (1395018109,), (1395018119,), (1395020706,), (1395020702,), (1395020704,), (1395020737,), (1395020738,), (1395020739,), (1395020741,), (1395020762,), (1395020763,), (1395020764,), (1395020766,), (1395020797,), (1395020808,), (1395020816,), (1395020820,), (1395020825,), (1395020882,), (1395020883,), (1395020884,), (1395020912,), (1395020921,), (1395020923,), (1395020928,), (1395020938,), (1395020942,), (1395020959,), (1395020961,), (1395020964,), (1395020970,), (1395020976,), (1395020979,), (1395020998,), (1395021001,), (1395021004,), (1395021033,), (1395021034,), (1395021035,), (1395021037,), (1395021040,), (1395021044,), (1395021070,), (1395021072,), (1395021073,), (1395021077,), (1395021101,), (1395021110,), (1395021117,), (1395021169,), (1395021191,), (1395021222,), (1395021256,), (1395021421,), (1395021422,), (1395021538,), (1395021526,), (1395021528,), (1395021530,), (1395021534,), (1395021562,), (1395021564,), (1395021565,), (1395021569,), (1395021574,), (1395021575,), (1395021603,), (1395021624,), (1395021626,), (1395021630,), (1395021653,), (1395021661,), (1395021678,), (1395021680,), (1395021681,), (1395021683,), (1395021687,), (1395021690,), (1395021694,), (1395021698,), (1395021718,), (1395021720,), (1395021722,), (1395021908,), (1395021965,), (1395022014,), (1395022211,), (1395022268,), (1395022671,), (1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,), (1395023947,), (1395023977,), (1395024015,), (1395024079,), (1395024076,), (1395024077,), (1395024156,), (1395024159,), (1395024164,), (1395024197,), (1395024198,), (1395024200,), (1395024203,), (1395024434,), (1395024474,), (1395024524,), (1395024558,), (1395024592,), (1395024625,), (1395024817,), (1395024819,), (1395024821,), (1395025059,), (1395025072,), (1395025205,), (1395025206,), (1395025208,), (1395025212,), (1395025216,), (1395025234,), (1395025235,), (1395025236,), (1395025239,), (1395025243,), (1395025246,), (1395025269,), (1395025270,), (1395025272,), (1395025275,), (1395025311,), (1395025313,), (1395025320,), (1395025326,), (1395025331,), (1395025348,), (1395025352,), (1395025357,), (1395025359,), (1395025380,), (1395025381,), (1395025383,), (1395025386,), (1395025411,), (1395025412,), (1395025414,), (1395025418,), (1395025427,), (1395025448,), (1395025449,), (1395025450,), (1395025452,), (1395025456,), (1395025495,), (1395025503,), (1395025508,), (1395025511,), (1395025569,), (1395025573,), (1395025575,), (1395025592,), (1395025593,), (1395025538,), (1395025540,), (1395025552,), (1395025611,), (1395025613,), (1395025615,), (1395025618,), (1395025640,), (1395025642,), (1395025644,), (1395025648,), (1395025675,), (1395025676,), (1395025678,), (1395025681,), (1395025701,), (1395025702,), (1395025703,), (1395025706,), (1395025710,), (1395025757,), (1395025759,), (1395025761,), (1395025765,), (1395025770,), (1395025774,), (1395025789,), (1395025790,), (1395025795,), (1395025832,), (1395025835,), (1395025838,), (1395025842,), (1395025848,), (1395025851,), (1395025867,), (1395025868,), (1395025869,), (1395026007,), (1395026009,), (1395026011,), (1395026041,), (1395026042,), (1395026043,), (1395026046,), (1395026114,), (1395026115,), (1395026116,), (1395026119,), (1395026124,), (1395026128,), (1395026147,), (1395026149,), (1395026151,), (1395026155,), (1395026189,), (1395026285,), (1395026287,), (1395026288,), (1395026295,), (1395026299,), (1395026365,), (1395026370,), (1395026372,), (1395026582,), (1395026527,), (1395026557,), (1395026562,), (1395026567,), (1395026578,), (1395026597,), (1395026605,), (1395026610,), (1395026614,), (1395026619,), (1395026622,), (1395026644,), (1395026645,), (1395026646,), (1395026668,), (1395026670,), (1395026672,), (1395026677,), (1395026681,), (1395026809,), (1395026827,), (1395026920,), (1395027503,), (1395027549,), (1395027560,), (1395027592,), (1395027644,), (1395027821,), (1395027822,), (1395027838,), (1395027841,), (1395027862,), (1395027864,), (1395027865,), (1395028352,), (1395028359,), (1395028393,), (1395028467,), (1395028983,), (1395028907,), (1395028941,), (1395029623,), (1395029723,), (1395029815,), (1395029903,), (1395029972,), (1395030063,), (1395030566,), (1395030568,), (1395030570,), (1395030839,), (1395030844,), (1395030878,), (1395030882,), (1395030886,), (1395030890,), (1395030912,), (1395030913,), (1395030915,), (1395030918,), (1395030923,), (1395031109,), (1395031111,), (1395031112,), (1395031115,), (1395031165,), (1395031167,), (1395031172,), (1395031181,), (1395031200,), (1395031204,), (1395031252,), (1395031254,), (1395031257,), (1395031262,), (1395031307,), (1395031372,), (1395031376,), (1395031795,), (1395031811,), (1395031816,), (1395031848,), (1395031850,), (1395031851,), (1395031853,), (1395031960,), (1395032096,), (1395032099,), (1395032102,), (1395032105,), (1395032139,), (1395032126,), (1395032132,), (1395032246,), (1395032277,), (1395032658,), (1395032670,), (1395032698,), (1395032699,), (1395032786,), (1395032792,), (1395032798,), (1395032805,), (1395032808,), (1395032809,), (1395032819,), (1395032822,), (1395032826,), (1395032829,), (1395032835,), (1395032837,), (1395032854,), (1395032859,), (1395032881,), (1395032884,), (1395032886,), (1395032890,), (1395032894,), (1395032947,), (1395032949,), (1395032954,), (1395032961,), (1395032967,), (1395033009,), (1395033014,), (1395033018,), (1395033021,), (1395033044,), (1395033053,), (1395033058,), (1395033071,), (1395033087,), (1395033105,), (1395033130,), (1395033170,), (1395033214,), (1395033237,), (1395033238,), (1395033265,), (1395033298,), (1395033356,), (1395033360,), (1395033486,), (1395033489,), (1395033490,), (1395033501,), (1395033506,), (1395033525,), (1395033554,), (1395033556,), (1395033616,), (1395033615,), (1395033756,), (1395033758,), (1395033760,), (1395033762,), (1395033786,), (1395033790,), (1395033799,), (1395033803,), (1395033846,), (1395033854,), (1395033862,), (1395033871,), (1395033884,), (1395033934,), (1395033938,), (1395034036,), (1395034039,), (1395034062,), (1395034063,), (1395034064,), (1395034115,), (1395034191,), (1395034547,), (1395034542,), (1395034544,), (1395034590,), (1395034614,), (1395035064,), (1395035089,), (1395035092,), (1395035095,), (1395035099,), (1395035132,), (1395035135,), (1395037113,), (1395037058,), (1395037074,), (1395037250,), (1395037253,), (1395037256,), (1395037370,), (1395037393,), (1395037414,), (1395037416,), (1395037419,), (1395037429,), (1395037432,), (1395037435,), (1395037447,), (1395037451,), (1395037454,), (1395037457,), (1395037462,), (1395037467,), (1395037483,), (1395037499,), (1395037505,), (1395037510,), (1395037514,), (1395037581,), (1395037584,), (1395037585,), (1395037590,), (1395037659,), (1395037663,), (1395037665,), (1395037669,), (1395037866,), (1395037913,), (1395038215,), (1395038218,), (1395038242,), (1395038340,), (1395038448,), (1395047953,), (1395045444,), (1395046747,), (1395047820,), (1395047951,), (1395048174,), (1395048179,), (1395048222,), (1395048309,), (1395048310,), (1395048350,), (1395048351,), (1395048352,), (1395048354,), (1395048357,), (1395048366,), (1395048437,), (1395048439,), (1395048441,), (1395048452,), (1395048477,), (1395048508,), (1395048509,), (1395048510,), (1395048556,), (1395048558,), (1395048561,), (1395048566,), (1395048589,), (1395048593,), (1395048595,), (1395048601,), (1395048610,), (1395048673,), (1395048676,), (1395048679,), (1395048728,), (1395048753,), (1395049603,), (1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18112025': {'nb_upload': 37, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28659160]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799] map_info['map_portfolio_photo'] : {28659160: [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799, 1395051712, 1395051710, 1395051673, 1395051671, 1395051668, 1395051650, 1395051648, 1395051647, 1395051629, 1395051624, 1395051621, 1395051620, 1395051619, 1395051599, 1395051596, 1395051594, 1395051592, 1395051454, 1395051136, 1395051103, 1395051071, 1395051038, 1395050949, 1395050945, 1395050942, 1395050940, 1395050938, 1395050920, 1395050919, 1395050809, 1395050287]} final : True mtd_id 4302 list_pids : [1395051944, 1395051927, 1395051803, 1395051801, 1395051800, 1395051799] Looping around the photos to save general results len do output : 1 /28659160Didn'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, '4066579') ('4302', '28659160', '1395051944', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051927', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051803', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051801', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051800', None, None, None, None, None, '4066579') ('4302', None, None, None, None, None, None, None, '4066579') ('4302', '28659160', '1395051799', None, None, None, None, None, '4066579') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '28659160', 'None', None, None, None, None, '4066579'), ('4302', '28659160', '1395051944', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051927', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051803', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051801', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051800', None, None, None, None, None, '4066579'), ('4302', '28659160', '1395051799', None, None, None, None, None, '4066579')] time used for this insertion : 0.011971712112426758 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9118220806121826 time spend to save output : 0.012184619903564453 total time spend for step 5 : 2.924006700515747 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 (4066579) 2.23user 1.89system 0:09.83elapsed 41%CPU (0avgtext+0avgdata 158744maxresident)k 136inputs+6216outputs (2major+77053minor)pagefaults 0swaps