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 : 2622221 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 (4063441) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4063441) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624431 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4063441'] with mtr_portfolio_ids : ['28624431'] and first list_photo_ids : [] new path : /proc/2622221/ Name: python3 Umask: 0002 State: R (running) Tgid: 2622221 Ngid: 0 Pid: 2622221 PPid: 2622220 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2622221 NSpid: 2622221 NSpgid: 2621633 NSsid: 2621633 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98788 kB VmRSS: 98788 kB RssAnon: 59908 kB RssFile: 38880 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 41 nonvoluntary_ctxt_switches: 116 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2622221', 'Ngid': '0', 'Pid': '2622221', 'PPid': '2622220', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2622221', 'NSpid': '2622221', 'NSpgid': '2621633', 'NSsid': '2621633', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98788 kB', 'VmRSS': '98788 kB', 'RssAnon': '59908 kB', 'RssFile': '38880 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '41', 'nonvoluntary_ctxt_switches': '116'} ('datou_batch_current', '2622221', '1106908', '0', '1106884', '865636', '98788', b'', 'marlene', '4063441') 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 (28624431) 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 (4063441 ) ) 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 (28624431) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1394925114, 'portfolio_id': 28624431}, {'photo_id': 1394925085, 'portfolio_id': 28624431}, {'photo_id': 1394925083, 'portfolio_id': 28624431}, {'photo_id': 1394925080, 'portfolio_id': 28624431}, {'photo_id': 1394925079, 'portfolio_id': 28624431}, {'photo_id': 1394925077, 'portfolio_id': 28624431}, {'photo_id': 1394925055, 'portfolio_id': 28624431}, {'photo_id': 1394925012, 'portfolio_id': 28624431}, {'photo_id': 1394924972, 'portfolio_id': 28624431}, {'photo_id': 1394924952, 'portfolio_id': 28624431}, {'photo_id': 1394924949, 'portfolio_id': 28624431}, {'photo_id': 1394924947, 'portfolio_id': 28624431}, {'photo_id': 1394924945, 'portfolio_id': 28624431}, {'photo_id': 1394924570, 'portfolio_id': 28624431}, {'photo_id': 1394923477, 'portfolio_id': 28624431}] map_portfolio_id_photo_id: {28624431: [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477]} ##### 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.018284082412719727 #### 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 06:06:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28624431) 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 : 28624431 get user id for portfolio 28624431 get sub ptf for main ptf 28624431, type 3726 and hashtags ['Carton_brun', 'Teint_Dans_La_Masse', 'metal', 'Carton_gris', 'environnement', 'papier', 'plastique', 'cartonnette', 'autre_refus', 'flou', 'mal_croppe', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28624431 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','metal','Carton_gris','environnement','papier','plastique','cartonnette','autre_refus','flou','mal_croppe','kraft')) 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`=28624431 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','metal','Carton_gris','environnement','papier','plastique','cartonnette','autre_refus','flou','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28624431, 'sub_port_id': 28624436, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407871, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}, 'Carton_gris': {'main_port_id': 28624431, 'sub_port_id': 28624437, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407872, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}, 'kraft': {'main_port_id': 28624431, 'sub_port_id': 28624438, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407873, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}, 'metal': {'main_port_id': 28624431, 'sub_port_id': 28624439, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407874, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}, 'plastique': {'main_port_id': 28624431, 'sub_port_id': 28624440, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407875, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}, 'flou': {'main_port_id': 28624431, 'sub_port_id': 28624441, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407876, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}, 'papier': {'main_port_id': 28624431, 'sub_port_id': 28624442, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407877, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}, 'environnement': {'main_port_id': 28624431, 'sub_port_id': 28624443, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407878, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28624431, 'sub_port_id': 28624444, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407879, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}, 'autre_refus': {'main_port_id': 28624431, 'sub_port_id': 28624445, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407880, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}, 'mal_croppe': {'main_port_id': 28624431, 'sub_port_id': 28624446, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407881, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}, 'cartonnette': {'main_port_id': 28624431, 'sub_port_id': 28624447, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407882, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624436 , 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=28624431 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 (28624436) result : ((1394925150,), (1394927262,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624437 , 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=28624431 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 (28624437) result : ((1394925040,), (1394926724,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624438 , 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=28624431 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 (28624438) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624439 , 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=28624431 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 (28624439) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624440 , 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=28624431 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 (28624440) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624441 , 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=28624431 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 (28624441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624442 , 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=28624431 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 (28624442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624443 , 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=28624431 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 (28624443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624444 , 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=28624431 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 (28624444) result : ((1394925039,), (1394926722,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624445 , 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=28624431 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 (28624445) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624446 , 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=28624431 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 (28624446) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28624447 , 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=28624431 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 (28624447) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28624431) result : ((1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28624431 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','metal','Carton_gris','environnement','papier','plastique','cartonnette','autre_refus','flou','mal_croppe','kraft')) 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`=28624431 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','metal','Carton_gris','environnement','papier','plastique','cartonnette','autre_refus','flou','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28624431, 'sub_port_id': 28624448, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407883, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}, 'Carton_gris': {'main_port_id': 28624431, 'sub_port_id': 28624449, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407884, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}, 'kraft': {'main_port_id': 28624431, 'sub_port_id': 28624450, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407885, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}, 'metal': {'main_port_id': 28624431, 'sub_port_id': 28624451, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407886, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}, 'plastique': {'main_port_id': 28624431, 'sub_port_id': 28624452, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407887, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}, 'flou': {'main_port_id': 28624431, 'sub_port_id': 28624453, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407888, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}, 'papier': {'main_port_id': 28624431, 'sub_port_id': 28624454, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407889, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}, 'environnement': {'main_port_id': 28624431, 'sub_port_id': 28624455, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407890, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 28624431, 'sub_port_id': 28624456, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407891, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}, 'autre_refus': {'main_port_id': 28624431, 'sub_port_id': 28624457, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407892, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}, 'mal_croppe': {'main_port_id': 28624431, 'sub_port_id': 28624458, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407893, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}, 'cartonnette': {'main_port_id': 28624431, 'sub_port_id': 28624459, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19407894, 'last_updated_at': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 21, 9, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624436 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28624459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28624447 lien utilise dans velours : https://marlene.fotonower.com/velours/28624448,28624449,28624450,28624451,28624452,28624453,28624454,28624455,28624456,28624457,28624458,28624459?tags=Carton_brun,Carton_gris,kraft,metal,plastique,flou,papier,environnement,Teint_Dans_La_Masse,autre_refus,mal_croppe,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28624431]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477] map_info['map_portfolio_photo'] : {28624431: [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477]} final : False mtd_id 4302 list_pids : [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477] Looping around the photos to save general results len do output : 1 /28624431. 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, '4063441') ('4302', '28624431', '1394925114', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925085', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925083', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925080', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925079', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925077', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925055', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925012', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924972', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924952', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924949', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924947', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924945', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924570', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394923477', None, None, None, None, None, '4063441') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '28624431', "{'Carton_brun': 28624436, 'Carton_gris': 28624437, 'kraft': 28624438, 'metal': 28624439, 'plastique': 28624440, 'flou': 28624441, 'papier': 28624442, 'environnement': 28624443, 'Teint_Dans_La_Masse': 28624444, 'autre_refus': 28624445, 'mal_croppe': 28624446, 'cartonnette': 28624447}", None, None, None, None, '4063441'), ('4302', '28624431', '1394925114', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925085', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925083', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925080', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925079', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925077', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925055', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925012', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924972', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924952', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924949', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924947', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924945', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924570', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394923477', None, None, None, None, None, '4063441')] time used for this insertion : 0.016565561294555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.53794264793396 time spend to save output : 0.0168759822845459 total time spend for step 1 : 1.5548186302185059 step2:final Tue Nov 18 06:06: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 ! 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 (28624431) 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 28624431 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1394923477,1394924952,1394924570,1394924949,1394924947,1394924945,1394924972,1394925012,1394925055,1394925085,1394925083,1394925080,1394925079,1394925077,1394925114); 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([28624431]) Inside saveOutput : final : False verbose : True original output for save of step final : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} new output for save of step final : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477] map_info['map_portfolio_photo'] : {28624431: [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477]} final : False mtd_id 4302 list_pids : [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477] Looping around the photos to save general results len do output : 15 /1394925114.Didn't retrieve data . /1394925085.Didn't retrieve data . /1394925083.Didn't retrieve data . /1394925080.Didn't retrieve data . /1394925079.Didn't retrieve data . /1394925077.Didn't retrieve data . /1394925055.Didn't retrieve data . /1394925012.Didn't retrieve data . /1394924972.Didn't retrieve data . /1394924952.Didn't retrieve data . /1394924949.Didn't retrieve data . /1394924947.Didn't retrieve data . /1394924945.Didn't retrieve data . /1394924570.Didn't retrieve data . /1394923477.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, '4063441') ('4302', '28624431', '1394925114', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925085', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925083', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925080', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925079', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925077', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925055', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925012', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924972', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924952', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924949', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924947', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924945', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924570', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394923477', None, None, None, None, None, '4063441') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '28624431', '1394925114', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394925085', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394925083', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394925080', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394925079', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394925077', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394925055', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394925012', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394924972', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394924952', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394924949', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394924947', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394924945', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394924570', '0.013867502527820652', None, None, None, None, '4063441'), ('4302', '28624431', '1394923477', '0.013867502527820652', None, None, None, None, '4063441')] time used for this insertion : 0.014084577560424805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06423616409301758 time spend to save output : 0.014849185943603516 total time spend for step 2 : 0.0790853500366211 step3:velours_tree Tue Nov 18 06:06: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 complete output_args for input 0 : {28624431: [{'Carton_brun': 28624436, 'Carton_gris': 28624437, 'kraft': 28624438, 'metal': 28624439, 'plastique': 28624440, 'flou': 28624441, 'papier': 28624442, 'environnement': 28624443, 'Teint_Dans_La_Masse': 28624444, 'autre_refus': 28624445, 'mal_croppe': 28624446, 'cartonnette': 28624447}]} input_args_next_step : {28624431: ()} output_args : {28624431: [{'Carton_brun': 28624436, 'Carton_gris': 28624437, 'kraft': 28624438, 'metal': 28624439, 'plastique': 28624440, 'flou': 28624441, 'papier': 28624442, 'environnement': 28624443, 'Teint_Dans_La_Masse': 28624444, 'autre_refus': 28624445, 'mal_croppe': 28624446, 'cartonnette': 28624447}]} args : 28624431 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 28624436, 'Carton_gris': 28624437, 'kraft': 28624438, 'metal': 28624439, 'plastique': 28624440, 'flou': 28624441, 'papier': 28624442, 'environnement': 28624443, 'Teint_Dans_La_Masse': 28624444, 'autre_refus': 28624445, 'mal_croppe': 28624446, 'cartonnette': 28624447},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28624431) 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([28624431]) 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.39351415634155273 time spend to save output : 6.008148193359375e-05 total time spend for step 3 : 0.39357423782348633 step4:send_mail_cod Tue Nov 18 06:06: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 : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} input_args_next_step : {1394925114: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394925114 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394925085 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394925083 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394925080 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394925079 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394925077 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394925055 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394925012 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394924972 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394924952 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394924949 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394924947 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394924945 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394924570 depend.output_id : 0 input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ()} output_args : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',)} args : 1394923477 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 : {28624431: [{'Carton_brun': 28624436, 'Carton_gris': 28624437, 'kraft': 28624438, 'metal': 28624439, 'plastique': 28624440, 'flou': 28624441, 'papier': 28624442, 'environnement': 28624443, 'Teint_Dans_La_Masse': 28624444, 'autre_refus': 28624445, 'mal_croppe': 28624446, 'cartonnette': 28624447}]} input_args_next_step : {1394925114: ('0.013867502527820652',), 1394925085: ('0.013867502527820652',), 1394925083: ('0.013867502527820652',), 1394925080: ('0.013867502527820652',), 1394925079: ('0.013867502527820652',), 1394925077: ('0.013867502527820652',), 1394925055: ('0.013867502527820652',), 1394925012: ('0.013867502527820652',), 1394924972: ('0.013867502527820652',), 1394924952: ('0.013867502527820652',), 1394924949: ('0.013867502527820652',), 1394924947: ('0.013867502527820652',), 1394924945: ('0.013867502527820652',), 1394924570: ('0.013867502527820652',), 1394923477: ('0.013867502527820652',), 28624431: ()} output_args : {28624431: [{'Carton_brun': 28624436, 'Carton_gris': 28624437, 'kraft': 28624438, 'metal': 28624439, 'plastique': 28624440, 'flou': 28624441, 'papier': 28624442, 'environnement': 28624443, 'Teint_Dans_La_Masse': 28624444, 'autre_refus': 28624445, 'mal_croppe': 28624446, 'cartonnette': 28624447}]} args : 28624431 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 :16, first value : ('0.013867502527820652',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28624431) 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 (1394925114,1394925085,1394925083,1394925080,1394925079,1394925077,1394925055,1394925012,1394924972,1394924952,1394924949,1394924947,1394924945,1394924570,1394923477) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1394923477 begin to download photo : 1394924949 begin to download photo : 1394925055 begin to download photo : 1394925083 download finish for photo 1394923477 begin to download photo : 1394924570 download finish for photo 1394924949 begin to download photo : 1394924952 download finish for photo 1394925083 begin to download photo : 1394925085 download finish for photo 1394925055 begin to download photo : 1394925077 download finish for photo 1394924952 begin to download photo : 1394924972 download finish for photo 1394924570 begin to download photo : 1394924945 download finish for photo 1394925085 begin to download photo : 1394925114 download finish for photo 1394925077 begin to download photo : 1394925079 download finish for photo 1394924972 begin to download photo : 1394925012 download finish for photo 1394924945 begin to download photo : 1394924947 download finish for photo 1394925114 download finish for photo 1394925079 begin to download photo : 1394925080 download finish for photo 1394924947 download finish for photo 1394925012 download finish for photo 1394925080 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette286244381763442391/ imagette286244391763442391/ imagette286244401763442391/ imagette286244411763442391/ imagette286244451763442391/ imagette286244461763442391/ imagette286244471763442391/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P28624431_18-11-2025_06_06_31.pdf 28624438 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=28624438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286244381763442391 28624439 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=28624439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286244391763442391 28624440 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=28624440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286244401763442391 28624441 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=28624441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286244411763442391 28624445 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=28624445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286244451763442391 28624446 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=28624446 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286244461763442391 28624447 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=28624447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286244471763442391 28624436 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=28624436 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394925150: '1763410645_3056737_1394925083_5b0d05bd10ef911be73436545d021d5c_rle_crop_4036725684_0.png', 1394927262: '1763413405_3178138_1394925083_5b0d05bd10ef911be73436545d021d5c_rle_crop_4036725684_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/aee1221a3cf066efb3130fe9ea74a2ca_72489807.png change filename to text .imagette286244361763442391/ imagette286244361763442391/1763413405_3178138_1394925083_5b0d05bd10ef911be73436545d021d5c_rle_crop_4036725684_0.png.png imagette286244361763442391/1763410645_3056737_1394925083_5b0d05bd10ef911be73436545d021d5c_rle_crop_4036725684_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/aee1221a3cf066efb3130fe9ea74a2ca_91990773.png imagette286244361763442391 28624437 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=28624437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394925040: '1763410406_3050296_1394924945_352dec721bd6759a85cad485d1449fa6_rle_crop_4036719002_0.png', 1394926724: '1763412546_3121725_1394924945_352dec721bd6759a85cad485d1449fa6_rle_crop_4036719002_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/685095df99c0634dbe553469465901c5_23856460.png change filename to text .imagette286244371763442391/ imagette286244371763442391/1763412546_3121725_1394924945_352dec721bd6759a85cad485d1449fa6_rle_crop_4036719002_0.png.png imagette286244371763442391/1763410406_3050296_1394924945_352dec721bd6759a85cad485d1449fa6_rle_crop_4036719002_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/685095df99c0634dbe553469465901c5_46213481.png imagette286244371763442391 28624444 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=28624444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394925039: '1763410406_3050296_1394924972_c74666e502a5988c64c5eac3923203d0_rle_crop_4036718985_0.png', 1394926722: '1763412546_3121725_1394924972_c74666e502a5988c64c5eac3923203d0_rle_crop_4036718985_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/7cba0c7a78e631151099b613945c227e_11472508.png change filename to text .imagette286244441763442391/ imagette286244441763442391/1763412546_3121725_1394924972_c74666e502a5988c64c5eac3923203d0_rle_crop_4036718985_0.png.png imagette286244441763442391/1763410406_3050296_1394924972_c74666e502a5988c64c5eac3923203d0_rle_crop_4036718985_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/7cba0c7a78e631151099b613945c227e_99962334.png imagette286244441763442391 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28624431 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28624448,28624449,28624450,28624451,28624452,28624453,28624454,28624455,28624456,28624457,28624458,28624459?tags=Carton_brun,Carton_gris,kraft,metal,plastique,flou,papier,environnement,Teint_Dans_La_Masse,autre_refus,mal_croppe,cartonnette your option no_mail is active, we will not send the real mail to your client args[1394925114] : ('0.013867502527820652',) no score found for photo 1394925114 We are sending mail with results at report@fotonower.com args[1394925085] : ('0.013867502527820652',) no score found for photo 1394925085 We are sending mail with results at report@fotonower.com args[1394925083] : ('0.013867502527820652',) no score found for photo 1394925083 We are sending mail with results at report@fotonower.com args[1394925080] : ('0.013867502527820652',) no score found for photo 1394925080 We are sending mail with results at report@fotonower.com args[1394925079] : ('0.013867502527820652',) no score found for photo 1394925079 We are sending mail with results at report@fotonower.com args[1394925077] : ('0.013867502527820652',) no score found for photo 1394925077 We are sending mail with results at report@fotonower.com args[1394925055] : ('0.013867502527820652',) no score found for photo 1394925055 We are sending mail with results at report@fotonower.com args[1394925012] : ('0.013867502527820652',) no score found for photo 1394925012 We are sending mail with results at report@fotonower.com args[1394924972] : ('0.013867502527820652',) no score found for photo 1394924972 We are sending mail with results at report@fotonower.com args[1394924952] : ('0.013867502527820652',) no score found for photo 1394924952 We are sending mail with results at report@fotonower.com args[1394924949] : ('0.013867502527820652',) no score found for photo 1394924949 We are sending mail with results at report@fotonower.com args[1394924947] : ('0.013867502527820652',) no score found for photo 1394924947 We are sending mail with results at report@fotonower.com args[1394924945] : ('0.013867502527820652',) no score found for photo 1394924945 We are sending mail with results at report@fotonower.com args[1394924570] : ('0.013867502527820652',) no score found for photo 1394924570 We are sending mail with results at report@fotonower.com args[1394923477] : ('0.013867502527820652',) no score found for photo 1394923477 We are sending mail with results at report@fotonower.com refus_total : 0.013867502527820652 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=28624431 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_P28624431_18-11-2025_06_06_31.pdf results_Auto_P28624431_18-11-2025_06_06_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28624431_18-11-2025_06_06_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28624431','results_Auto_P28624431_18-11-2025_06_06_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28624431_18-11-2025_06_06_31.pdf','pdf','','0.13','0.013867502527820652') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28624431]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477] map_info['map_portfolio_photo'] : {28624431: [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477]} final : False mtd_id 4302 list_pids : [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477] 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, '4063441') ('4302', '28624431', '1394925114', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925085', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925083', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925080', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925079', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925077', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925055', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925012', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924972', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924952', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924949', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924947', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924945', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924570', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394923477', None, None, None, None, None, '4063441') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '28624431', '1394925114', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925085', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925083', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925080', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925079', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925077', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925055', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925012', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924972', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924952', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924949', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924947', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924945', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924570', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394923477', None, None, None, None, None, '4063441')] time used for this insertion : 0.01372671127319336 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4679408073425293 time spend to save output : 0.014000892639160156 total time spend for step 4 : 2.4819416999816895 step5:split_time_score Tue Nov 18 06:06:33 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 : ['28624431'] 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 : [('28624431',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28624431) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1394925083: {'path': 'temp/1763442390_2622221_1394925083_5b0d05bd10ef911be73436545d021d5c.jpg', 'extension': 'jpg'}, 1394925085: {'path': 'temp/1763442390_2622221_1394925085_a6f6f7a6daf0ad0e520d24b8ccf25a70.jpg', 'extension': 'jpg'}, 1394925114: {'path': 'temp/1763442390_2622221_1394925114_1d575df40d123a1001cc73ef0c6ab480.jpg', 'extension': 'jpg'}, 1394923477: {'path': 'temp/1763442390_2622221_1394923477_a717706a0d5830bd4d20bf00c9e8181a.jpg', 'extension': 'jpg'}, 1394924570: {'path': 'temp/1763442390_2622221_1394924570_4cb4f5c7e1aa60d3aa968e63fe1de21a.jpg', 'extension': 'jpg'}, 1394924945: {'path': 'temp/1763442390_2622221_1394924945_352dec721bd6759a85cad485d1449fa6.jpg', 'extension': 'jpg'}, 1394924947: {'path': 'temp/1763442390_2622221_1394924947_8f419ff3e7f49eae012561490a492107.jpg', 'extension': 'jpg'}, 1394924949: {'path': 'temp/1763442390_2622221_1394924949_59725806a214bd9c3447bb79f3386d4e.jpg', 'extension': 'jpg'}, 1394924952: {'path': 'temp/1763442390_2622221_1394924952_f77bd9caee69f18b273dec0c9abc1d13.jpg', 'extension': 'jpg'}, 1394924972: {'path': 'temp/1763442390_2622221_1394924972_c74666e502a5988c64c5eac3923203d0.jpg', 'extension': 'jpg'}, 1394925012: {'path': 'temp/1763442390_2622221_1394925012_18bb9ebf1b20e8b2df461ff7932b9d34.jpg', 'extension': 'jpg'}, 1394925055: {'path': 'temp/1763442390_2622221_1394925055_d85c2a9029d86171df2f7978eae25683.jpg', 'extension': 'jpg'}, 1394925077: {'path': 'temp/1763442390_2622221_1394925077_3b7bff2e3924ebaf5216e79091b2ec6d.jpg', 'extension': 'jpg'}, 1394925079: {'path': 'temp/1763442390_2622221_1394925079_2260bb781699940e280a8d863d0d8ed8.jpg', 'extension': 'jpg'}, 1394925080: {'path': 'temp/1763442390_2622221_1394925080_ec912dd21fd8d7a4c02bdda978692dd3.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 = 28624431; (('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28624431 group by h (('21', 15),) 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=28624431 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 (28624431) 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 (28624431) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17112025 28624431 Nombre de photos uploadées : 15 / 23040 (0%) 17112025 28624431 Nombre de photos taguées (types de déchets): 0 / 15 (0%) 17112025 28624431 Nombre de photos taguées (volume) : 0 / 15 (0%) [{'photo_id': 1394923477, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/a717706a0d5830bd4d20bf00c9e8181a.jpg', 'username': None, 'uploaded_at': 1763409907, 'text': 'image_17112025_21_04_04_010146m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1394924952, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/f77bd9caee69f18b273dec0c9abc1d13.jpg', 'username': None, 'uploaded_at': 1763410267, 'text': 'image_17112025_21_04_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1394924570, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/4cb4f5c7e1aa60d3aa968e63fe1de21a.jpg', 'username': None, 'uploaded_at': 1763410023, 'text': 'image_17112025_21_06_13_10138.jpg'}, {'photo_id': 1394924949, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/59725806a214bd9c3447bb79f3386d4e.jpg', 'username': None, 'uploaded_at': 1763410267, 'text': 'image_17112025_21_10_04_10148.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008275508880615234 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28624431, '2025-11-17' ) 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-17' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2592139,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20879793167114258 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= 2592139 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28588540, 'dashboard_result_id': 17393986, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588540_18-11-2025_05_34_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588553, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28588944, 'dashboard_result_id': 17393987, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588944_18-11-2025_05_35_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588958, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28589312, 'dashboard_result_id': 17393988, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589312_18-11-2025_05_35_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589328, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28589740, 'dashboard_result_id': 17393989, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589740_18-11-2025_05_35_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589759, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28590136, 'dashboard_result_id': 17393990, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590136_18-11-2025_05_35_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28590182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590193, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28590689, 'dashboard_result_id': 17393991, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590689_18-11-2025_05_36_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28590708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590709, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28591089, 'dashboard_result_id': 17393992, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591089_18-11-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591126, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28591538, 'dashboard_result_id': 17393993, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591538_18-11-2025_05_37_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591558, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28592014, 'dashboard_result_id': 17393994, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592014_18-11-2025_05_38_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592042, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28592687, 'dashboard_result_id': 17393995, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592687_18-11-2025_05_38_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592728, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28593232, 'dashboard_result_id': 17393996, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593232_18-11-2025_05_39_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28593257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28593261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593268, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28593671, 'dashboard_result_id': 17393997, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593671_18-11-2025_05_40_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28593673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28593680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593683, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593684, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28594377, 'dashboard_result_id': 17393998, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28594377_18-11-2025_05_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28594388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28594390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28594391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28594392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28594394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28594395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28594396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28594397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28594398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28594399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28594400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28594401, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28595117, 'dashboard_result_id': 17393999, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595117_18-11-2025_05_41_17.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28595150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595161, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28595738, 'dashboard_result_id': 17394000, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595738_18-11-2025_05_41_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28595760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595766, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28596408, 'dashboard_result_id': 17394001, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28596408_18-11-2025_05_42_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28596438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28596439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28596440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28596441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28596442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28596443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28596444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28596445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28596446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28596447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28596448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28596449, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28598195, 'dashboard_result_id': 17394002, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598195_18-11-2025_05_43_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598233, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28598931, 'dashboard_result_id': 17394003, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598931_18-11-2025_05_43_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598968, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28599377, 'dashboard_result_id': 17394004, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28599377_18-11-2025_05_44_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28599428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28599429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28599430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28599431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28599432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28599433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28599434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28599435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28599436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28599437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28599438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28599439, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28600147, 'dashboard_result_id': 17394005, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28600147_18-11-2025_05_44_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28600181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28600182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28600183, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28600184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28600185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28600186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28600187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28600188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28600189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28600190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28600191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28600192, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28600739, 'dashboard_result_id': 17394006, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28600739_18-11-2025_05_45_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28600744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28600745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28600746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28600747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28600748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28600749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28600750, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28600751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28600752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28600753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28600754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28600755, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28601491, 'dashboard_result_id': 17394007, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28601491_18-11-2025_05_46_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28601508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28601509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28601510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28601511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28601512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28601513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28601514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28601515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28601516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28601517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28601518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28601519, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28602007, 'dashboard_result_id': 17394008, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28602007_18-11-2025_05_46_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28602012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28602013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28602014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28602015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28602016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28602017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28602018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28602019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28602020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28602021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28602022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28602023, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28602696, 'dashboard_result_id': 17394009, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28602696_18-11-2025_05_46_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28602739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28602740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28602741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28602742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28602743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28602744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28602745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28602746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28602747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28602748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28602749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28602750, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28603477, 'dashboard_result_id': 17394010, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28603477_18-11-2025_05_47_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28603486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28603487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28603488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28603489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28603490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28603491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28603492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28603493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28603494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28603495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28603496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28603497, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28604216, 'dashboard_result_id': 17394011, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28604216_18-11-2025_05_48_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28604263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28604264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28604265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28604266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28604267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28604269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28604270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28604271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28604272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28604273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28604274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28604275, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28604777, 'dashboard_result_id': 17394012, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28604777_18-11-2025_05_48_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28604787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28604788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28604789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28604790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28604791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28604792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28604793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28604794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28604795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28604796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28604797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28604798, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28607482, 'dashboard_result_id': 17394013, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28607482_18-11-2025_05_49_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28607488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28607489, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28607490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28607491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28607492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28607493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28607494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28607495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28607496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28607497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28607498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28607499, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28607646, 'dashboard_result_id': 17394014, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28607646_18-11-2025_05_50_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28607652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28607653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28607654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28607655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28607656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28607657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28607658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28607659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28607660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28607661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28607662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28607663, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28608068, 'dashboard_result_id': 17394015, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28608068_18-11-2025_05_50_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28608081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28608082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28608083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28608084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28608085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28608086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28608087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28608088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28608089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28608090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28608091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28608092, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28608782, 'dashboard_result_id': 17394016, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28608782_18-11-2025_05_51_14.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28608791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28608792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28608793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28608794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28608795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28608796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28608797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28608798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28608799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28608800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28608801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28608802, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28609317, 'dashboard_result_id': 17394017, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28609317_18-11-2025_05_51_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28609394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28609395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28609396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28609397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28609398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28609399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28609400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28609401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28609402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28609403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28609404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28609405, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28610012, 'dashboard_result_id': 17394018, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28610012_18-11-2025_05_52_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28610058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28610059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28610060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28610061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28610062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28610063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28610064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28610065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28610066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28610067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28610068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28610069, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28610526, 'dashboard_result_id': 17394019, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28610526_18-11-2025_05_52_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28610547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28610548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28610549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28610550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28610551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28610552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28610553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28610554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28610555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28610556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28610557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28610558, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28611090, 'dashboard_result_id': 17394020, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28611090_18-11-2025_05_53_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28611091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28611092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28611093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28611094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28611095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28611096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28611097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28611098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28611099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28611100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28611101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28611102, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28611807, 'dashboard_result_id': 17394021, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28611807_18-11-2025_05_54_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28611844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28611845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28611846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28611847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28611848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28611849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28611850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28611851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28611852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28611853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28611854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28611855, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28612408, 'dashboard_result_id': 17394022, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28612408_18-11-2025_05_55_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28612417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28612418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28612419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28612420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28612421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28612422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28612423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28612424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28612425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28612426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28612427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28612428, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28613283, 'dashboard_result_id': 17394023, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28613283_18-11-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28613326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28613327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28613328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28613329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28613330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28613331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28613332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28613333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28613334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28613335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28613336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28613337, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28613844, 'dashboard_result_id': 17394024, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28613844_18-11-2025_05_56_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28613889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28613890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28613891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28613892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28613893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28613894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28613895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28613896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28613897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28613898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28613899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28613900, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28614615, 'dashboard_result_id': 17394025, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28614615_18-11-2025_05_56_15.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28614620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28614621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28614622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28614623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28614624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28614625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28614626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28614627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28614628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28614629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28614630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28614631, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28614835, 'dashboard_result_id': 17394026, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28614835_18-11-2025_05_56_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28614853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28614854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28614855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28614856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28614857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28614858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28614859, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28614860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28614861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28614862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28614863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28614864, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28615333, 'dashboard_result_id': 17394027, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28615333_18-11-2025_05_57_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28615391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28615392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28615393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28615395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28615396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28615397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28615398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28615399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28615400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28615401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28615402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28615403, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28615948, 'dashboard_result_id': 17394028, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28615948_18-11-2025_05_57_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28615989, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28615990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28615991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28615992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28615993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28615994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28615995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28615996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28615997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28615998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28615999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28616001, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28617480, 'dashboard_result_id': 17394029, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28617480_18-11-2025_05_58_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28617487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28617488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28617489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28617490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28617491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28617492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28617493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28617494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28617495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28617496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28617497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28617498, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28617860, 'dashboard_result_id': 17394030, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28617860_18-11-2025_05_59_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28617889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28617890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28617891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28617892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28617893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28617894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28617895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28617896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28617897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28617898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28617899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28617900, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28618405, 'dashboard_result_id': 17394031, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28618405_18-11-2025_06_01_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28618435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28618436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28618437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28618438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28618439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28618440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28618442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28618443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28618444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28618445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28618446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28618447, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28618944, 'dashboard_result_id': 17394032, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28618944_18-11-2025_06_01_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28618952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28618953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28618954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28618955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28618956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28618957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28618958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28618959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28618960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28618961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28618962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28618963, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28619514, 'dashboard_result_id': 17394033, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28619514_18-11-2025_06_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28619574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28619575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28619576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28619577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28619578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28619579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28619580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28619582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28619583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28619584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28619585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28619586, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28620079, 'dashboard_result_id': 17394034, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28620079_18-11-2025_06_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28620105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28620106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28620107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28620108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28620109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28620110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28620111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28620112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28620113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28620114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28620115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28620116, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28620774, 'dashboard_result_id': 17394035, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28620774_18-11-2025_06_03_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28620817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28620818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28620819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28620820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28620821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28620822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28620823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28620824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28620825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28620826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28620827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28620828, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28621624, 'dashboard_result_id': 17394036, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28621624_18-11-2025_06_04_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28621629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28621630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28621631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28621632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28621633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28621634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28621635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28621636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28621637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28621638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28621639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28621640, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28622302, 'dashboard_result_id': 17394037, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28622302_18-11-2025_06_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28622309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28622310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28622311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28622312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28622313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28622314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28622315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28622316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28622317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28622318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28622319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28622320, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28622604, 'dashboard_result_id': 17394038, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28622604_18-11-2025_06_06_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28622620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28622621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28622622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28622623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28622624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28622625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28622627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28622628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28622629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28622630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28622631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28622632, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28623146, 'dashboard_result_id': 17394039, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28623146_17-11-2025_21_07_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28623151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28623152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28623153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28623154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28623155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28623156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28623157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28623158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28623159, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28623160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28623161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28623162, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28624431, 'dashboard_result_id': 17394040, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28624431_17-11-2025_21_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28624436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28624437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28624438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28624439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28624440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28624441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28624442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28624443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28624444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28624445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28624446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28624447, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28624810, 'dashboard_result_id': 17394041, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28624810_17-11-2025_21_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28624816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28624817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28624818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28624819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28624820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28624821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28624822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28624823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28624824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28624825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28624826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28624827, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28625297, 'dashboard_result_id': 17394042, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28625297_17-11-2025_21_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28625342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28625343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28625344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28625345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28625346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28625347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28625348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28625349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28625350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28625351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28625352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28625353, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28625875, 'dashboard_result_id': 17394043, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28625875_17-11-2025_22_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28625898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28625899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28625900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28625901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28625902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28625903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28625904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28625905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28625906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28625907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28625908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28625909, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28626334, 'dashboard_result_id': 17394044, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28626334_17-11-2025_22_17_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28626354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28626355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28626356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28626357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28626358, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28626359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28626360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28626361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28626362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28626363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28626364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28626365, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28626813, 'dashboard_result_id': 17394045, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28626813_17-11-2025_22_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28626838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28626839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28626840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28626841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28626842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28626843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28626844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28626845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28626846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28626847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28626848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28626849, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28627455, 'dashboard_result_id': 17394046, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28627455_17-11-2025_22_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28627475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28627476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28627477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28627478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28627479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28627480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28627481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28627482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28627483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28627484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28627485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28627486, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28627919, 'dashboard_result_id': 17394047, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28627919_18-11-2025_00_31_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28627949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28627950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28627951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28627952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28627953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28627954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28627955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28627956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28627957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28627958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28627959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28627960, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28628529, 'dashboard_result_id': 17394048, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28628529_17-11-2025_23_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28628549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28628550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28628551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28628552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28628553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28628554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28628555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28628556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28628557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28628558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28628559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28628560, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28629256, 'dashboard_result_id': 17394049, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28629256_17-11-2025_23_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28629267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28629268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28629269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28629270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28629271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28629272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28629273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28629274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28629275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28629276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28629277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28629278, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28629907, 'dashboard_result_id': 17394050, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28629907_17-11-2025_23_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28629920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28629921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28629922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28629923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28629924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28629925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28629926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28629927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28629928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28629929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28629930, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28629931, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2606879, 'mtr_portfolio_id': 28630636, 'dashboard_result_id': 17394051, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28630636_18-11-2025_01_22_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28630664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28630665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28630666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28630667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28630668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28630669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28630670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28630671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28630672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28630673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28630674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28630675, '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 = 28588540 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063387, 'mtr_portfolio_id': 28588540, 'created_at': datetime.datetime(2025, 11, 18, 5, 34, 33), 'result': '0.04862940929149228', 'result_long': None, 'result_double': None}] Qualite : 0.04862940929149228 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28588540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588540_18-11-2025_05_34_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28588540 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588540_18-11-2025_05_34_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588553, 'pht': 3726}}" where mtr_portfolio_id = 28588540 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28588540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393986, 0.04862940929149228, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588540_18-11-2025_05_34_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588553, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28588944 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063388, 'mtr_portfolio_id': 28588944, 'created_at': datetime.datetime(2025, 11, 18, 5, 34, 58), 'result': '0.04186493548028064', 'result_long': None, 'result_double': None}] Qualite : 0.04186493548028064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28588944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588944_18-11-2025_05_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28588944 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588944_18-11-2025_05_35_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588958, 'pht': 3726}}" where mtr_portfolio_id = 28588944 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28588944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393987, 0.04186493548028064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588944_18-11-2025_05_35_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588958, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28589312 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063389, 'mtr_portfolio_id': 28589312, 'created_at': datetime.datetime(2025, 11, 18, 5, 35, 33), 'result': '0.03405815609588984', 'result_long': None, 'result_double': None}] Qualite : 0.03405815609588984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28589312 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589312_18-11-2025_05_35_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28589312 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589312_18-11-2025_05_35_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589328, 'pht': 3726}}" where mtr_portfolio_id = 28589312 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28589312 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393988, 0.03405815609588984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589312_18-11-2025_05_35_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589328, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28589740 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063390, 'mtr_portfolio_id': 28589740, 'created_at': datetime.datetime(2025, 11, 18, 5, 35, 29), 'result': '0.03311465004917534', 'result_long': None, 'result_double': None}] Qualite : 0.03311465004917534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28589740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589740_18-11-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28589740 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589740_18-11-2025_05_35_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589759, 'pht': 3726}}" where mtr_portfolio_id = 28589740 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28589740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393989, 0.03311465004917534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589740_18-11-2025_05_35_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589759, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28590136 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063391, 'mtr_portfolio_id': 28590136, 'created_at': datetime.datetime(2025, 11, 18, 5, 35, 56), 'result': '0.03953873724218013', 'result_long': None, 'result_double': None}] Qualite : 0.03953873724218013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28590136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590136_18-11-2025_05_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28590136 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590136_18-11-2025_05_35_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28590182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590193, 'pht': 3726}}" where mtr_portfolio_id = 28590136 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28590136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393990, 0.03953873724218013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590136_18-11-2025_05_35_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28590182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590193, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28590689 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063392, 'mtr_portfolio_id': 28590689, 'created_at': datetime.datetime(2025, 11, 18, 5, 36, 8), 'result': '0.03957610958507352', 'result_long': None, 'result_double': None}] Qualite : 0.03957610958507352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28590689 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590689_18-11-2025_05_36_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28590689 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590689_18-11-2025_05_36_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28590708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590709, 'pht': 3726}}" where mtr_portfolio_id = 28590689 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28590689 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393991, 0.03957610958507352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590689_18-11-2025_05_36_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28590708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590709, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28591089 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063393, 'mtr_portfolio_id': 28591089, 'created_at': datetime.datetime(2025, 11, 18, 5, 36, 59), 'result': '0.04454815796003305', 'result_long': None, 'result_double': None}] Qualite : 0.04454815796003305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28591089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591089_18-11-2025_05_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28591089 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591089_18-11-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591126, 'pht': 3726}}" where mtr_portfolio_id = 28591089 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28591089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393992, 0.04454815796003305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591089_18-11-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591126, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28591538 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063394, 'mtr_portfolio_id': 28591538, 'created_at': datetime.datetime(2025, 11, 18, 5, 37, 30), 'result': '0.04938016615425743', 'result_long': None, 'result_double': None}] Qualite : 0.04938016615425743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28591538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591538_18-11-2025_05_37_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28591538 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591538_18-11-2025_05_37_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591558, 'pht': 3726}}" where mtr_portfolio_id = 28591538 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28591538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393993, 0.04938016615425743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591538_18-11-2025_05_37_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591558, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28592014 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063395, 'mtr_portfolio_id': 28592014, 'created_at': datetime.datetime(2025, 11, 18, 5, 37, 58), 'result': '0.0369673838883463', 'result_long': None, 'result_double': None}] Qualite : 0.0369673838883463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28592014 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592014_18-11-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28592014 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592014_18-11-2025_05_38_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592042, 'pht': 3726}}" where mtr_portfolio_id = 28592014 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28592014 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393994, 0.0369673838883463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592014_18-11-2025_05_38_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592042, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28592687 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063396, 'mtr_portfolio_id': 28592687, 'created_at': datetime.datetime(2025, 11, 18, 5, 38, 27), 'result': '0.04639382355876246', 'result_long': None, 'result_double': None}] Qualite : 0.04639382355876246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28592687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592687_18-11-2025_05_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28592687 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592687_18-11-2025_05_38_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592728, 'pht': 3726}}" where mtr_portfolio_id = 28592687 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28592687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393995, 0.04639382355876246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592687_18-11-2025_05_38_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592728, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28593232 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063397, 'mtr_portfolio_id': 28593232, 'created_at': datetime.datetime(2025, 11, 18, 5, 39, 30), 'result': '0.05741904769485156', 'result_long': None, 'result_double': None}] Qualite : 0.05741904769485156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28593232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593232_18-11-2025_05_39_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28593232 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593232_18-11-2025_05_39_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28593257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28593261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593268, 'pht': 3726}}" where mtr_portfolio_id = 28593232 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28593232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393996, 0.05741904769485156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593232_18-11-2025_05_39_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28593257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28593261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593268, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28593671 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063398, 'mtr_portfolio_id': 28593671, 'created_at': datetime.datetime(2025, 11, 18, 5, 39, 58), 'result': '0.0494239835402962', 'result_long': None, 'result_double': None}] Qualite : 0.0494239835402962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28593671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593671_18-11-2025_05_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28593671 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593671_18-11-2025_05_40_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28593673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28593680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593683, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593684, 'pht': 3726}}" where mtr_portfolio_id = 28593671 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28593671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393997, 0.0494239835402962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593671_18-11-2025_05_40_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28593673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28593680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593683, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593684, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28594377 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063399, 'mtr_portfolio_id': 28594377, 'created_at': datetime.datetime(2025, 11, 18, 5, 40, 28), 'result': '0.05747739683399956', 'result_long': None, 'result_double': None}] Qualite : 0.05747739683399956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28594377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28594377_18-11-2025_05_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28594377 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28594377_18-11-2025_05_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28594388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28594390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28594391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28594392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28594394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28594395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28594396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28594397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28594398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28594399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28594400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28594401, 'pht': 3726}}" where mtr_portfolio_id = 28594377 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28594377 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393998, 0.05747739683399956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28594377_18-11-2025_05_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28594388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28594390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28594391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28594392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28594394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28594395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28594396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28594397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28594398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28594399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28594400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28594401, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28595117 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063400, 'mtr_portfolio_id': 28595117, 'created_at': datetime.datetime(2025, 11, 18, 5, 41, 12), 'result': '0.0378768979760174', 'result_long': None, 'result_double': None}] Qualite : 0.0378768979760174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28595117 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595117_18-11-2025_05_41_17.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28595117 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595117_18-11-2025_05_41_17.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28595150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595161, 'pht': 3726}}" where mtr_portfolio_id = 28595117 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28595117 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17393999, 0.0378768979760174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595117_18-11-2025_05_41_17.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28595150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595161, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28595738 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063401, 'mtr_portfolio_id': 28595738, 'created_at': datetime.datetime(2025, 11, 18, 5, 41, 29), 'result': '0.03751372991565408', 'result_long': None, 'result_double': None}] Qualite : 0.03751372991565408 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28595738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595738_18-11-2025_05_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28595738 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595738_18-11-2025_05_41_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28595760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595766, 'pht': 3726}}" where mtr_portfolio_id = 28595738 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28595738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394000, 0.03751372991565408, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595738_18-11-2025_05_41_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28595760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595766, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28596408 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063402, 'mtr_portfolio_id': 28596408, 'created_at': datetime.datetime(2025, 11, 18, 5, 41, 59), 'result': '0.04711814360051364', 'result_long': None, 'result_double': None}] Qualite : 0.04711814360051364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28596408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28596408_18-11-2025_05_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28596408 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28596408_18-11-2025_05_42_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28596438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28596439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28596440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28596441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28596442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28596443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28596444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28596445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28596446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28596447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28596448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28596449, 'pht': 3726}}" where mtr_portfolio_id = 28596408 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28596408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394001, 0.04711814360051364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28596408_18-11-2025_05_42_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28596438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28596439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28596440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28596441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28596442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28596443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28596444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28596445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28596446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28596447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28596448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28596449, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28598195 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063403, 'mtr_portfolio_id': 28598195, 'created_at': datetime.datetime(2025, 11, 18, 5, 42, 59), 'result': '0.05701869023411125', 'result_long': None, 'result_double': None}] Qualite : 0.05701869023411125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28598195 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598195_18-11-2025_05_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28598195 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598195_18-11-2025_05_43_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598233, 'pht': 3726}}" where mtr_portfolio_id = 28598195 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28598195 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394002, 0.05701869023411125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598195_18-11-2025_05_43_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598233, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28598931 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063404, 'mtr_portfolio_id': 28598931, 'created_at': datetime.datetime(2025, 11, 18, 5, 43, 30), 'result': '0.026981128707553797', 'result_long': None, 'result_double': None}] Qualite : 0.026981128707553797 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28598931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598931_18-11-2025_05_43_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28598931 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598931_18-11-2025_05_43_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598968, 'pht': 3726}}" where mtr_portfolio_id = 28598931 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28598931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394003, 0.026981128707553797, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598931_18-11-2025_05_43_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598968, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28599377 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063405, 'mtr_portfolio_id': 28599377, 'created_at': datetime.datetime(2025, 11, 18, 5, 43, 59), 'result': '0.05029431855419969', 'result_long': None, 'result_double': None}] Qualite : 0.05029431855419969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28599377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28599377_18-11-2025_05_44_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28599377 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28599377_18-11-2025_05_44_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28599428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28599429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28599430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28599431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28599432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28599433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28599434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28599435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28599436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28599437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28599438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28599439, 'pht': 3726}}" where mtr_portfolio_id = 28599377 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28599377 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394004, 0.05029431855419969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28599377_18-11-2025_05_44_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28599428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28599429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28599430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28599431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28599432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28599433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28599434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28599435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28599436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28599437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28599438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28599439, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28600147 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063406, 'mtr_portfolio_id': 28600147, 'created_at': datetime.datetime(2025, 11, 18, 5, 44, 27), 'result': '0.045501488322546114', 'result_long': None, 'result_double': None}] Qualite : 0.045501488322546114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28600147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28600147_18-11-2025_05_44_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28600147 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28600147_18-11-2025_05_44_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28600181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28600182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28600183, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28600184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28600185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28600186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28600187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28600188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28600189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28600190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28600191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28600192, 'pht': 3726}}" where mtr_portfolio_id = 28600147 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28600147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394005, 0.045501488322546114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28600147_18-11-2025_05_44_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28600181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28600182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28600183, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28600184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28600185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28600186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28600187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28600188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28600189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28600190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28600191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28600192, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28600739 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063407, 'mtr_portfolio_id': 28600739, 'created_at': datetime.datetime(2025, 11, 18, 5, 45, 29), 'result': '0.058179696253299204', 'result_long': None, 'result_double': None}] Qualite : 0.058179696253299204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28600739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28600739_18-11-2025_05_45_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28600739 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28600739_18-11-2025_05_45_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28600744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28600745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28600746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28600747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28600748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28600749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28600750, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28600751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28600752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28600753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28600754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28600755, 'pht': 3726}}" where mtr_portfolio_id = 28600739 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28600739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394006, 0.058179696253299204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28600739_18-11-2025_05_45_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28600744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28600745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28600746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28600747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28600748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28600749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28600750, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28600751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28600752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28600753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28600754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28600755, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28601491 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063408, 'mtr_portfolio_id': 28601491, 'created_at': datetime.datetime(2025, 11, 18, 5, 45, 58), 'result': '0.033501817515856944', 'result_long': None, 'result_double': None}] Qualite : 0.033501817515856944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28601491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28601491_18-11-2025_05_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28601491 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28601491_18-11-2025_05_46_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28601508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28601509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28601510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28601511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28601512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28601513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28601514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28601515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28601516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28601517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28601518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28601519, 'pht': 3726}}" where mtr_portfolio_id = 28601491 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28601491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394007, 0.033501817515856944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28601491_18-11-2025_05_46_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28601508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28601509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28601510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28601511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28601512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28601513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28601514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28601515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28601516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28601517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28601518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28601519, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28602007 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063409, 'mtr_portfolio_id': 28602007, 'created_at': datetime.datetime(2025, 11, 18, 5, 46, 9), 'result': '0.047867353534798616', 'result_long': None, 'result_double': None}] Qualite : 0.047867353534798616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28602007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28602007_18-11-2025_05_46_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28602007 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28602007_18-11-2025_05_46_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28602012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28602013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28602014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28602015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28602016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28602017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28602018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28602019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28602020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28602021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28602022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28602023, 'pht': 3726}}" where mtr_portfolio_id = 28602007 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28602007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394008, 0.047867353534798616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28602007_18-11-2025_05_46_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28602012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28602013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28602014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28602015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28602016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28602017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28602018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28602019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28602020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28602021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28602022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28602023, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28602696 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063410, 'mtr_portfolio_id': 28602696, 'created_at': datetime.datetime(2025, 11, 18, 5, 46, 29), 'result': '0.04879816879716479', 'result_long': None, 'result_double': None}] Qualite : 0.04879816879716479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28602696 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28602696_18-11-2025_05_46_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28602696 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28602696_18-11-2025_05_46_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28602739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28602740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28602741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28602742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28602743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28602744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28602745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28602746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28602747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28602748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28602749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28602750, 'pht': 3726}}" where mtr_portfolio_id = 28602696 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28602696 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394009, 0.04879816879716479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28602696_18-11-2025_05_46_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28602739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28602740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28602741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28602742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28602743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28602744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28602745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28602746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28602747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28602748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28602749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28602750, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28603477 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063411, 'mtr_portfolio_id': 28603477, 'created_at': datetime.datetime(2025, 11, 18, 5, 47, 29), 'result': '0.04342958087402711', 'result_long': None, 'result_double': None}] Qualite : 0.04342958087402711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28603477 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28603477_18-11-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28603477 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28603477_18-11-2025_05_47_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28603486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28603487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28603488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28603489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28603490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28603491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28603492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28603493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28603494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28603495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28603496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28603497, 'pht': 3726}}" where mtr_portfolio_id = 28603477 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28603477 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394010, 0.04342958087402711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28603477_18-11-2025_05_47_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28603486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28603487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28603488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28603489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28603490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28603491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28603492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28603493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28603494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28603495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28603496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28603497, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28604216 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063412, 'mtr_portfolio_id': 28604216, 'created_at': datetime.datetime(2025, 11, 18, 5, 48), 'result': '0.040984837612041886', 'result_long': None, 'result_double': None}] Qualite : 0.040984837612041886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28604216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28604216_18-11-2025_05_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28604216 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28604216_18-11-2025_05_48_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28604263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28604264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28604265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28604266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28604267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28604269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28604270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28604271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28604272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28604273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28604274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28604275, 'pht': 3726}}" where mtr_portfolio_id = 28604216 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28604216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394011, 0.040984837612041886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28604216_18-11-2025_05_48_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28604263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28604264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28604265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28604266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28604267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28604269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28604270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28604271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28604272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28604273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28604274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28604275, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28604777 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063413, 'mtr_portfolio_id': 28604777, 'created_at': datetime.datetime(2025, 11, 18, 5, 48, 30), 'result': '0.058508621605916196', 'result_long': None, 'result_double': None}] Qualite : 0.058508621605916196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28604777 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28604777_18-11-2025_05_48_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28604777 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28604777_18-11-2025_05_48_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28604787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28604788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28604789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28604790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28604791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28604792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28604793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28604794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28604795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28604796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28604797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28604798, 'pht': 3726}}" where mtr_portfolio_id = 28604777 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28604777 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394012, 0.058508621605916196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28604777_18-11-2025_05_48_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28604787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28604788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28604789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28604790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28604791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28604792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28604793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28604794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28604795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28604796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28604797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28604798, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28607482 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063414, 'mtr_portfolio_id': 28607482, 'created_at': datetime.datetime(2025, 11, 18, 5, 49, 27), 'result': '0.024122684477120414', 'result_long': None, 'result_double': None}] Qualite : 0.024122684477120414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28607482 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28607482_18-11-2025_05_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28607482 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28607482_18-11-2025_05_49_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28607488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28607489, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28607490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28607491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28607492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28607493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28607494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28607495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28607496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28607497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28607498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28607499, 'pht': 3726}}" where mtr_portfolio_id = 28607482 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28607482 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394013, 0.024122684477120414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28607482_18-11-2025_05_49_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28607488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28607489, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28607490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28607491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28607492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28607493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28607494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28607495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28607496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28607497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28607498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28607499, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28607646 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063415, 'mtr_portfolio_id': 28607646, 'created_at': datetime.datetime(2025, 11, 18, 5, 49, 58), 'result': '0.06070701879075672', 'result_long': None, 'result_double': None}] Qualite : 0.06070701879075672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28607646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28607646_18-11-2025_05_50_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28607646 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28607646_18-11-2025_05_50_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28607652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28607653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28607654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28607655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28607656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28607657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28607658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28607659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28607660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28607661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28607662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28607663, 'pht': 3726}}" where mtr_portfolio_id = 28607646 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28607646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394014, 0.06070701879075672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28607646_18-11-2025_05_50_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28607652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28607653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28607654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28607655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28607656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28607657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28607658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28607659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28607660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28607661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28607662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28607663, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28608068 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063416, 'mtr_portfolio_id': 28608068, 'created_at': datetime.datetime(2025, 11, 18, 5, 50, 28), 'result': '0.044603114603694025', 'result_long': None, 'result_double': None}] Qualite : 0.044603114603694025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28608068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28608068_18-11-2025_05_50_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28608068 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28608068_18-11-2025_05_50_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28608081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28608082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28608083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28608084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28608085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28608086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28608087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28608088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28608089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28608090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28608091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28608092, 'pht': 3726}}" where mtr_portfolio_id = 28608068 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28608068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394015, 0.044603114603694025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28608068_18-11-2025_05_50_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28608081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28608082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28608083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28608084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28608085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28608086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28608087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28608088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28608089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28608090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28608091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28608092, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28608782 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063417, 'mtr_portfolio_id': 28608782, 'created_at': datetime.datetime(2025, 11, 18, 5, 51, 11), 'result': '0.055734779227215585', 'result_long': None, 'result_double': None}] Qualite : 0.055734779227215585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28608782 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28608782_18-11-2025_05_51_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28608782 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28608782_18-11-2025_05_51_14.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28608791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28608792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28608793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28608794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28608795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28608796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28608797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28608798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28608799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28608800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28608801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28608802, 'pht': 3726}}" where mtr_portfolio_id = 28608782 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28608782 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394016, 0.055734779227215585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28608782_18-11-2025_05_51_14.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28608791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28608792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28608793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28608794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28608795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28608796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28608797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28608798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28608799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28608800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28608801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28608802, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28609317 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063418, 'mtr_portfolio_id': 28609317, 'created_at': datetime.datetime(2025, 11, 18, 5, 51, 30), 'result': '0.047774008183423096', 'result_long': None, 'result_double': None}] Qualite : 0.047774008183423096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28609317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28609317_18-11-2025_05_51_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28609317 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28609317_18-11-2025_05_51_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28609394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28609395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28609396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28609397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28609398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28609399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28609400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28609401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28609402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28609403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28609404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28609405, 'pht': 3726}}" where mtr_portfolio_id = 28609317 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28609317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394017, 0.047774008183423096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28609317_18-11-2025_05_51_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28609394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28609395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28609396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28609397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28609398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28609399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28609400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28609401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28609402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28609403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28609404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28609405, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28610012 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063419, 'mtr_portfolio_id': 28610012, 'created_at': datetime.datetime(2025, 11, 18, 5, 51, 58), 'result': '0.047550393302182956', 'result_long': None, 'result_double': None}] Qualite : 0.047550393302182956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28610012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28610012_18-11-2025_05_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28610012 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28610012_18-11-2025_05_52_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28610058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28610059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28610060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28610061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28610062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28610063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28610064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28610065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28610066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28610067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28610068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28610069, 'pht': 3726}}" where mtr_portfolio_id = 28610012 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28610012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394018, 0.047550393302182956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28610012_18-11-2025_05_52_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28610058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28610059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28610060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28610061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28610062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28610063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28610064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28610065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28610066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28610067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28610068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28610069, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28610526 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063420, 'mtr_portfolio_id': 28610526, 'created_at': datetime.datetime(2025, 11, 18, 5, 52, 28), 'result': '0.06046965849246355', 'result_long': None, 'result_double': None}] Qualite : 0.06046965849246355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28610526 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28610526_18-11-2025_05_52_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28610526 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28610526_18-11-2025_05_52_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28610547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28610548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28610549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28610550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28610551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28610552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28610553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28610554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28610555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28610556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28610557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28610558, 'pht': 3726}}" where mtr_portfolio_id = 28610526 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28610526 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394019, 0.06046965849246355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28610526_18-11-2025_05_52_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28610547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28610548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28610549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28610550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28610551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28610552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28610553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28610554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28610555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28610556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28610557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28610558, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28611090 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063421, 'mtr_portfolio_id': 28611090, 'created_at': datetime.datetime(2025, 11, 18, 5, 53, 29), 'result': '0.05764817403060478', 'result_long': None, 'result_double': None}] Qualite : 0.05764817403060478 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28611090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28611090_18-11-2025_05_53_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28611090 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28611090_18-11-2025_05_53_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28611091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28611092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28611093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28611094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28611095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28611096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28611097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28611098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28611099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28611100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28611101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28611102, 'pht': 3726}}" where mtr_portfolio_id = 28611090 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28611090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394020, 0.05764817403060478, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28611090_18-11-2025_05_53_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28611091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28611092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28611093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28611094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28611095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28611096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28611097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28611098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28611099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28611100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28611101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28611102, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28611807 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063422, 'mtr_portfolio_id': 28611807, 'created_at': datetime.datetime(2025, 11, 18, 5, 53, 57), 'result': '0.03753743289496157', 'result_long': None, 'result_double': None}] Qualite : 0.03753743289496157 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28611807 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28611807_18-11-2025_05_54_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28611807 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28611807_18-11-2025_05_54_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28611844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28611845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28611846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28611847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28611848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28611849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28611850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28611851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28611852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28611853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28611854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28611855, 'pht': 3726}}" where mtr_portfolio_id = 28611807 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28611807 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394021, 0.03753743289496157, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28611807_18-11-2025_05_54_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28611844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28611845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28611846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28611847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28611848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28611849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28611850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28611851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28611852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28611853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28611854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28611855, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28612408 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063423, 'mtr_portfolio_id': 28612408, 'created_at': datetime.datetime(2025, 11, 18, 5, 55, 1), 'result': '0.043072479478095116', 'result_long': None, 'result_double': None}] Qualite : 0.043072479478095116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28612408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28612408_18-11-2025_05_55_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28612408 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28612408_18-11-2025_05_55_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28612417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28612418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28612419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28612420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28612421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28612422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28612423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28612424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28612425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28612426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28612427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28612428, 'pht': 3726}}" where mtr_portfolio_id = 28612408 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28612408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394022, 0.043072479478095116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28612408_18-11-2025_05_55_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28612417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28612418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28612419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28612420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28612421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28612422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28612423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28612424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28612425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28612426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28612427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28612428, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28613283 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063424, 'mtr_portfolio_id': 28613283, 'created_at': datetime.datetime(2025, 11, 18, 5, 55, 29), 'result': '0.05877322424506744', 'result_long': None, 'result_double': None}] Qualite : 0.05877322424506744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28613283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28613283_18-11-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28613283 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28613283_18-11-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28613326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28613327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28613328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28613329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28613330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28613331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28613332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28613333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28613334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28613335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28613336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28613337, 'pht': 3726}}" where mtr_portfolio_id = 28613283 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28613283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394023, 0.05877322424506744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28613283_18-11-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28613326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28613327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28613328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28613329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28613330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28613331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28613332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28613333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28613334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28613335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28613336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28613337, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28613844 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063425, 'mtr_portfolio_id': 28613844, 'created_at': datetime.datetime(2025, 11, 18, 5, 55, 58), 'result': '0.037541859240019036', 'result_long': None, 'result_double': None}] Qualite : 0.037541859240019036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28613844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28613844_18-11-2025_05_56_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28613844 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28613844_18-11-2025_05_56_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28613889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28613890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28613891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28613892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28613893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28613894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28613895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28613896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28613897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28613898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28613899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28613900, 'pht': 3726}}" where mtr_portfolio_id = 28613844 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28613844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394024, 0.037541859240019036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28613844_18-11-2025_05_56_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28613889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28613890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28613891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28613892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28613893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28613894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28613895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28613896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28613897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28613898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28613899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28613900, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28614615 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063426, 'mtr_portfolio_id': 28614615, 'created_at': datetime.datetime(2025, 11, 18, 5, 56, 13), 'result': '0.044815048737076264', 'result_long': None, 'result_double': None}] Qualite : 0.044815048737076264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28614615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28614615_18-11-2025_05_56_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28614615 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28614615_18-11-2025_05_56_15.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28614620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28614621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28614622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28614623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28614624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28614625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28614626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28614627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28614628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28614629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28614630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28614631, 'pht': 3726}}" where mtr_portfolio_id = 28614615 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28614615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394025, 0.044815048737076264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28614615_18-11-2025_05_56_15.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28614620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28614621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28614622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28614623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28614624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28614625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28614626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28614627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28614628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28614629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28614630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28614631, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28614835 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063427, 'mtr_portfolio_id': 28614835, 'created_at': datetime.datetime(2025, 11, 18, 5, 56, 29), 'result': '0.03998525494981666', 'result_long': None, 'result_double': None}] Qualite : 0.03998525494981666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28614835 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28614835_18-11-2025_05_56_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28614835 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28614835_18-11-2025_05_56_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28614853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28614854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28614855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28614856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28614857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28614858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28614859, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28614860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28614861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28614862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28614863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28614864, 'pht': 3726}}" where mtr_portfolio_id = 28614835 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28614835 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394026, 0.03998525494981666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28614835_18-11-2025_05_56_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28614853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28614854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28614855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28614856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28614857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28614858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28614859, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28614860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28614861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28614862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28614863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28614864, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28615333 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063428, 'mtr_portfolio_id': 28615333, 'created_at': datetime.datetime(2025, 11, 18, 5, 57, 29), 'result': '0.04825377347500338', 'result_long': None, 'result_double': None}] Qualite : 0.04825377347500338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28615333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28615333_18-11-2025_05_57_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28615333 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28615333_18-11-2025_05_57_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28615391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28615392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28615393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28615395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28615396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28615397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28615398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28615399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28615400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28615401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28615402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28615403, 'pht': 3726}}" where mtr_portfolio_id = 28615333 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28615333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394027, 0.04825377347500338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28615333_18-11-2025_05_57_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28615391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28615392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28615393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28615395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28615396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28615397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28615398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28615399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28615400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28615401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28615402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28615403, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28615948 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063429, 'mtr_portfolio_id': 28615948, 'created_at': datetime.datetime(2025, 11, 18, 5, 57, 57), 'result': '0.028232340872223236', 'result_long': None, 'result_double': None}] Qualite : 0.028232340872223236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28615948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28615948_18-11-2025_05_57_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28615948 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28615948_18-11-2025_05_57_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28615989, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28615990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28615991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28615992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28615993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28615994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28615995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28615996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28615997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28615998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28615999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28616001, 'pht': 3726}}" where mtr_portfolio_id = 28615948 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28615948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394028, 0.028232340872223236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28615948_18-11-2025_05_57_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28615989, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28615990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28615991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28615992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28615993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28615994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28615995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28615996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28615997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28615998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28615999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28616001, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28617480 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063430, 'mtr_portfolio_id': 28617480, 'created_at': datetime.datetime(2025, 11, 18, 5, 58, 27), 'result': '0.042898836258316225', 'result_long': None, 'result_double': None}] Qualite : 0.042898836258316225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28617480 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28617480_18-11-2025_05_58_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28617480 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28617480_18-11-2025_05_58_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28617487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28617488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28617489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28617490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28617491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28617492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28617493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28617494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28617495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28617496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28617497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28617498, 'pht': 3726}}" where mtr_portfolio_id = 28617480 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28617480 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394029, 0.042898836258316225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28617480_18-11-2025_05_58_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28617487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28617488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28617489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28617490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28617491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28617492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28617493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28617494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28617495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28617496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28617497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28617498, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28617860 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063431, 'mtr_portfolio_id': 28617860, 'created_at': datetime.datetime(2025, 11, 18, 5, 59, 30), 'result': '0.059578003089890315', 'result_long': None, 'result_double': None}] Qualite : 0.059578003089890315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28617860 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28617860_18-11-2025_05_59_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28617860 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28617860_18-11-2025_05_59_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28617889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28617890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28617891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28617892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28617893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28617894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28617895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28617896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28617897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28617898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28617899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28617900, 'pht': 3726}}" where mtr_portfolio_id = 28617860 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28617860 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394030, 0.059578003089890315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28617860_18-11-2025_05_59_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28617889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28617890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28617891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28617892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28617893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28617894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28617895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28617896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28617897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28617898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28617899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28617900, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28618405 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063432, 'mtr_portfolio_id': 28618405, 'created_at': datetime.datetime(2025, 11, 18, 6, 1, 12), 'result': '0.04478429302348088', 'result_long': None, 'result_double': None}] Qualite : 0.04478429302348088 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28618405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28618405_18-11-2025_06_01_16.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28618405 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28618405_18-11-2025_06_01_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28618435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28618436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28618437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28618438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28618439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28618440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28618442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28618443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28618444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28618445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28618446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28618447, 'pht': 3726}}" where mtr_portfolio_id = 28618405 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28618405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394031, 0.04478429302348088, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28618405_18-11-2025_06_01_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28618435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28618436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28618437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28618438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28618439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28618440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28618442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28618443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28618444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28618445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28618446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28618447, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28618944 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063433, 'mtr_portfolio_id': 28618944, 'created_at': datetime.datetime(2025, 11, 18, 6, 1, 29), 'result': '0.05657684943852715', 'result_long': None, 'result_double': None}] Qualite : 0.05657684943852715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28618944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28618944_18-11-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28618944 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28618944_18-11-2025_06_01_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28618952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28618953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28618954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28618955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28618956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28618957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28618958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28618959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28618960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28618961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28618962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28618963, 'pht': 3726}}" where mtr_portfolio_id = 28618944 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28618944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394032, 0.05657684943852715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28618944_18-11-2025_06_01_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28618952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28618953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28618954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28618955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28618956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28618957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28618958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28618959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28618960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28618961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28618962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28618963, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28619514 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063434, 'mtr_portfolio_id': 28619514, 'created_at': datetime.datetime(2025, 11, 18, 6, 2, 27), 'result': '0.05331242818871183', 'result_long': None, 'result_double': None}] Qualite : 0.05331242818871183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28619514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28619514_18-11-2025_06_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28619514 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28619514_18-11-2025_06_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28619574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28619575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28619576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28619577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28619578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28619579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28619580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28619582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28619583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28619584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28619585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28619586, 'pht': 3726}}" where mtr_portfolio_id = 28619514 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28619514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394033, 0.05331242818871183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28619514_18-11-2025_06_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28619574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28619575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28619576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28619577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28619578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28619579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28619580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28619582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28619583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28619584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28619585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28619586, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28620079 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063435, 'mtr_portfolio_id': 28620079, 'created_at': datetime.datetime(2025, 11, 18, 6, 3, 30), 'result': '0.04454973073922568', 'result_long': None, 'result_double': None}] Qualite : 0.04454973073922568 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28620079 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28620079_18-11-2025_06_03_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28620079 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28620079_18-11-2025_06_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28620105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28620106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28620107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28620108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28620109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28620110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28620111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28620112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28620113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28620114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28620115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28620116, 'pht': 3726}}" where mtr_portfolio_id = 28620079 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28620079 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394034, 0.04454973073922568, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28620079_18-11-2025_06_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28620105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28620106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28620107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28620108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28620109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28620110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28620111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28620112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28620113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28620114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28620115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28620116, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28620774 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063436, 'mtr_portfolio_id': 28620774, 'created_at': datetime.datetime(2025, 11, 18, 6, 3, 56), 'result': '0.054984426711933425', 'result_long': None, 'result_double': None}] Qualite : 0.054984426711933425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28620774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28620774_18-11-2025_06_03_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28620774 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28620774_18-11-2025_06_03_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28620817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28620818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28620819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28620820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28620821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28620822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28620823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28620824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28620825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28620826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28620827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28620828, 'pht': 3726}}" where mtr_portfolio_id = 28620774 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28620774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394035, 0.054984426711933425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28620774_18-11-2025_06_03_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28620817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28620818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28620819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28620820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28620821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28620822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28620823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28620824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28620825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28620826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28620827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28620828, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28621624 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063437, 'mtr_portfolio_id': 28621624, 'created_at': datetime.datetime(2025, 11, 18, 6, 4, 28), 'result': '0.0512209568266629', 'result_long': None, 'result_double': None}] Qualite : 0.0512209568266629 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28621624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28621624_18-11-2025_06_04_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28621624 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28621624_18-11-2025_06_04_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28621629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28621630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28621631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28621632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28621633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28621634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28621635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28621636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28621637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28621638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28621639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28621640, 'pht': 3726}}" where mtr_portfolio_id = 28621624 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28621624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394036, 0.0512209568266629, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28621624_18-11-2025_06_04_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28621629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28621630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28621631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28621632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28621633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28621634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28621635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28621636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28621637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28621638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28621639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28621640, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28622302 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063438, 'mtr_portfolio_id': 28622302, 'created_at': datetime.datetime(2025, 11, 18, 6, 5, 30), 'result': '0.06380804220982593', 'result_long': None, 'result_double': None}] Qualite : 0.06380804220982593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28622302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28622302_18-11-2025_06_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28622302 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28622302_18-11-2025_06_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28622309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28622310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28622311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28622312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28622313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28622314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28622315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28622316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28622317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28622318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28622319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28622320, 'pht': 3726}}" where mtr_portfolio_id = 28622302 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28622302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394037, 0.06380804220982593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28622302_18-11-2025_06_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28622309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28622310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28622311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28622312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28622313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28622314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28622315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28622316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28622317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28622318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28622319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28622320, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28622604 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063439, 'mtr_portfolio_id': 28622604, 'created_at': datetime.datetime(2025, 11, 18, 6, 5, 58), 'result': '0.0489342371576254', 'result_long': None, 'result_double': None}] Qualite : 0.0489342371576254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28622604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28622604_18-11-2025_06_06_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28622604 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28622604_18-11-2025_06_06_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28622620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28622621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28622622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28622623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28622624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28622625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28622627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28622628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28622629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28622630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28622631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28622632, 'pht': 3726}}" where mtr_portfolio_id = 28622604 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28622604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394038, 0.0489342371576254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28622604_18-11-2025_06_06_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28622620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28622621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28622622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28622623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28622624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28622625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28622627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28622628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28622629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28622630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28622631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28622632, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28623146 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063440, 'mtr_portfolio_id': 28623146, 'created_at': datetime.datetime(2025, 11, 18, 6, 6, 11), 'result': '0.043818614439783576', 'result_long': None, 'result_double': None}] Qualite : 0.043818614439783576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28623146 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28623146_18-11-2025_06_06_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28623146 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28623146_18-11-2025_06_06_14.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28623151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28623152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28623153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28623154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28623155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28623156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28623157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28623158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28623159, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28623160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28623161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28623162, 'pht': 3726}}" where mtr_portfolio_id = 28623146 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28623146 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394039, 0.043818614439783576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28623146_18-11-2025_06_06_14.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28623151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28623152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28623153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28623154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28623155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28623156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28623157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28623158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28623159, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28623160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28623161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28623162, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28624431 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063441, 'mtr_portfolio_id': 28624431, 'created_at': datetime.datetime(2025, 11, 18, 6, 6, 30), 'result': '0.013867502527820652', 'result_long': None, 'result_double': None}] Qualite : 0.013867502527820652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28624431 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28624431_18-11-2025_06_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28624431 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28624431_18-11-2025_06_06_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28624436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28624437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28624438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28624439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28624440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28624441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28624442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28624443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28624444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28624445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28624446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28624447, 'pht': 3726}}" where mtr_portfolio_id = 28624431 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28624431 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394040, 0.013867502527820652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28624431_18-11-2025_06_06_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28624436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28624437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28624438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28624439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28624440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28624441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28624442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28624443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28624444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28624445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28624446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28624447, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28624810 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4060639, 'mtr_portfolio_id': 28624810, 'created_at': datetime.datetime(2025, 11, 17, 21, 33), 'result': '0.04704418853063928', 'result_long': None, 'result_double': None}] Qualite : 0.04704418853063928 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28624810 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28624810_17-11-2025_21_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28624810 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28624810_17-11-2025_21_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28624816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28624817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28624818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28624819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28624820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28624821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28624822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28624823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28624824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28624825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28624826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28624827, 'pht': 3726}}" where mtr_portfolio_id = 28624810 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28624810 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394041, 0.04704418853063928, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28624810_17-11-2025_21_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28624816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28624817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28624818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28624819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28624820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28624821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28624822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28624823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28624824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28624825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28624826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28624827, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28625297 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4060705, 'mtr_portfolio_id': 28625297, 'created_at': datetime.datetime(2025, 11, 17, 21, 48, 57), 'result': '0.034105340810219556', 'result_long': None, 'result_double': None}] Qualite : 0.034105340810219556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28625297 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28625297_17-11-2025_21_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28625297 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28625297_17-11-2025_21_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28625342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28625343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28625344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28625345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28625346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28625347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28625348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28625349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28625350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28625351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28625352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28625353, 'pht': 3726}}" where mtr_portfolio_id = 28625297 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28625297 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394042, 0.034105340810219556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28625297_17-11-2025_21_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28625342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28625343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28625344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28625345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28625346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28625347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28625348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28625349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28625350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28625351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28625352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28625353, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28625875 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4060776, 'mtr_portfolio_id': 28625875, 'created_at': datetime.datetime(2025, 11, 17, 22, 2, 57), 'result': '0.026912728122076447', 'result_long': None, 'result_double': None}] Qualite : 0.026912728122076447 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28625875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28625875_17-11-2025_22_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28625875 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28625875_17-11-2025_22_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28625898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28625899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28625900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28625901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28625902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28625903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28625904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28625905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28625906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28625907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28625908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28625909, 'pht': 3726}}" where mtr_portfolio_id = 28625875 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28625875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394043, 0.026912728122076447, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28625875_17-11-2025_22_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28625898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28625899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28625900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28625901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28625902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28625903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28625904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28625905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28625906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28625907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28625908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28625909, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28626334 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4060839, 'mtr_portfolio_id': 28626334, 'created_at': datetime.datetime(2025, 11, 17, 22, 17, 26), 'result': '0.023398806567118558', 'result_long': None, 'result_double': None}] Qualite : 0.023398806567118558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28626334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28626334_17-11-2025_22_17_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28626334 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28626334_17-11-2025_22_17_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28626354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28626355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28626356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28626357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28626358, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28626359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28626360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28626361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28626362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28626363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28626364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28626365, 'pht': 3726}}" where mtr_portfolio_id = 28626334 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28626334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394044, 0.023398806567118558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28626334_17-11-2025_22_17_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28626354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28626355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28626356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28626357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28626358, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28626359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28626360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28626361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28626362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28626363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28626364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28626365, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28626813 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4060918, 'mtr_portfolio_id': 28626813, 'created_at': datetime.datetime(2025, 11, 17, 22, 32, 58), 'result': '0.07526089946337292', 'result_long': None, 'result_double': None}] Qualite : 0.07526089946337292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28626813 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28626813_17-11-2025_22_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28626813 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28626813_17-11-2025_22_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28626838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28626839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28626840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28626841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28626842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28626843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28626844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28626845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28626846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28626847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28626848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28626849, 'pht': 3726}}" where mtr_portfolio_id = 28626813 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28626813 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394045, 0.07526089946337292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28626813_17-11-2025_22_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28626838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28626839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28626840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28626841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28626842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28626843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28626844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28626845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28626846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28626847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28626848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28626849, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28627455 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4061029, 'mtr_portfolio_id': 28627455, 'created_at': datetime.datetime(2025, 11, 17, 22, 46, 57), 'result': '0.04798865088183741', 'result_long': None, 'result_double': None}] Qualite : 0.04798865088183741 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28627455 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28627455_17-11-2025_22_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28627455 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28627455_17-11-2025_22_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28627475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28627476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28627477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28627478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28627479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28627480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28627481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28627482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28627483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28627484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28627485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28627486, 'pht': 3726}}" where mtr_portfolio_id = 28627455 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28627455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394046, 0.04798865088183741, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28627455_17-11-2025_22_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28627475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28627476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28627477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28627478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28627479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28627480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28627481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28627482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28627483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28627484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28627485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28627486, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28627919 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4061111, 'mtr_portfolio_id': 28627919, 'created_at': datetime.datetime(2025, 11, 18, 0, 31, 29), 'result': '0.03687283986285536', 'result_long': None, 'result_double': None}] Qualite : 0.03687283986285536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28627919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28627919_18-11-2025_00_31_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28627919 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28627919_18-11-2025_00_31_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28627949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28627950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28627951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28627952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28627953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28627954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28627955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28627956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28627957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28627958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28627959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28627960, 'pht': 3726}}" where mtr_portfolio_id = 28627919 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28627919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394047, 0.03687283986285536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28627919_18-11-2025_00_31_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28627949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28627950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28627951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28627952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28627953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28627954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28627955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28627956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28627957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28627958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28627959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28627960, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28628529 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 = 28628529 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 = 28628529 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28628529 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 = 28628529 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 = 28628529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28628529_17-11-2025_23_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28628529 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28628529_17-11-2025_23_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28628549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28628550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28628551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28628552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28628553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28628554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28628555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28628556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28628557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28628558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28628559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28628560, 'pht': 3726}}" where mtr_portfolio_id = 28628529 and dashboard_run_id = 2606879 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28629256 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4061403, 'mtr_portfolio_id': 28629256, 'created_at': datetime.datetime(2025, 11, 17, 23, 32, 57), 'result': '0.027242428127257034', 'result_long': None, 'result_double': None}] Qualite : 0.027242428127257034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28629256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28629256_17-11-2025_23_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28629256 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28629256_17-11-2025_23_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28629267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28629268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28629269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28629270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28629271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28629272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28629273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28629274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28629275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28629276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28629277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28629278, 'pht': 3726}}" where mtr_portfolio_id = 28629256 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28629256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394049, 0.027242428127257034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28629256_17-11-2025_23_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28629267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28629268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28629269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28629270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28629271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28629272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28629273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28629274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28629275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28629276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28629277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28629278, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28629907 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4061586, 'mtr_portfolio_id': 28629907, 'created_at': datetime.datetime(2025, 11, 17, 23, 48, 59), 'result': '0.047739414513557704', 'result_long': None, 'result_double': None}] Qualite : 0.047739414513557704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28629907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28629907_17-11-2025_23_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28629907 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28629907_17-11-2025_23_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28629920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28629921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28629922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28629923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28629924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28629925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28629926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28629927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28629928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28629929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28629930, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28629931, 'pht': 3726}}" where mtr_portfolio_id = 28629907 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28629907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394050, 0.047739414513557704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28629907_17-11-2025_23_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28629920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28629921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28629922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28629923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28629924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28629925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28629926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28629927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28629928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28629929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28629930, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28629931, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28630636 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4061746, 'mtr_portfolio_id': 28630636, 'created_at': datetime.datetime(2025, 11, 18, 1, 22, 27), 'result': '0.04024053004585926', 'result_long': None, 'result_double': None}] Qualite : 0.04024053004585926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28630636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28630636_18-11-2025_01_22_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28630636 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28630636_18-11-2025_01_22_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28630664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28630665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28630666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28630667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28630668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28630669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28630670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28630671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28630672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28630673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28630674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28630675, 'pht': 3726}}" where mtr_portfolio_id = 28630636 and dashboard_run_id = 2606879 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28630636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17394051, 0.04024053004585926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28630636_18-11-2025_01_22_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28630664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28630665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28630666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28630667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28630668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28630669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28630670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28630671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28630672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28630673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28630674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28630675, '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 (28588540,28588944,28589312,28589740,28590136,28590689,28591089,28591538,28592014,28592687,28593232,28593671,28594377,28595117,28595738,28596408,28598195,28598931,28599377,28600147,28600739,28601491,28602007,28602696,28603477,28604216,28604777,28607482,28607646,28608068,28608782,28609317,28610012,28610526,28611090,28611807,28612408,28613283,28613844,28614615,28614835,28615333,28615948,28617480,28617860,28618405,28618944,28619514,28620079,28620774,28621624,28622302,28622604,28623146,28624431,28624810,28625297,28625875,28626334,28626813,28627455,28627919,28628529,28629256,28629907,28630636) result : ((1394809138,), (1394809175,), (1394809488,), (1394809490,), (1394809506,), (1394809507,), (1394809508,), (1394809519,), (1394809533,), (1394809535,), (1394809537,), (1394809546,), (1394809548,), (1394809550,), (1394809552,), (1394809554,), (1394809556,), (1394809569,), (1394809571,), (1394809573,), (1394809575,), (1394809585,), (1394809586,), (1394809587,), (1394809588,), (1394809589,), (1394809617,), (1394809619,), (1394809621,), (1394809623,), (1394809625,), (1394809627,), (1394809635,), (1394809637,), (1394809639,), (1394809656,), (1394809658,), (1394809660,), (1394809663,), (1394809665,), (1394809667,), (1394809674,), (1394809676,), (1394809679,), (1394809682,), (1394809714,), (1394809715,), (1394809716,), (1394809717,), (1394809719,), (1394809720,), (1394809725,), (1394809727,), (1394809728,), (1394809733,), (1394809736,), (1394809738,), (1394809740,), (1394809773,), (1394809759,), (1394809763,), (1394809765,), (1394809768,), (1394809771,), (1394809781,), (1394809783,), (1394809785,), (1394809788,), (1394809791,), (1394809814,), (1394809815,), (1394809817,), (1394809820,), (1394809831,), (1394809832,), (1394809833,), (1394809834,), (1394809836,), (1394809839,), (1394809854,), (1394809856,), (1394809858,), (1394809861,), (1394809872,), (1394809873,), (1394809874,), (1394809876,), (1394809878,), (1394809880,), (1394809896,), (1394809898,), (1394809900,), (1394809902,), (1394809926,), (1394809930,), (1394809935,), (1394809939,), (1394809943,), (1394809945,), (1394809995,), (1394809998,), (1394810000,), (1394810002,), (1394810014,), (1394810015,), (1394810016,), (1394810018,), (1394810020,), (1394810022,), (1394810043,), (1394810044,), (1394810046,), (1394810047,), (1394810049,), (1394810056,), (1394810058,), (1394810060,), (1394810062,), (1394810066,), (1394810069,), (1394810093,), (1394810095,), (1394810097,), (1394810099,), (1394810109,), (1394810111,), (1394810113,), (1394810115,), (1394810136,), (1394810138,), (1394810140,), (1394810141,), (1394810143,), (1394810145,), (1394810189,), (1394810191,), (1394810193,), (1394810194,), (1394810206,), (1394810211,), (1394810214,), (1394810186,), (1394810187,), (1394810218,), (1394810219,), (1394810220,), (1394810221,), (1394810222,), (1394810224,), (1394810237,), (1394810239,), (1394810244,), (1394810248,), (1394810273,), (1394810274,), (1394810277,), (1394810279,), (1394810282,), (1394810284,), (1394810292,), (1394810293,), (1394810294,), (1394810295,), (1394810330,), (1394810331,), (1394810332,), (1394810333,), (1394810335,), (1394810337,), (1394810348,), (1394810350,), (1394810352,), (1394810354,), (1394810383,), (1394810384,), (1394810385,), (1394810386,), (1394810389,), (1394810391,), (1394810399,), (1394810401,), (1394810403,), (1394810406,), (1394810424,), (1394810425,), (1394810426,), (1394810428,), (1394810429,), (1394810440,), (1394810441,), (1394810443,), (1394810445,), (1394810447,), (1394810464,), (1394810465,), (1394810466,), (1394810468,), (1394810471,), (1394810481,), (1394810485,), (1394810487,), (1394810491,), (1394810493,), (1394810494,), (1394810508,), (1394810509,), (1394810511,), (1394810517,), (1394810525,), (1394810526,), (1394810528,), (1394810530,), (1394810532,), (1394810546,), (1394810548,), (1394810549,), (1394810550,), (1394810552,), (1394810590,), (1394810593,), (1394810595,), (1394810597,), (1394810599,), (1394810603,), (1394810581,), (1394810583,), (1394810585,), (1394810586,), (1394810588,), (1394810610,), (1394810613,), (1394810616,), (1394810617,), (1394810654,), (1394810656,), (1394810658,), (1394810660,), (1394810663,), (1394810665,), (1394810674,), (1394810676,), (1394810677,), (1394810679,), (1394810702,), (1394810704,), (1394810706,), (1394810708,), (1394810711,), (1394810721,), (1394810723,), (1394810726,), (1394810730,), (1394810732,), (1394810735,), (1394810752,), (1394810756,), (1394810758,), (1394810761,), (1394810764,), (1394810772,), (1394810774,), (1394810777,), (1394810781,), (1394810784,), (1394810787,), (1394810806,), (1394810809,), (1394810811,), (1394810813,), (1394810826,), (1394810827,), (1394810828,), (1394810830,), (1394810833,), (1394810836,), (1394810843,), (1394810844,), (1394810845,), (1394810846,), (1394810851,), (1394810853,), (1394810856,), (1394810858,), (1394810866,), (1394810867,), (1394810899,), (1394810931,), (1394810965,), (1394810997,), (1394811094,), (1394811095,), (1394811096,), (1394811707,), (1394811711,), (1394811714,), (1394811716,), (1394811734,), (1394811770,), (1394811885,), (1394811875,), (1394811877,), (1394811879,), (1394811881,), (1394811910,), (1394811911,), (1394811913,), (1394811914,), (1394811931,), (1394811934,), (1394811937,), (1394811959,), (1394811960,), (1394811961,), (1394811962,), (1394811964,), (1394811966,), (1394811984,), (1394811985,), (1394811988,), (1394811992,), (1394811994,), (1394811997,), (1394812014,), (1394812015,), (1394812017,), (1394812029,), (1394812030,), (1394812032,), (1394812035,), (1394812038,), (1394812041,), (1394812056,), (1394812058,), (1394812060,), (1394812080,), (1394812081,), (1394812082,), (1394812083,), (1394812086,), (1394812089,), (1394812104,), (1394812105,), (1394812107,), (1394812111,), (1394812148,), (1394812150,), (1394812152,), (1394812155,), (1394812159,), (1394812162,), (1394812174,), (1394812177,), (1394812179,), (1394812183,), (1394812186,), (1394812198,), (1394812200,), (1394812202,), (1394812204,), (1394812225,), (1394812226,), (1394812227,), (1394812228,), (1394812266,), (1394812268,), (1394812270,), (1394812272,), (1394812274,), (1394812277,), (1394812293,), (1394812295,), (1394812298,), (1394812299,), (1394812343,), (1394812332,), (1394812334,), (1394812336,), (1394812339,), (1394812359,), (1394812361,), (1394812363,), (1394812366,), (1394812369,), (1394812394,), (1394812397,), (1394812398,), (1394812400,), (1394812411,), (1394812413,), (1394812416,), (1394812420,), (1394812424,), (1394812426,), (1394812438,), (1394812439,), (1394812440,), (1394812441,), (1394812464,), (1394812465,), (1394812466,), (1394812467,), (1394812471,), (1394812473,), (1394812489,), (1394812491,), (1394812493,), (1394812495,), (1394812510,), (1394812511,), (1394812512,), (1394812513,), (1394812516,), (1394812520,), (1394812545,), (1394812547,), (1394812549,), (1394812552,), (1394812571,), (1394812573,), (1394812575,), (1394812578,), (1394812580,), (1394812584,), (1394812604,), (1394812605,), (1394812606,), (1394812610,), (1394812614,), (1394812617,), (1394812625,), (1394812626,), (1394812627,), (1394812628,), (1394812629,), (1394812631,), (1394812636,), (1394812639,), (1394812641,), (1394812643,), (1394812668,), (1394812669,), (1394812670,), (1394812671,), (1394812672,), (1394812675,), (1394812693,), (1394812697,), (1394812700,), (1394812701,), (1394812726,), (1394812728,), (1394812731,), (1394812734,), (1394812738,), (1394812741,), (1394812757,), (1394812761,), (1394812764,), (1394812767,), (1394812787,), (1394812792,), (1394812793,), (1394812754,), (1394812755,), (1394812804,), (1394812805,), (1394812809,), (1394812813,), (1394812817,), (1394812819,), (1394812834,), (1394812835,), (1394812837,), (1394812840,), (1394812887,), (1394812889,), (1394812891,), (1394812895,), (1394812899,), (1394812901,), (1394812911,), (1394812912,), (1394812914,), (1394812959,), (1394812961,), (1394812964,), (1394812967,), (1394812971,), (1394812974,), (1394812981,), (1394812983,), (1394812985,), (1394812990,), (1394812991,), (1394812993,), (1394812997,), (1394813001,), (1394813005,), (1394813034,), (1394813036,), (1394813038,), (1394813040,), (1394813080,), (1394813081,), (1394813082,), (1394813083,), (1394813085,), (1394813089,), (1394813123,), (1394813126,), (1394813131,), (1394813137,), (1394813156,), (1394813157,), (1394813159,), (1394813161,), (1394813165,), (1394813170,), (1394813208,), (1394813213,), (1394813214,), (1394813215,), (1394813239,), (1394813241,), (1394813243,), (1394813247,), (1394813282,), (1394813290,), (1394813291,), (1394813293,), (1394813296,), (1394813299,), (1394813321,), (1394813322,), (1394813324,), (1394813366,), (1394813357,), (1394813358,), (1394813360,), (1394813363,), (1394813383,), (1394813384,), (1394813385,), (1394813387,), (1394813390,), (1394813394,), (1394813421,), (1394813422,), (1394813423,), (1394813426,), (1394813448,), (1394813450,), (1394813453,), (1394813456,), (1394813460,), (1394813463,), (1394813476,), (1394813478,), (1394813484,), (1394813488,), (1394813491,), (1394813492,), (1394813494,), (1394813522,), (1394813523,), (1394813524,), (1394813526,), (1394813528,), (1394813557,), (1394813558,), (1394813559,), (1394813561,), (1394813564,), (1394813584,), (1394813585,), (1394813586,), (1394813589,), (1394813616,), (1394813623,), (1394813625,), (1394813628,), (1394813631,), (1394813648,), (1394813650,), (1394813651,), (1394813690,), (1394813692,), (1394813694,), (1394813718,), (1394813719,), (1394813720,), (1394813721,), (1394813753,), (1394813755,), (1394813757,), (1394813760,), (1394813765,), (1394813789,), (1394813800,), (1394813806,), (1394813810,), (1394813846,), (1394813839,), (1394813840,), (1394813841,), (1394813843,), (1394814127,), (1394814156,), (1394814184,), (1394814214,), (1394814246,), (1394814277,), (1394814564,), (1394814590,), (1394814618,), (1394814816,), (1394814844,), (1394814856,), (1394814860,), (1394814892,), (1394814900,), (1394814964,), (1394814966,), (1394814968,), (1394814971,), (1394815024,), (1394815025,), (1394815026,), (1394815028,), (1394815031,), (1394815035,), (1394815054,), (1394815056,), (1394815061,), (1394815067,), (1394815081,), (1394815090,), (1394815109,), (1394815111,), (1394815130,), (1394815161,), (1394815175,), (1394815176,), (1394815178,), (1394815181,), (1394815194,), (1394815215,), (1394815217,), (1394815220,), (1394815226,), (1394815230,), (1394815285,), (1394815323,), (1394815354,), (1394815361,), (1394815453,), (1394815454,), (1394815455,), (1394815457,), (1394815459,), (1394815463,), (1394815522,), (1394815532,), (1394815538,), (1394815553,), (1394815565,), (1394815619,), (1394815622,), (1394815634,), (1394815638,), (1394815641,), (1394815660,), (1394815661,), (1394815662,), (1394815663,), (1394815671,), (1394815701,), (1394815823,), (1394815824,), (1394815825,), (1394815827,), (1394815879,), (1394815932,), (1394815861,), (1394815869,), (1394815870,), (1394815872,), (1394815876,), (1394815898,), (1394815900,), (1394815902,), (1394815907,), (1394815911,), (1394815915,), (1394815929,), (1394815930,), (1394815931,), (1394815937,), (1394815941,), (1394815946,), (1394815949,), (1394815952,), (1394816010,), (1394816042,), (1394816069,), (1394816081,), (1394816089,), (1394816104,), (1394816158,), (1394816160,), (1394816163,), (1394816166,), (1394816170,), (1394816188,), (1394816189,), (1394816190,), (1394816209,), (1394816232,), (1394816325,), (1394816326,), (1394816328,), (1394816331,), (1394816336,), (1394816356,), (1394816357,), (1394816358,), (1394816394,), (1394816396,), (1394816398,), (1394816400,), (1394816436,), (1394816437,), (1394816438,), (1394816440,), (1394816441,), (1394816445,), (1394816478,), (1394816480,), (1394816482,), (1394816485,), (1394816518,), (1394816519,), (1394816520,), (1394816523,), (1394816527,), (1394816531,), (1394816557,), (1394816560,), (1394816562,), (1394816565,), (1394816570,), (1394816575,), (1394816591,), (1394816592,), (1394816593,), (1394816627,), (1394816630,), (1394816632,), (1394816636,), (1394816639,), (1394816644,), (1394816687,), (1394816705,), (1394816707,), (1394816708,), (1394816709,), (1394816710,), (1394816712,), (1394816662,), (1394816674,), (1394816676,), (1394816680,), (1394816683,), (1394816718,), (1394816722,), (1394816725,), (1394816840,), (1394816870,), (1394816872,), (1394816912,), (1394816913,), (1394816914,), (1394816925,), (1394816937,), (1394816940,), (1394816957,), (1394816958,), (1394816959,), (1394817011,), (1394817013,), (1394817015,), (1394817017,), (1394817022,), (1394817025,), (1394817043,), (1394817044,), (1394817047,), (1394817051,), (1394817056,), (1394817060,), (1394817073,), (1394817076,), (1394817077,), (1394817078,), (1394817079,), (1394817081,), (1394817098,), (1394817101,), (1394817104,), (1394817107,), (1394817110,), (1394817113,), (1394817137,), (1394817140,), (1394817143,), (1394817147,), (1394817151,), (1394817155,), (1394817159,), (1394817163,), (1394817170,), (1394817172,), (1394817175,), (1394817177,), (1394817184,), (1394817235,), (1394817222,), (1394817224,), (1394817226,), (1394817229,), (1394817255,), (1394817257,), (1394817261,), (1394817267,), (1394817293,), (1394817294,), (1394817295,), (1394817297,), (1394817302,), (1394817319,), (1394817323,), (1394817327,), (1394817345,), (1394817350,), (1394817382,), (1394817402,), (1394817409,), (1394817411,), (1394817437,), (1394817438,), (1394817439,), (1394817440,), (1394817443,), (1394817455,), (1394817508,), (1394817510,), (1394817512,), (1394817514,), (1394817518,), (1394817551,), (1394817552,), (1394817553,), (1394817555,), (1394817557,), (1394817583,), (1394817584,), (1394817586,), (1394817589,), (1394817594,), (1394817597,), (1394817623,), (1394817624,), (1394817627,), (1394817634,), (1394817644,), (1394817678,), (1394817681,), (1394817683,), (1394817686,), (1394817756,), (1394817757,), (1394817758,), (1394817762,), (1394817780,), (1394817811,), (1394817905,), (1394817907,), (1394817911,), (1394817915,), (1394817919,), (1394817921,), (1394817933,), (1394817966,), (1394817996,), (1394818027,), (1394818040,), (1394818455,), (1394818489,), (1394818522,), (1394818532,), (1394818553,), (1394818610,), (1394818598,), (1394818601,), (1394818603,), (1394818605,), (1394818981,), (1394819018,), (1394819048,), (1394819080,), (1394819113,), (1394819147,), (1394819457,), (1394819460,), (1394819462,), (1394819466,), (1394819471,), (1394819834,), (1394819898,), (1394819950,), (1394819989,), (1394820354,), (1394820356,), (1394820358,), (1394820360,), (1394820363,), (1394820576,), (1394820605,), (1394820637,), (1394820646,), (1394820765,), (1394820768,), (1394820775,), (1394820785,), (1394820789,), (1394820794,), (1394820887,), (1394820916,), (1394820926,), (1394820948,), (1394820980,), (1394821010,), (1394821148,), (1394821178,), (1394821209,), (1394821242,), (1394821279,), (1394821389,), (1394821420,), (1394821455,), (1394821489,), (1394821523,), (1394821557,), (1394821811,), (1394821843,), (1394821873,), (1394821906,), (1394822086,), (1394822118,), (1394822152,), (1394822185,), (1394822212,), (1394822303,), (1394822304,), (1394822305,), (1394822307,), (1394822311,), (1394822332,), (1394822334,), (1394822336,), (1394822345,), (1394822464,), (1394822494,), (1394822553,), (1394822560,), (1394822570,), (1394822588,), (1394822616,), (1394822618,), (1394822621,), (1394822674,), (1394822661,), (1394822662,), (1394822663,), (1394822665,), (1394822669,), (1394822732,), (1394822733,), (1394822743,), (1394822744,), (1394822748,), (1394822958,), (1394822959,), (1394822960,), (1394822961,), (1394822964,), (1394823160,), (1394823170,), (1394823175,), (1394823180,), (1394823188,), (1394823218,), (1394823251,), (1394823253,), (1394823254,), (1394823255,), (1394823322,), (1394823323,), (1394823325,), (1394823328,), (1394823331,), (1394823359,), (1394823361,), (1394823367,), (1394823369,), (1394823389,), (1394823418,), (1394823420,), (1394823422,), (1394823430,), (1394823434,), (1394823438,), (1394823475,), (1394823477,), (1394823481,), (1394823484,), (1394823488,), (1394823491,), (1394823503,), (1394823506,), (1394823511,), (1394823515,), (1394823524,), (1394823526,), (1394823530,), (1394823534,), (1394823538,), (1394823545,), (1394823573,), (1394823574,), (1394823575,), (1394823576,), (1394823603,), (1394823605,), (1394823607,), (1394823611,), (1394823615,), (1394823618,), (1394823636,), (1394823637,), (1394823639,), (1394823643,), (1394823654,), (1394823656,), (1394823660,), (1394823678,), (1394823680,), (1394823682,), (1394823687,), (1394823691,), (1394823695,), (1394823719,), (1394823720,), (1394823721,), (1394823724,), (1394823730,), (1394823938,), (1394823946,), (1394823984,), (1394824002,), (1394824008,), (1394824010,), (1394823879,), (1394823887,), (1394823890,), (1394823908,), (1394824013,), (1394824015,), (1394824019,), (1394824023,), (1394824026,), (1394824051,), (1394824054,), (1394824059,), (1394824063,), (1394824066,), (1394824070,), (1394824083,), (1394824088,), (1394824095,), (1394824096,), (1394824097,), (1394824105,), (1394824108,), (1394824112,), (1394824116,), (1394824279,), (1394824282,), (1394824290,), (1394824294,), (1394824299,), (1394824303,), (1394824471,), (1394824483,), (1394824486,), (1394824494,), (1394824526,), (1394824551,), (1394824553,), (1394824554,), (1394824564,), (1394824576,), (1394824584,), (1394824730,), (1394824731,), (1394824732,), (1394824733,), (1394824845,), (1394824863,), (1394824866,), (1394824887,), (1394824890,), (1394824892,), (1394824993,), (1394824994,), (1394824995,), (1394825076,), (1394825099,), (1394825108,), (1394825129,), (1394825165,), (1394825204,), (1394825318,), (1394825390,), (1394825449,), (1394825513,), (1394825548,), (1394825583,), (1394825695,), (1394825709,), (1394825821,), (1394825823,), (1394825825,), (1394825829,), (1394825872,), (1394825874,), (1394825876,), (1394825919,), (1394825915,), (1394825916,), (1394826039,), (1394826070,), (1394826102,), (1394826136,), (1394826166,), (1394826203,), (1394826343,), (1394826345,), (1394826347,), (1394826357,), (1394826374,), (1394826376,), (1394826387,), (1394826393,), (1394826407,), (1394826412,), (1394826447,), (1394826449,), (1394826451,), (1394826454,), (1394826484,), (1394826485,), (1394826486,), (1394826488,), (1394826491,), (1394826522,), (1394826532,), (1394826534,), (1394826617,), (1394826618,), (1394826638,), (1394826643,), (1394826683,), (1394826686,), (1394826694,), (1394826707,), (1394826712,), (1394826728,), (1394826800,), (1394826802,), (1394826806,), (1394826815,), (1394826818,), (1394826867,), (1394826869,), (1394826871,), (1394826922,), (1394826923,), (1394826924,), (1394826926,), (1394826929,), (1394826950,), (1394826951,), (1394826952,), (1394826954,), (1394827438,), (1394827444,), (1394827450,), (1394827453,), (1394827456,), (1394827476,), (1394827600,), (1394827607,), (1394827632,), (1394827635,), (1394827656,), (1394827733,), (1394827737,), (1394827743,), (1394827752,), (1394827773,), (1394831375,), (1394831360,), (1394831369,), (1394831372,), (1394831452,), (1394831453,), (1394831461,), (1394831468,), (1394831474,), (1394831478,), (1394831529,), (1394831532,), (1394831535,), (1394831560,), (1394831561,), (1394831562,), (1394831563,), (1394831566,), (1394831569,), (1394831588,), (1394831619,), (1394831650,), (1394831681,), (1394831986,), (1394831988,), (1394831994,), (1394832000,), (1394832005,), (1394832009,), (1394832031,), (1394832038,), (1394832043,), (1394832048,), (1394832159,), (1394832196,), (1394832227,), (1394832242,), (1394832252,), (1394832437,), (1394832464,), (1394832466,), (1394832485,), (1394832495,), (1394832509,), (1394832593,), (1394832594,), (1394832595,), (1394832597,), (1394832602,), (1394832680,), (1394832681,), (1394832682,), (1394832685,), (1394832690,), (1394832710,), (1394833012,), (1394833033,), (1394833038,), (1394833061,), (1394833154,), (1394833158,), (1394833165,), (1394833168,), (1394833176,), (1394833214,), (1394833216,), (1394833217,), (1394833220,), (1394833224,), (1394833228,), (1394833407,), (1394833438,), (1394833469,), (1394833737,), (1394833653,), (1394833671,), (1394833703,), (1394833729,), (1394833734,), (1394833839,), (1394833842,), (1394833872,), (1394833880,), (1394833898,), (1394833955,), (1394833956,), (1394833957,), (1394833959,), (1394833961,), (1394833965,), (1394834189,), (1394834221,), (1394834257,), (1394834296,), (1394834473,), (1394834498,), (1394834507,), (1394834525,), (1394834540,), (1394834555,), (1394834564,), (1394834566,), (1394834567,), (1394834591,), (1394834608,), (1394834614,), (1394834618,), (1394834622,), (1394834650,), (1394834652,), (1394834654,), (1394834657,), (1394834661,), (1394834668,), (1394834728,), (1394834729,), (1394834730,), (1394834732,), (1394834735,), (1394834765,), (1394834767,), (1394834768,), (1394834771,), (1394834775,), (1394834778,), (1394834805,), (1394834807,), (1394834810,), (1394834816,), (1394834827,), (1394834898,), (1394834930,), (1394834961,), (1394834992,), (1394835392,), (1394835425,), (1394835456,), (1394835487,), (1394835521,), (1394835556,), (1394835654,), (1394835686,), (1394835714,), (1394835745,), (1394836324,), (1394836381,), (1394836422,), (1394836439,), (1394836443,), (1394836469,), (1394836731,), (1394836826,), (1394836909,), (1394836989,), (1394838139,), (1394838198,), (1394838353,), (1394838355,), (1394838455,), (1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,), (1394840695,), (1394840718,), (1394840727,), (1394840736,), (1394840775,), (1394840843,), (1394840822,), (1394840828,), (1394840830,), (1394840835,), (1394840840,), (1394840861,), (1394840862,), (1394840863,), (1394840864,), (1394840868,), (1394840870,), (1394840891,), (1394840893,), (1394840895,), (1394840899,), (1394840922,), (1394840932,), (1394840946,), (1394840954,), (1394840965,), (1394840992,), (1394840996,), (1394841000,), (1394841007,), (1394841013,), (1394841029,), (1394841030,), (1394841031,), (1394841034,), (1394841039,), (1394841043,), (1394841060,), (1394841062,), (1394841067,), (1394841074,), (1394841112,), (1394841113,), (1394841114,), (1394841115,), (1394841120,), (1394841124,), (1394841148,), (1394841150,), (1394841151,), (1394841153,), (1394841250,), (1394841253,), (1394841262,), (1394841267,), (1394841301,), (1394841303,), (1394841305,), (1394841308,), (1394841312,), (1394841316,), (1394841339,), (1394841340,), (1394841341,), (1394841386,), (1394841387,), (1394841388,), (1394841390,), (1394841394,), (1394841397,), (1394841431,), (1394841435,), (1394841437,), (1394841532,), (1394841534,), (1394841535,), (1394841537,), (1394841541,), (1394841545,), (1394841720,), (1394841730,), (1394841732,), (1394841734,), (1394841735,), (1394841739,), (1394841748,), (1394841693,), (1394841695,), (1394841704,), (1394841712,), (1394841716,), (1394841752,), (1394841754,), (1394841758,), (1394841762,), (1394841786,), (1394841790,), (1394841792,), (1394841795,), (1394841798,), (1394841801,), (1394841831,), (1394841848,), (1394841849,), (1394841852,), (1394841855,), (1394841883,), (1394841885,), (1394841887,), (1394841889,), (1394841929,), (1394841930,), (1394841931,), (1394841934,), (1394841949,), (1394841959,), (1394842013,), (1394842017,), (1394842020,), (1394842028,), (1394842062,), (1394842064,), (1394842066,), (1394842069,), (1394842075,), (1394842077,), (1394842168,), (1394842177,), (1394842181,), (1394842233,), (1394842235,), (1394842237,), (1394842241,), (1394842246,), (1394842248,), (1394842264,), (1394842265,), (1394842267,), (1394842271,), (1394842275,), (1394842279,), (1394842299,), (1394842300,), (1394842301,), (1394842302,), (1394842310,), (1394842315,), (1394842319,), (1394842323,), (1394842327,), (1394842330,), (1394842357,), (1394842372,), (1394842380,), (1394842394,), (1394842423,), (1394842425,), (1394842427,), (1394842431,), (1394842435,), (1394842439,), (1394842517,), (1394842524,), (1394842526,), (1394842538,), (1394842606,), (1394842581,), (1394842584,), (1394842586,), (1394842589,), (1394842597,), (1394842631,), (1394842632,), (1394842634,), (1394842683,), (1394842685,), (1394842686,), (1394842695,), (1394842705,), (1394842728,), (1394842729,), (1394842731,), (1394842734,), (1394842738,), (1394842742,), (1394842816,), (1394842818,), (1394842820,), (1394842823,), (1394842849,), (1394842850,), (1394842851,), (1394842853,), (1394842908,), (1394842910,), (1394842913,), (1394842916,), (1394842969,), (1394843167,), (1394843169,), (1394843189,), (1394843355,), (1394843357,), (1394843361,), (1394843367,), (1394843389,), (1394843391,), (1394843393,), (1394843396,), (1394843400,), (1394843419,), (1394843420,), (1394843421,), (1394843423,), (1394843426,), (1394843429,), (1394843445,), (1394843447,), (1394843449,), (1394843997,), (1394844027,), (1394844031,), (1394844036,), (1394844039,), (1394844042,), (1394844586,), (1394844448,), (1394844487,), (1394844521,), (1394844552,), (1394844853,), (1394844855,), (1394844857,), (1394844861,), (1394845081,), (1394845097,), (1394845126,), (1394845148,), (1394845151,), (1394845155,), (1394845231,), (1394845233,), (1394845235,), (1394845237,), (1394845297,), (1394845298,), (1394845300,), (1394845303,), (1394845349,), (1394845364,), (1394845366,), (1394845370,), (1394845375,), (1394845399,), (1394845400,), (1394845404,), (1394845410,), (1394845431,), (1394845432,), (1394845433,), (1394845435,), (1394845438,), (1394845446,), (1394845470,), (1394845473,), (1394845475,), (1394845494,), (1394845503,), (1394845545,), (1394845547,), (1394845549,), (1394845552,), (1394845558,), (1394845693,), (1394845696,), (1394845697,), (1394845699,), (1394845705,), (1394845732,), (1394845739,), (1394845750,), (1394845767,), (1394845772,), (1394845788,), (1394845801,), (1394845802,), (1394845805,), (1394845807,), (1394845808,), (1394845823,), (1394845825,), (1394845828,), (1394845831,), (1394845835,), (1394845851,), (1394845853,), (1394845855,), (1394845881,), (1394845883,), (1394845887,), (1394845894,), (1394845898,), (1394845915,), (1394846027,), (1394845999,), (1394846006,), (1394846011,), (1394846102,), (1394846104,), (1394846108,), (1394846113,), (1394846121,), (1394846204,), (1394846206,), (1394846208,), (1394846212,), (1394846216,), (1394846219,), (1394846470,), (1394846473,), (1394846505,), (1394846757,), (1394846815,), (1394846816,), (1394846819,), (1394846831,), (1394846836,), (1394847081,), (1394847142,), (1394847172,), (1394847629,), (1394847630,), (1394847634,), (1394847670,), (1394847708,), (1394847714,), (1394847839,), (1394847841,), (1394847856,), (1394847886,), (1394847894,), (1394847897,), (1394847972,), (1394847979,), (1394847981,), (1394847984,), (1394847986,), (1394847987,), (1394847994,), (1394847996,), (1394847998,), (1394848000,), (1394848003,), (1394848006,), (1394848011,), (1394848062,), (1394848063,), (1394848064,), (1394848067,), (1394848071,), (1394848072,), (1394848081,), (1394848086,), (1394848117,), (1394848147,), (1394848178,), (1394848291,), (1394848319,), (1394848327,), (1394848336,), (1394848339,), (1394848519,), (1394848522,), (1394848527,), (1394848530,), (1394848540,), (1394848573,), (1394848741,), (1394848771,), (1394848791,), (1394848793,), (1394848797,), (1394848822,), (1394848844,), (1394848860,), (1394848868,), (1394848874,), (1394849024,), (1394849656,), (1394849657,), (1394849658,), (1394849659,), (1394849661,), (1394849693,), (1394849771,), (1394849773,), (1394849775,), (1394849797,), (1394849840,), (1394848981,), (1394848991,), (1394849010,), (1394849014,), (1394849019,), (1394849118,), (1394849153,), (1394849184,), (1394849187,), (1394849190,), (1394849198,), (1394849354,), (1394849356,), (1394849361,), (1394849370,), (1394849374,), (1394849376,), (1394849381,), (1394849384,), (1394849387,), (1394849390,), (1394849392,), (1394849395,), (1394849406,), (1394849408,), (1394849413,), (1394849417,), (1394849418,), (1394849420,), (1394849539,), (1394849540,), (1394849573,), (1394849578,), (1394849602,), (1394849606,), (1394849655,), (1394849685,), (1394849687,), (1394849689,), (1394849690,), (1394849692,), (1394849703,), (1394849704,), (1394849709,), (1394849715,), (1394849729,), (1394849743,), (1394849956,), (1394849957,), (1394849961,), (1394849962,), (1394849964,), (1394849965,), (1394850130,), (1394850173,), (1394850177,), (1394850179,), (1394850184,), (1394850189,), (1394850213,), (1394850215,), (1394850217,), (1394850220,), (1394850224,), (1394850228,), (1394850250,), (1394850257,), (1394850261,), (1394850329,), (1394850331,), (1394850340,), (1394850346,), (1394850375,), (1394850410,), (1394850554,), (1394850585,), (1394850621,), (1394850766,), (1394850800,), (1394851052,), (1394851394,), (1394851468,), (1394851464,), (1394851465,), (1394851466,), (1394851628,), (1394851668,), (1394851698,), (1394851730,), (1394851765,), (1394852029,), (1394852038,), (1394852055,), (1394852065,), (1394852083,), (1394852115,), (1394852195,), (1394852197,), (1394852199,), (1394852201,), (1394852219,), (1394852220,), (1394852221,), (1394852223,), (1394852227,), (1394852229,), (1394852279,), (1394852280,), (1394852282,), (1394852286,), (1394852290,), (1394852297,), (1394852339,), (1394852341,), (1394852344,), (1394852347,), (1394852364,), (1394852365,), (1394852367,), (1394852371,), (1394852374,), (1394852389,), (1394852390,), (1394852392,), (1394852394,), (1394852398,), (1394852415,), (1394852420,), (1394852429,), (1394852436,), (1394852463,), (1394852465,), (1394852467,), (1394852470,), (1394852474,), (1394852476,), (1394852493,), (1394852494,), (1394852497,), (1394852509,), (1394852512,), (1394852513,), (1394852598,), (1394852599,), (1394852602,), (1394852647,), (1394852651,), (1394852684,), (1394852718,), (1394852751,), (1394852786,), (1394852939,), (1394852972,), (1394853008,), (1394853053,), (1394853288,), (1394853387,), (1394853390,), (1394853950,), (1394853981,), (1394854015,), (1394853215,), (1394853249,), (1394853259,), (1394853261,), (1394853263,), (1394853340,), (1394853342,), (1394853344,), (1394853346,), (1394853347,), (1394853349,), (1394853356,), (1394853357,), (1394853359,), (1394853361,), (1394853364,), (1394853374,), (1394853379,), (1394853381,), (1394853383,), (1394853385,), (1394853521,), (1394853554,), (1394853590,), (1394853625,), (1394853659,), (1394853702,), (1394853841,), (1394853878,), (1394853913,), (1394854169,), (1394854173,), (1394854175,), (1394854178,), (1394854182,), (1394854185,), (1394854552,), (1394854588,), (1394854647,), (1394854738,), (1394855598,), (1394855606,), (1394855607,), (1394855609,), (1394855613,), (1394855614,), (1394855926,), (1394855947,), (1394855955,), (1394855957,), (1394856089,), (1394856123,), (1394856154,), (1394856189,), (1394856223,), (1394856590,), (1394856620,), (1394856625,), (1394856626,), (1394856629,), (1394856631,), (1394856991,), (1394869262,), (1394869371,), (1394870166,), (1394870168,), (1394870170,), (1394870253,), (1394870255,), (1394870268,), (1394870273,), (1394870280,), (1394870283,), (1394870299,), (1394870300,), (1394870301,), (1394870303,), (1394870307,), (1394870377,), (1394870380,), (1394870383,), (1394870386,), (1394870422,), (1394870446,), (1394870448,), (1394870450,), (1394870453,), (1394870458,), (1394870478,), (1394870481,), (1394870484,), (1394870486,), (1394870528,), (1394870530,), (1394870532,), (1394870537,), (1394870540,), (1394870544,), (1394870576,), (1394870577,), (1394870578,), (1394870606,), (1394870609,), (1394870613,), (1394870616,), (1394870680,), (1394870685,), (1394870692,), (1394870698,), (1394870700,), (1394870703,), (1394870758,), (1394870760,), (1394870762,), (1394870764,), (1394870790,), (1394870792,), (1394870834,), (1394870837,), (1394870893,), (1394870894,), (1394870895,), (1394870921,), (1394870924,), (1394870927,), (1394870962,), (1394870965,), (1394870967,), (1394870969,), (1394871525,), (1394871529,), (1394871535,), (1394871540,), (1394871544,), (1394871548,), (1394871643,), (1394871803,), (1394871790,), (1394871800,), (1394871864,), (1394871866,), (1394872245,), (1394872277,), (1394872310,), (1394872340,), (1394872372,), (1394872745,), (1394872778,), (1394872809,), (1394872842,), (1394872967,), (1394872997,), (1394873026,), (1394873252,), (1394873255,), (1394873281,), (1394873306,), (1394873319,), (1394873330,), (1394873353,), (1394873355,), (1394873362,), (1394873384,), (1394873390,), (1394873394,), (1394873428,), (1394873444,), (1394873447,), (1394873612,), (1394873614,), (1394873616,), (1394873757,), (1394873760,), (1394873761,), (1394873785,), (1394873786,), (1394873787,), (1394873790,), (1394873794,), (1394873916,), (1394873942,), (1394873953,), (1394873991,), (1394873993,), (1394873996,), (1394873998,), (1394874012,), (1394874015,), (1394874041,), (1394874042,), (1394874043,), (1394874045,), (1394874050,), (1394874126,), (1394874163,), (1394874173,), (1394874181,), (1394874188,), (1394874233,), (1394874232,), (1394874294,), (1394874296,), (1394874451,), (1394874638,), (1394874822,), (1394875003,), (1394875007,), (1394875038,), (1394875048,), (1394875054,), (1394875159,), (1394875197,), (1394875217,), (1394875221,), (1394875360,), (1394875483,), (1394875490,), (1394875493,), (1394875496,), (1394875759,), (1394875793,), (1394875825,), (1394875867,), (1394875908,), (1394876058,), (1394876060,), (1394876228,), (1394876318,), (1394876322,), (1394876330,), (1394876374,), (1394876376,), (1394876378,), (1394876382,), (1394876405,), (1394876406,), (1394876407,), (1394876410,), (1394876415,), (1394876418,), (1394876433,), (1394876435,), (1394876436,), (1394876439,), (1394876442,), (1394876487,), (1394876491,), (1394876492,), (1394876494,), (1394876526,), (1394876528,), (1394876531,), (1394876533,), (1394876538,), (1394876543,), (1394876582,), (1394876586,), (1394876593,), (1394876623,), (1394876647,), (1394876650,), (1394876680,), (1394876559,), (1394876565,), (1394876574,), (1394876579,), (1394876714,), (1394876717,), (1394876721,), (1394876724,), (1394876730,), (1394876755,), (1394876756,), (1394876757,), (1394876780,), (1394876781,), (1394876782,), (1394876784,), (1394876788,), (1394876799,), (1394876825,), (1394876855,), (1394876884,), (1394876914,), (1394876916,), (1394877027,), (1394877042,), (1394877043,), (1394877323,), (1394877376,), (1394877431,), (1394877463,), (1394877811,), (1394877812,), (1394877813,), (1394877814,), (1394877816,), (1394877836,), (1394877852,), (1394877869,), (1394877884,), (1394877890,), (1394877892,), (1394877972,), (1394878033,), (1394878036,), (1394878137,), (1394878194,), (1394878195,), (1394878229,), (1394878242,), (1394878255,), (1394878400,), (1394878433,), (1394878467,), (1394878507,), (1394878542,), (1394878574,), (1394878610,), (1394878611,), (1394878626,), (1394878674,), (1394878681,), (1394878714,), (1394878715,), (1394878719,), (1394878989,), (1394878991,), (1394878995,), (1394879040,), (1394879032,), (1394879033,), (1394879034,), (1394879036,), (1394879238,), (1394879339,), (1394879347,), (1394879349,), (1394879353,), (1394879356,), (1394879492,), (1394879493,), (1394879504,), (1394879505,), (1394879509,), (1394879517,), (1394879521,), (1394879531,), (1394879557,), (1394879558,), (1394879559,), (1394879561,), (1394879565,), (1394879676,), (1394879679,), (1394879685,), (1394879690,), (1394879708,), (1394879709,), (1394879710,), (1394879712,), (1394879714,), (1394879719,), (1394879739,), (1394879743,), (1394879744,), (1394879746,), (1394879829,), (1394879846,), (1394879848,), (1394879850,), (1394879855,), (1394879859,), (1394879893,), (1394879900,), (1394879902,), (1394879905,), (1394879909,), (1394879937,), (1394879950,), (1394879951,), (1394879952,), (1394879967,), (1394879968,), (1394879969,), (1394879971,), (1394879975,), (1394879979,), (1394879996,), (1394879997,), (1394879998,), (1394880752,), (1394880790,), (1394880824,), (1394880861,), (1394881339,), (1394881251,), (1394881285,), (1394881959,), (1394881991,), (1394882021,), (1394882057,), (1394882092,), (1394882244,), (1394882274,), (1394882304,), (1394882336,), (1394882547,), (1394882549,), (1394882563,), (1394882567,), (1394882612,), (1394882613,), (1394882675,), (1394882774,), (1394882778,), (1394882803,), (1394882830,), (1394882862,), (1394883081,), (1394883106,), (1394883111,), (1394883115,), (1394883119,), (1394883138,), (1394883166,), (1394883175,), (1394883177,), (1394883244,), (1394883247,), (1394883249,), (1394883254,), (1394883308,), (1394883335,), (1394883364,), (1394883397,), (1394883435,), (1394883444,), (1394883485,), (1394883618,), (1394883678,), (1394883681,), (1394883701,), (1394883702,), (1394883703,), (1394883705,), (1394883710,), (1394883715,), (1394883738,), (1394883739,), (1394883741,), (1394883756,), (1394883761,), (1394883806,), (1394883807,), (1394883810,), (1394883866,), (1394883869,), (1394883871,), (1394883873,), (1394883988,), (1394883989,), (1394883991,), (1394883993,), (1394883996,), (1394884031,), (1394884029,), (1394884030,), (1394884055,), (1394884056,), (1394884059,), (1394884066,), (1394884140,), (1394884141,), (1394884143,), (1394884147,), (1394884170,), (1394884172,), (1394884175,), (1394884252,), (1394884296,), (1394884652,), (1394884654,), (1394884706,), (1394884708,), (1394884710,), (1394884999,), (1394885000,), (1394885026,), (1394885054,), (1394885055,), (1394885057,), (1394885061,), (1394885065,), (1394885069,), (1394885091,), (1394885092,), (1394885093,), (1394885096,), (1394885203,), (1394885238,), (1394885274,), (1394885309,), (1394885346,), (1394885498,), (1394885500,), (1394885502,), (1394885537,), (1394885541,), (1394885543,), (1394885642,), (1394885643,), (1394885645,), (1394885738,), (1394885760,), (1394885763,), (1394885766,), (1394885779,), (1394885790,), (1394886171,), (1394886174,), (1394886215,), (1394886268,), (1394886316,), (1394886360,), (1394886409,), (1394886113,), (1394886145,), (1394886163,), (1394886167,), (1394886464,), (1394886489,), (1394886494,), (1394886615,), (1394886616,), (1394886617,), (1394886619,), (1394886623,), (1394886643,), (1394886645,), (1394886647,), (1394886651,), (1394886679,), (1394886682,), (1394886683,), (1394886699,), (1394886705,), (1394886709,), (1394886742,), (1394886743,), (1394886745,), (1394886749,), (1394886753,), (1394886779,), (1394886786,), (1394886792,), (1394886795,), (1394886800,), (1394886804,), (1394886827,), (1394886828,), (1394886831,), (1394886835,), (1394886839,), (1394886842,), (1394886850,), (1394886852,), (1394886855,), (1394886856,), (1394886861,), (1394886878,), (1394886883,), (1394886887,), (1394886891,), (1394886923,), (1394886925,), (1394886927,), (1394886930,), (1394886934,), (1394886939,), (1394886959,), (1394886960,), (1394886961,), (1394886963,), (1394886967,), (1394886997,), (1394886999,), (1394887001,), (1394887004,), (1394887009,), (1394887034,), (1394887035,), (1394887036,), (1394887039,), (1394887044,), (1394887046,), (1394887075,), (1394887076,), (1394887078,), (1394887081,), (1394887133,), (1394887134,), (1394887136,), (1394887138,), (1394887142,), (1394887144,), (1394887193,), (1394887184,), (1394887187,), (1394887189,), (1394887214,), (1394887216,), (1394887217,), (1394887219,), (1394887222,), (1394887227,), (1394887248,), (1394887250,), (1394887252,), (1394887254,), (1394887280,), (1394887281,), (1394887284,), (1394887287,), (1394887291,), (1394887296,), (1394887318,), (1394887320,), (1394887322,), (1394887325,), (1394887353,), (1394887354,), (1394887355,), (1394887357,), (1394887362,), (1394887385,), (1394887391,), (1394887398,), (1394887402,), (1394887416,), (1394887425,), (1394887465,), (1394887467,), (1394887471,), (1394887477,), (1394887481,), (1394887499,), (1394887501,), (1394887502,), (1394888967,), (1394888923,), (1394888959,), (1394888962,), (1394889214,), (1394889233,), (1394889256,), (1394889262,), (1394889328,), (1394889331,), (1394889334,), (1394889337,), (1394889387,), (1394889388,), (1394889394,), (1394889399,), (1394889406,), (1394889427,), (1394889438,), (1394889445,), (1394889449,), (1394889805,), (1394889835,), (1394889863,), (1394889896,), (1394889927,), (1394890320,), (1394890350,), (1394890378,), (1394890410,), (1394890623,), (1394890652,), (1394890653,), (1394891181,), (1394891673,), (1394891674,), (1394891675,), (1394891681,), (1394891692,), (1394891760,), (1394891763,), (1394891776,), (1394891855,), (1394891856,), (1394891857,), (1394891946,), (1394891923,), (1394891925,), (1394891927,), (1394891941,), (1394892096,), (1394892127,), (1394892327,), (1394892330,), (1394892332,), (1394892335,), (1394892934,), (1394892935,), (1394892942,), (1394892949,), (1394892953,), (1394892970,), (1394892972,), (1394892974,), (1394893004,), (1394893005,), (1394893006,), (1394893009,), (1394893046,), (1394893125,), (1394893128,), (1394893130,), (1394893134,), (1394893139,), (1394893157,), (1394893158,), (1394893159,), (1394893161,), (1394893187,), (1394893189,), (1394893191,), (1394893195,), (1394893200,), (1394893203,), (1394893235,), (1394893238,), (1394893241,), (1394893244,), (1394893249,), (1394893407,), (1394893437,), (1394893439,), (1394893451,), (1394893618,), (1394893710,), (1394893737,), (1394893739,), (1394893740,), (1394893793,), (1394893795,), (1394893798,), (1394893801,), (1394894383,), (1394894384,), (1394894385,), (1394894387,), (1394894401,), (1394894402,), (1394894403,), (1394894406,), (1394894408,), (1394894435,), (1394894436,), (1394894438,), (1394894440,), (1394894443,), (1394894449,), (1394894466,), (1394894468,), (1394894469,), (1394894473,), (1394894510,), (1394894511,), (1394894512,), (1394894515,), (1394894520,), (1394894524,), (1394894543,), (1394894544,), (1394894546,), (1394894549,), (1394894554,), (1394894584,), (1394894585,), (1394894586,), (1394894612,), (1394894614,), (1394894616,), (1394894619,), (1394894623,), (1394894627,), (1394894653,), (1394894649,), (1394894650,), (1394894651,), (1394894674,), (1394894676,), (1394894678,), (1394894680,), (1394894683,), (1394894687,), (1394894704,), (1394894705,), (1394894706,), (1394894708,), (1394894711,), (1394894730,), (1394894732,), (1394894735,), (1394894768,), (1394894769,), (1394894770,), (1394894773,), (1394894777,), (1394894811,), (1394894813,), (1394894815,), (1394894817,), (1394894820,), (1394894849,), (1394894850,), (1394894851,), (1394894853,), (1394894872,), (1394894874,), (1394894876,), (1394894879,), (1394894883,), (1394894911,), (1394894912,), (1394894913,), (1394894919,), (1394894924,), (1394894929,), (1394894948,), (1394894951,), (1394894954,), (1394894957,), (1394895018,), (1394895019,), (1394895020,), (1394895022,), (1394895027,), (1394895030,), (1394895048,), (1394895050,), (1394895052,), (1394895288,), (1394895316,), (1394895317,), (1394895320,), (1394895344,), (1394895693,), (1394895699,), (1394895704,), (1394895709,), (1394895725,), (1394895785,), (1394895781,), (1394895783,), (1394895784,), (1394895804,), (1394895811,), (1394895817,), (1394895832,), (1394895836,), (1394895840,), (1394895956,), (1394895991,), (1394896026,), (1394896067,), (1394896473,), (1394896504,), (1394896538,), (1394896570,), (1394896605,), (1394896637,), (1394896967,), (1394897001,), (1394897021,), (1394897024,), (1394897028,), (1394897032,), (1394897110,), (1394897146,), (1394897175,), (1394897550,), (1394897559,), (1394897566,), (1394897601,), (1394897634,), (1394897670,), (1394898001,), (1394898035,), (1394898066,), (1394898100,), (1394898134,), (1394898267,), (1394898268,), (1394898269,), (1394898270,), (1394898302,), (1394898304,), (1394898306,), (1394898310,), (1394898315,), (1394898318,), (1394898348,), (1394898349,), (1394898350,), (1394898352,), (1394898504,), (1394898510,), (1394898515,), (1394898519,), (1394898524,), (1394898551,), (1394898579,), (1394898585,), (1394898593,), (1394898608,), (1394898616,), (1394898688,), (1394898690,), (1394898692,), (1394898695,), (1394898881,), (1394898909,), (1394898922,), (1394898924,), (1394898926,), (1394898942,), (1394899312,), (1394899129,), (1394899162,), (1394899200,), (1394899233,), (1394899273,), (1394899358,), (1394899359,), (1394899360,), (1394899362,), (1394899432,), (1394899434,), (1394899436,), (1394899439,), (1394899442,), (1394899446,), (1394899668,), (1394899679,), (1394899729,), (1394900286,), (1394900324,), (1394900359,), (1394902412,), (1394905544,), (1394905666,), (1394905671,), (1394905672,), (1394905675,), (1394905678,), (1394905680,), (1394905699,), (1394905701,), (1394906019,), (1394906051,), (1394906082,), (1394906503,), (1394906533,), (1394906563,), (1394906799,), (1394906802,), (1394906804,), (1394906820,), (1394906852,), (1394906884,), (1394907096,), (1394907123,), (1394907133,), (1394907137,), (1394907142,), (1394907237,), (1394907238,), (1394907239,), (1394907255,), (1394907261,), (1394907283,), (1394907284,), (1394907285,), (1394907288,), (1394907321,), (1394907322,), (1394907323,), (1394907326,), (1394907333,), (1394907341,), (1394907372,), (1394907375,), (1394907377,), (1394907380,), (1394907408,), (1394907409,), (1394907420,), (1394907425,), (1394907428,), (1394907431,), (1394907528,), (1394907530,), (1394907532,), (1394907536,), (1394907539,), (1394907570,), (1394907561,), (1394907562,), (1394907563,), (1394907566,), (1394907602,), (1394907604,), (1394907606,), (1394907610,), (1394907614,), (1394907633,), (1394907634,), (1394907635,), (1394907641,), (1394907652,), (1394907668,), (1394907670,), (1394907671,), (1394907674,), (1394907679,), (1394907683,), (1394907706,), (1394907708,), (1394907710,), (1394907713,), (1394907717,), (1394907737,), (1394907738,), (1394907739,), (1394907740,), (1394907782,), (1394907784,), (1394907786,), (1394907790,), (1394907794,), (1394907813,), (1394907814,), (1394907815,), (1394907818,), (1394907841,), (1394907843,), (1394907845,), (1394907849,), (1394907854,), (1394907871,), (1394907872,), (1394907876,), (1394907886,), (1394907910,), (1394907911,), (1394907913,), (1394907919,), (1394907940,), (1394907942,), (1394907944,), (1394907947,), (1394907984,), (1394907988,), (1394907990,), (1394907993,), (1394907996,), (1394908001,), (1394908018,), (1394908019,), (1394908020,), (1394908022,), (1394908049,), (1394908051,), (1394908055,), (1394908059,), (1394908062,), (1394908101,), (1394908112,), (1394908113,), (1394908114,), (1394908115,), (1394908117,), (1394908085,), (1394908086,), (1394908088,), (1394908092,), (1394908097,), (1394908121,), (1394908125,), (1394908135,), (1394908142,), (1394908155,), (1394908156,), (1394908157,), (1394908160,), (1394908165,), (1394908167,), (1394908185,), (1394908187,), (1394908189,), (1394908192,), (1394908194,), (1394908216,), (1394908217,), (1394908218,), (1394908220,), (1394908255,), (1394908257,), (1394908259,), (1394908262,), (1394908265,), (1394908270,), (1394908286,), (1394908287,), (1394908288,), (1394908336,), (1394908338,), (1394908342,), (1394908351,), (1394908355,), (1394908358,), (1394908430,), (1394908431,), (1394908432,), (1394908434,), (1394908438,), (1394908441,), (1394908470,), (1394908472,), (1394908495,), (1394908527,), (1394908589,), (1394908591,), (1394908593,), (1394908597,), (1394908601,), (1394908604,), (1394908636,), (1394908637,), (1394908638,), (1394908640,), (1394908645,), (1394908679,), (1394908680,), (1394908688,), (1394908694,), (1394908736,), (1394908738,), (1394908741,), (1394908744,), (1394908763,), (1394908809,), (1394908810,), (1394908812,), (1394908814,), (1394908816,), (1394908820,), (1394908852,), (1394908848,), (1394908850,), (1394908962,), (1394908996,), (1394909045,), (1394909086,), (1394909242,), (1394909244,), (1394909246,), (1394909249,), (1394909273,), (1394909274,), (1394909280,), (1394909286,), (1394909307,), (1394909309,), (1394909348,), (1394909350,), (1394909354,), (1394909360,), (1394909365,), (1394909370,), (1394909426,), (1394909467,), (1394909485,), (1394909492,), (1394909509,), (1394909560,), (1394909561,), (1394909562,), (1394909564,), (1394909568,), (1394909587,), (1394909589,), (1394909591,), (1394909595,), (1394909600,), (1394909602,), (1394909912,), (1394909969,), (1394910038,), (1394910074,), (1394910194,), (1394910195,), (1394910197,), (1394910201,), (1394910206,), (1394910210,), (1394910232,), (1394910233,), (1394910234,), (1394910236,), (1394910304,), (1394910307,), (1394910309,), (1394910312,), (1394910316,), (1394910679,), (1394910715,), (1394910751,), (1394910759,), (1394910764,), (1394910792,), (1394911042,), (1394910898,), (1394910933,), (1394910969,), (1394911008,), (1394911405,), (1394911435,), (1394911465,), (1394911499,), (1394911515,), (1394911519,), (1394911607,), (1394911638,), (1394911667,), (1394911698,), (1394912205,), (1394912236,), (1394912268,), (1394912299,), (1394912332,), (1394912502,), (1394912523,), (1394912524,), (1394912554,), (1394912578,), (1394912580,), (1394912582,), (1394912585,), (1394912589,), (1394912612,), (1394912614,), (1394912616,), (1394912620,), (1394912623,), (1394912644,), (1394912645,), (1394912646,), (1394912648,), (1394912651,), (1394912675,), (1394912677,), (1394912679,), (1394912716,), (1394912717,), (1394912834,), (1394912836,), (1394912855,), (1394912861,), (1394912878,), (1394912900,), (1394912901,), (1394912905,), (1394912918,), (1394912923,), (1394912926,), (1394912942,), (1394912943,), (1394912944,), (1394912954,), (1394912976,), (1394913019,), (1394913014,), (1394913015,), (1394913016,), (1394913039,), (1394913042,), (1394913045,), (1394913049,), (1394913070,), (1394913116,), (1394913117,), (1394913133,), (1394913412,), (1394913414,), (1394913416,), (1394913419,), (1394913428,), (1394913560,), (1394913596,), (1394913601,), (1394913606,), (1394913817,), (1394913820,), (1394913821,), (1394913824,), (1394913828,), (1394913862,), (1394913863,), (1394913864,), (1394913867,), (1394913905,), (1394913906,), (1394913907,), (1394913909,), (1394913913,), (1394913949,), (1394913951,), (1394913953,), (1394913955,), (1394913959,), (1394913975,), (1394913976,), (1394914039,), (1394914042,), (1394914044,), (1394914047,), (1394914191,), (1394914220,), (1394914249,), (1394914280,), (1394914502,), (1394914504,), (1394914506,), (1394914509,), (1394914512,), (1394914531,), (1394914532,), (1394914533,), (1394914535,), (1394914605,), (1394914615,), (1394914625,), (1394914632,), (1394914638,), (1394914719,), (1394914832,), (1394914844,), (1394914848,), (1394914858,), (1394914873,), (1394914687,), (1394914692,), (1394914695,), (1394914711,), (1394914715,), (1394914875,), (1394914879,), (1394914883,), (1394914897,), (1394914900,), (1394914906,), (1394914908,), (1394914912,), (1394914945,), (1394914946,), (1394914947,), (1394914949,), (1394914951,), (1394914969,), (1394914970,), (1394914971,), (1394915007,), (1394915008,), (1394915010,), (1394915013,), (1394915049,), (1394915051,), (1394915053,), (1394915056,), (1394915060,), (1394915063,), (1394915091,), (1394915093,), (1394915094,), (1394915097,), (1394915100,), (1394915117,), (1394915119,), (1394915121,), (1394915123,), (1394915155,), (1394915156,), (1394915157,), (1394915178,), (1394915180,), (1394915182,), (1394915189,), (1394915200,), (1394915207,), (1394915237,), (1394915238,), (1394915240,), (1394915242,), (1394915246,), (1394915249,), (1394915258,), (1394915260,), (1394915262,), (1394915268,), (1394915322,), (1394915324,), (1394915327,), (1394915332,), (1394915336,), (1394915340,), (1394915352,), (1394915354,), (1394915355,), (1394915357,), (1394915390,), (1394915858,), (1394915860,), (1394915862,), (1394915866,), (1394915871,), (1394915875,), (1394915888,), (1394915890,), (1394915892,), (1394915896,), (1394915931,), (1394915937,), (1394915938,), (1394915939,), (1394915942,), (1394915966,), (1394915968,), (1394915971,), (1394916014,), (1394916018,), (1394916021,), (1394916035,), (1394917815,), (1394917852,), (1394917857,), (1394917874,), (1394917878,), (1394917883,), (1394917902,), (1394917904,), (1394917906,), (1394917909,), (1394918212,), (1394918244,), (1394918276,), (1394918314,), (1394918350,), (1394918626,), (1394918686,), (1394918724,), (1394918953,), (1394918960,), (1394918985,), (1394919020,), (1394919031,), (1394919052,), (1394919054,), (1394919056,), (1394919059,), (1394919062,), (1394919066,), (1394919153,), (1394919155,), (1394919156,), (1394919159,), (1394919162,), (1394919198,), (1394919222,), (1394919247,), (1394919251,), (1394919255,), (1394919281,), (1394919276,), (1394919277,), (1394919278,), (1394919311,), (1394919313,), (1394919315,), (1394919319,), (1394919344,), (1394919345,), (1394919346,), (1394919349,), (1394919354,), (1394919356,), (1394919375,), (1394919377,), (1394919378,), (1394919381,), (1394919387,), (1394919392,), (1394919597,), (1394919614,), (1394919618,), (1394919653,), (1394919668,), (1394919670,), (1394919675,), (1394919679,), (1394919683,), (1394919698,), (1394919699,), (1394919700,), (1394919703,), (1394919707,), (1394919725,), (1394919727,), (1394919729,), (1394919764,), (1394919765,), (1394919768,), (1394919774,), (1394919783,), (1394919789,), (1394919817,), (1394919821,), (1394919825,), (1394919829,), (1394919833,), (1394919836,), (1394919865,), (1394919867,), (1394919868,), (1394919870,), (1394919871,), (1394919872,), (1394919883,), (1394919884,), (1394919888,), (1394919889,), (1394919892,), (1394919894,), (1394919896,), (1394919898,), (1394919900,), (1394919901,), (1394919903,), (1394919905,), (1394919908,), (1394919911,), (1394919915,), (1394919920,), (1394919942,), (1394919943,), (1394919944,), (1394919945,), (1394919954,), (1394919966,), (1394919983,), (1394919984,), (1394919986,), (1394919989,), (1394920019,), (1394920026,), (1394920028,), (1394920056,), (1394920091,), (1394920125,), (1394920375,), (1394920378,), (1394920380,), (1394920388,), (1394920391,), (1394920400,), (1394920364,), (1394920367,), (1394920372,), (1394920406,), (1394920410,), (1394920414,), (1394920417,), (1394920421,), (1394920430,), (1394920431,), (1394920433,), (1394920437,), (1394920441,), (1394920474,), (1394920589,), (1394920590,), (1394920592,), (1394920596,), (1394920613,), (1394920615,), (1394920660,), (1394920666,), (1394920667,), (1394920692,), (1394920696,), (1394920713,), (1394920716,), (1394920719,), (1394920749,), (1394920785,), (1394920959,), (1394920965,), (1394920984,), (1394921030,), (1394921069,), (1394921219,), (1394921220,), (1394921222,), (1394921231,), (1394921237,), (1394921376,), (1394921387,), (1394921393,), (1394921404,), (1394921424,), (1394921427,), (1394921503,), (1394921505,), (1394921506,), (1394921510,), (1394921514,), (1394921551,), (1394921552,), (1394921553,), (1394921575,), (1394921577,), (1394921579,), (1394921582,), (1394921587,), (1394921590,), (1394921617,), (1394921618,), (1394921619,), (1394923507,), (1394923477,), (1394924570,), (1394924945,), (1394924947,), (1394924949,), (1394924952,), (1394924972,), (1394925012,), (1394925055,), (1394925077,), (1394925079,), (1394925080,), (1394925083,), (1394925085,), (1394925114,), (1394925102,), (1394925108,), (1394925111,), (1394925130,), (1394925131,), (1394925173,), (1394925312,), (1394925313,), (1394925322,), (1394925325,), (1394925328,), (1394925349,), (1394925351,), (1394925353,), (1394925357,), (1394925388,), (1394925389,), (1394925390,), (1394925392,), (1394925396,), (1394925453,), (1394925497,), (1394925498,), (1394925499,), (1394925532,), (1394925535,), (1394925563,), (1394925569,), (1394925581,), (1394925585,), (1394925589,), (1394925592,), (1394925614,), (1394925615,), (1394925616,), (1394925619,), (1394925639,), (1394925641,), (1394925643,), (1394925694,), (1394925695,), (1394925696,), (1394925719,), (1394925721,), (1394925723,), (1394925726,), (1394925748,), (1394925751,), (1394925755,), (1394925791,), (1394925795,), (1394925809,), (1394925810,), (1394925780,), (1394925781,), (1394925783,), (1394925787,), (1394925815,), (1394925818,), (1394925820,), (1394925849,), (1394925909,), (1394925942,), (1394925970,), (1394925975,), (1394926009,), (1394926096,), (1394926098,), (1394926100,), (1394926104,), (1394926134,), (1394926144,), (1394926177,), (1394926178,), (1394926201,), (1394926203,), (1394926228,), (1394926230,), (1394926255,), (1394926257,), (1394926259,), (1394926263,), (1394926298,), (1394926299,), (1394926300,), (1394926328,), (1394926331,), (1394926339,), (1394926343,), (1394926489,), (1394926512,), (1394926526,), (1394926548,), (1394926550,), (1394926592,), (1394926596,), (1394926599,), (1394926582,), (1394926584,), (1394926587,), (1394926656,), (1394926658,), (1394926687,), (1394926688,), (1394926691,), (1394926740,), (1394926742,), (1394926766,), (1394926767,), (1394926768,), (1394926771,), (1394926776,), (1394926779,), (1394926815,), (1394926817,), (1394926819,), (1394926821,), (1394926848,), (1394926849,), (1394926877,), (1394926878,), (1394927000,), (1394927002,), (1394927003,), (1394927026,), (1394927027,), (1394927029,), (1394927061,), (1394927064,), (1394927068,), (1394927107,), (1394927103,), (1394927105,), (1394927151,), (1394927211,), (1394927214,), (1394927230,), (1394927231,), (1394927232,), (1394927258,), (1394927260,), (1394927263,), (1394927266,), (1394927270,), (1394927286,), (1394927287,), (1394927288,), (1394927310,), (1394927312,), (1394927314,), (1394927317,), (1394927339,), (1394927340,), (1394927361,), (1394927362,), (1394927363,), (1394927396,), (1394927398,), (1394927400,), (1394927404,), (1394927408,), (1394927431,), (1394927433,), (1394927435,), (1394927439,), (1394927463,), (1394927464,), (1394927466,), (1394927469,), (1394927490,), (1394927491,), (1394927492,), (1394927519,), (1394927521,), (1394927523,), (1394927526,), (1394927546,), (1394927547,), (1394927551,), (1394927588,), (1394927590,), (1394927592,), (1394927595,), (1394927598,), (1394927746,), (1394927742,), (1394927743,), (1394927744,), (1394927873,), (1394927874,), (1394927892,), (1394927893,), (1394928271,), (1394928300,), (1394928505,), (1394928547,), (1394928549,), (1394928553,), (1394928571,), (1394928573,), (1394928575,), (1394928578,), (1394928610,), (1394928611,), (1394928612,), (1394928633,), (1394928635,), (1394928668,), (1394928669,), (1394928670,), (1394928672,), (1394928674,), (1394928696,), (1394928698,), (1394928700,), (1394928703,), (1394928707,), (1394928738,), (1394928739,), (1394928740,), (1394928741,), (1394928766,), (1394928768,), (1394928770,), (1394928792,), (1394928819,), (1394928821,), (1394928824,), (1394928858,), (1394928860,), (1394928861,), (1394928862,), (1394928866,), (1394928909,), (1394928914,), (1394928919,), (1394928924,), (1394928925,), (1394928926,), (1394928895,), (1394928899,), (1394928904,), (1394928929,), (1394928932,), (1394928949,), (1394928950,), (1394928951,), (1394928984,), (1394928986,), (1394928988,), (1394929019,), (1394929020,), (1394929021,), (1394929023,), (1394929063,), (1394929064,), (1394929065,), (1394929090,), (1394929092,), (1394929094,), (1394929098,), (1394929103,), (1394929126,), (1394929127,), (1394929128,), (1394929153,), (1394929154,), (1394929183,), (1394929184,), (1394929185,), (1394929209,), (1394929212,), (1394929214,), (1394929244,), (1394929245,), (1394929246,), (1394929249,), (1394929275,), (1394929276,), (1394929278,), (1394929282,), (1394929303,), (1394929304,), (1394929305,), (1394929307,), (1394929311,), (1394929316,), (1394929332,), (1394929333,), (1394929336,), (1394929339,), (1394929344,), (1394929367,), (1394929363,), (1394929364,), (1394929365,), (1394929436,), (1394929438,), (1394929442,), (1394929479,), (1394929480,), (1394929481,), (1394929484,), (1394929513,), (1394929547,), (1394929735,), (1394929737,), (1394929739,), (1394929743,), (1394929765,), (1394929766,), (1394929789,), (1394929791,), (1394929797,), (1394929834,), (1394929835,), (1394929836,), (1394929861,), (1394929863,), (1394929865,), (1394929890,), (1394929891,), (1394929892,), (1394929895,), (1394929923,), (1394929925,), (1394929927,), (1394929931,), (1394929936,), (1394929955,), (1394929956,), (1394929985,), (1394929987,), (1394929989,), (1394929992,), (1394930011,), (1394930051,), (1394930052,), (1394930058,), (1394930084,), (1394930118,), (1394930363,), (1394930437,), (1394930499,), (1394930569,), (1394930635,), (1394930700,), (1394931224,), (1394931186,), (1394931495,), (1394931527,), (1394931548,), (1394931558,), (1394931568,), (1394931667,), (1394931670,), (1394931673,), (1394931678,), (1394931682,), (1394931711,), (1394931743,), (1394931774,), (1394932440,), (1394932489,), (1394932520,), (1394932554,), (1394932588,), (1394933138,), (1394933173,), (1394933206,), (1394933289,), (1394933348,), (1394933377,), (1394933413,), (1394933446,), (1394933606,), (1394933608,), (1394933609,), (1394933611,), (1394933636,), (1394933637,), (1394933666,), (1394933668,), (1394933670,), (1394933674,), (1394933696,), (1394933698,), (1394933700,), (1394933747,), (1394933748,), (1394933751,), (1394933754,), (1394933777,), (1394933779,), (1394933781,), (1394933806,), (1394933808,), (1394933809,), (1394933812,), (1394933831,), (1394933833,), (1394933835,), (1394933838,), (1394933862,), (1394933858,), (1394933860,), (1394933888,), (1394933890,), (1394933893,), (1394933898,), (1394933923,), (1394933924,), (1394934252,), (1394934254,), (1394934279,), (1394934282,), (1394934284,), (1394934288,), (1394934304,), (1394934305,), (1394934306,), (1394934308,), (1394934310,), (1394934343,), (1394934344,), (1394934346,), (1394934349,), (1394934352,), (1394934355,), (1394934372,), (1394934374,), (1394934377,), (1394934410,), (1394934411,), (1394934412,), (1394934439,), (1394934440,), (1394934442,), (1394934446,), (1394934469,), (1394934470,), (1394934475,), (1394934502,), (1394934504,), (1394934506,), (1394934528,), (1394934529,), (1394934530,), (1394934532,), (1394934556,), (1394934557,), (1394934559,), (1394934581,), (1394934586,), (1394934589,), (1394934593,), (1394934597,), (1394934628,), (1394935064,), (1394935067,), (1394935073,), (1394935076,), (1394935181,), (1394935198,), (1394935200,), (1394935030,), (1394935061,), (1394935295,), (1394935302,), (1394935306,), (1394935310,), (1394935323,), (1394935325,), (1394935328,), (1394935352,), (1394935357,), (1394935358,), (1394935360,), (1394935362,), (1394935365,), (1394935385,), (1394935386,), (1394935387,), (1394935390,), (1394935395,), (1394935408,), (1394935423,), (1394935427,), (1394935431,), (1394935435,), (1394935439,), (1394935453,), (1394935851,), (1394935882,), (1394935913,), (1394935959,), (1394936267,), (1394936269,), (1394936561,), (1394936565,), (1394936569,), (1394936630,), (1394936673,), (1394936675,), (1394936677,), (1394936681,), (1394936733,), (1394936741,), (1394936745,), (1394936749,), (1394936754,), (1394937149,), (1394937179,), (1394937219,), (1394937391,), (1394937424,), (1394937447,), (1394937568,), (1394937569,), (1394937571,), (1394937573,), (1394937633,), (1394937606,), (1394937607,), (1394937609,), (1394937612,), (1394937994,), (1394938040,), (1394938072,), (1394938106,), (1394938140,), (1394938400,), (1394938402,), (1394938665,), (1394938666,), (1394938685,), (1394938696,), (1394938716,), (1394938738,), (1394938740,), (1394938742,), (1394938745,), (1394938754,), (1394938758,), (1394938946,), (1394938958,), (1394938960,), (1394939108,), (1394939149,), (1394939150,), (1394939155,), (1394939160,), (1394939194,), (1394939475,), (1394939508,), (1394939539,), (1394939570,), (1394939605,), (1394939969,), (1394939974,), (1394939975,), (1394940162,), (1394940193,), (1394940223,), (1394940236,), (1394940240,), (1394940632,), (1394940670,), (1394940700,), (1394940753,), (1394940788,), (1394941324,), (1394941326,), (1394941336,), (1394941349,), (1394941367,), (1394941559,), (1394941591,), (1394941606,), (1394941613,), (1394942375,), (1394942411,), (1394942450,), (1394942483,), (1394942517,), (1394942573,), (1394942574,), (1394942576,), (1394942578,), (1394943246,), (1394943278,), (1394943311,), (1394943342,), (1394943374,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17112025': {'nb_upload': 15, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28624431]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477] map_info['map_portfolio_photo'] : {28624431: [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477]} final : True mtd_id 4302 list_pids : [1394925114, 1394925085, 1394925083, 1394925080, 1394925079, 1394925077, 1394925055, 1394925012, 1394924972, 1394924952, 1394924949, 1394924947, 1394924945, 1394924570, 1394923477] Looping around the photos to save general results len do output : 1 /28624431Didn'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, '4063441') ('4302', '28624431', '1394925114', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925085', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925083', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925080', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925079', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925077', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925055', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394925012', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924972', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924952', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924949', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924947', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924945', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394924570', None, None, None, None, None, '4063441') ('4302', None, None, None, None, None, None, None, '4063441') ('4302', '28624431', '1394923477', None, None, None, None, None, '4063441') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '28624431', 'None', None, None, None, None, '4063441'), ('4302', '28624431', '1394925114', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925085', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925083', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925080', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925079', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925077', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925055', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394925012', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924972', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924952', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924949', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924947', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924945', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394924570', None, None, None, None, None, '4063441'), ('4302', '28624431', '1394923477', None, None, None, None, None, '4063441')] time used for this insertion : 0.016091346740722656 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.261882781982422 time spend to save output : 0.016357421875 total time spend for step 5 : 4.278240203857422 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 (4063441) 2.56user 2.90system 0:11.98elapsed 45%CPU (0avgtext+0avgdata 160800maxresident)k 23168inputs+8880outputs (128major+75043minor)pagefaults 0swaps