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 : 1771110 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 (3481190) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3481190) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794723 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3481190'] with mtr_portfolio_ids : ['25794723'] and first list_photo_ids : [] new path : /proc/1771110/ Name: python3 Umask: 0002 State: R (running) Tgid: 1771110 Ngid: 0 Pid: 1771110 PPid: 1771109 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1771110 NSpid: 1771110 NSpgid: 1769190 NSsid: 1769190 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99476 kB VmRSS: 99476 kB RssAnon: 59812 kB RssFile: 39664 kB RssShmem: 0 kB VmData: 865716 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 51 nonvoluntary_ctxt_switches: 74 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1771110', 'Ngid': '0', 'Pid': '1771110', 'PPid': '1771109', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1771110', 'NSpid': '1771110', 'NSpgid': '1769190', 'NSsid': '1769190', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99476 kB', 'VmRSS': '99476 kB', 'RssAnon': '59812 kB', 'RssFile': '39664 kB', 'RssShmem': '0 kB', 'VmData': '865716 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '51', 'nonvoluntary_ctxt_switches': '74'} ('datou_batch_current', '1771110', '1106964', '0', '1106964', '865716', '99476', b'', 'marlene', '3481190') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25794723) 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 (3481190 ) ) 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 (25794723) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1375734852, 'portfolio_id': 25794723}, {'photo_id': 1375734544, 'portfolio_id': 25794723}, {'photo_id': 1375734539, 'portfolio_id': 25794723}, {'photo_id': 1375734536, 'portfolio_id': 25794723}, {'photo_id': 1375734534, 'portfolio_id': 25794723}, {'photo_id': 1375734505, 'portfolio_id': 25794723}, {'photo_id': 1375734504, 'portfolio_id': 25794723}, {'photo_id': 1375734503, 'portfolio_id': 25794723}, {'photo_id': 1375734468, 'portfolio_id': 25794723}, {'photo_id': 1375733959, 'portfolio_id': 25794723}, {'photo_id': 1375733957, 'portfolio_id': 25794723}, {'photo_id': 1375733755, 'portfolio_id': 25794723}, {'photo_id': 1375733727, 'portfolio_id': 25794723}, {'photo_id': 1375733648, 'portfolio_id': 25794723}, {'photo_id': 1375733441, 'portfolio_id': 25794723}, {'photo_id': 1375731728, 'portfolio_id': 25794723}, {'photo_id': 1375731689, 'portfolio_id': 25794723}, {'photo_id': 1375731666, 'portfolio_id': 25794723}] map_portfolio_id_photo_id: {25794723: [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666]} ##### 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.025069713592529297 #### 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 Fri Aug 8 06:14:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25794723) 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 : 25794723 get user id for portfolio 25794723 get sub ptf for main ptf 25794723, type 3726 and hashtags ['papier', 'cartonnette', 'Teint_Dans_La_Masse', 'Carton_brun', 'mal_croppe', 'Carton_gris', 'kraft', 'autre_refus', 'metal', 'plastique', 'flou', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25794723 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Teint_Dans_La_Masse','Carton_brun','mal_croppe','Carton_gris','kraft','autre_refus','metal','plastique','flou','environnement')) 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`=25794723 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Teint_Dans_La_Masse','Carton_brun','mal_croppe','Carton_gris','kraft','autre_refus','metal','plastique','flou','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25794723, 'sub_port_id': 25794734, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382783, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}, 'mal_croppe': {'main_port_id': 25794723, 'sub_port_id': 25794735, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382784, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}, 'autre_refus': {'main_port_id': 25794723, 'sub_port_id': 25794736, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382785, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}, 'Carton_brun': {'main_port_id': 25794723, 'sub_port_id': 25794737, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382786, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}, 'metal': {'main_port_id': 25794723, 'sub_port_id': 25794738, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382787, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 25794723, 'sub_port_id': 25794739, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382788, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}, 'cartonnette': {'main_port_id': 25794723, 'sub_port_id': 25794740, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382789, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}, 'Carton_gris': {'main_port_id': 25794723, 'sub_port_id': 25794741, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382790, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}, 'flou': {'main_port_id': 25794723, 'sub_port_id': 25794742, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382791, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}, 'plastique': {'main_port_id': 25794723, 'sub_port_id': 25794743, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382792, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}, 'papier': {'main_port_id': 25794723, 'sub_port_id': 25794744, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382793, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}, 'kraft': {'main_port_id': 25794723, 'sub_port_id': 25794745, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382794, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25794734 , 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=25794723 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 (25794734) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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 25794735 , 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=25794723 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 (25794735) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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 25794736 , 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=25794723 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 (25794736) result : ((1375734840,), (1375734841,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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 25794737 , 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=25794723 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 (25794737) result : ((1375735160,), (1375735161,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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 25794738 , 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=25794723 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 (25794738) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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 25794739 , 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=25794723 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 (25794739) result : ((1375735147,), (1375735148,), (1375735149,), (1375735151,), (1375735152,), (1375735154,), (1375735155,), (1375735156,), (1375735299,), (1375735300,), (1375735301,), (1375735357,), (1375735358,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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 25794740 , 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=25794723 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 (25794740) result : ((1375734843,), (1375734844,), (1375735157,), (1375735158,), (1375735159,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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 25794741 , 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=25794723 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 (25794741) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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 25794742 , 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=25794723 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 (25794742) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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 25794743 , 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=25794723 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 (25794743) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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 25794744 , 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=25794723 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 (25794744) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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 25794745 , 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=25794723 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 (25794745) result : ((1375735163,), (1375735164,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25794723) result : ((1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,)) 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`=25794723 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Teint_Dans_La_Masse','Carton_brun','mal_croppe','Carton_gris','kraft','autre_refus','metal','plastique','flou','environnement')) 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`=25794723 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Teint_Dans_La_Masse','Carton_brun','mal_croppe','Carton_gris','kraft','autre_refus','metal','plastique','flou','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25794723, 'sub_port_id': 25794748, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382795, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}, 'mal_croppe': {'main_port_id': 25794723, 'sub_port_id': 25794749, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382796, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}, 'autre_refus': {'main_port_id': 25794723, 'sub_port_id': 25794750, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382797, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}, 'Carton_brun': {'main_port_id': 25794723, 'sub_port_id': 25794751, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382798, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}, 'metal': {'main_port_id': 25794723, 'sub_port_id': 25794752, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382799, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25794723, 'sub_port_id': 25794753, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382800, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}, 'cartonnette': {'main_port_id': 25794723, 'sub_port_id': 25794754, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382801, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}, 'Carton_gris': {'main_port_id': 25794723, 'sub_port_id': 25794755, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382802, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}, 'flou': {'main_port_id': 25794723, 'sub_port_id': 25794756, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382803, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}, 'plastique': {'main_port_id': 25794723, 'sub_port_id': 25794757, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382804, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}, 'papier': {'main_port_id': 25794723, 'sub_port_id': 25794758, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382805, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}, 'kraft': {'main_port_id': 25794723, 'sub_port_id': 25794759, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17382806, 'last_updated_at': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 21, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 21, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794748,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794734 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794749,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794735 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794750,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794736 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794751,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794737 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794752,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794738 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794753,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794739 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794740 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794741 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794742 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25794759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25794745 lien utilise dans velours : https://www.fotonower.com/velours/25794748,25794749,25794750,25794751,25794752,25794753,25794754,25794755,25794756,25794757,25794758,25794759?tags=environnement,mal_croppe,autre_refus,Carton_brun,metal,Teint_Dans_La_Masse,cartonnette,Carton_gris,flou,plastique,papier,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25794723]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666] map_info['map_portfolio_photo'] : {25794723: [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666]} final : False mtd_id 4302 list_pids : [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666] Looping around the photos to save general results len do output : 1 /25794723. 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, '3481190') ('4302', '25794723', '1375734852', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734544', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734539', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734536', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734534', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734505', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734504', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734503', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734468', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733959', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733957', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733755', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733727', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733648', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733441', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731728', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731689', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731666', None, None, None, None, None, '3481190') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '25794723', "{'environnement': 25794734, 'mal_croppe': 25794735, 'autre_refus': 25794736, 'Carton_brun': 25794737, 'metal': 25794738, 'Teint_Dans_La_Masse': 25794739, 'cartonnette': 25794740, 'Carton_gris': 25794741, 'flou': 25794742, 'plastique': 25794743, 'papier': 25794744, 'kraft': 25794745}", None, None, None, None, '3481190'), ('4302', '25794723', '1375734852', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734544', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734539', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734536', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734534', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734505', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734504', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734503', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734468', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733959', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733957', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733755', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733727', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733648', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733441', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375731728', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375731689', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375731666', None, None, None, None, None, '3481190')] time used for this insertion : 0.021903276443481445 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6034038066864014 time spend to save output : 0.022242307662963867 total time spend for step 1 : 1.6256461143493652 step2:final Fri Aug 8 06:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (25794723) 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 25794723 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1375731728,1375731689,1375731666,1375733441,1375733648,1375733755,1375733727,1375733959,1375733957,1375734468,1375734505,1375734544,1375734504,1375734539,1375734503,1375734536,1375734534,1375734852); 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([25794723]) Inside saveOutput : final : False verbose : True original output for save of step final : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} new output for save of step final : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666] map_info['map_portfolio_photo'] : {25794723: [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666]} final : False mtd_id 4302 list_pids : [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666] Looping around the photos to save general results len do output : 18 /1375734852.Didn't retrieve data . /1375734544.Didn't retrieve data . /1375734539.Didn't retrieve data . /1375734536.Didn't retrieve data . /1375734534.Didn't retrieve data . /1375734505.Didn't retrieve data . /1375734504.Didn't retrieve data . /1375734503.Didn't retrieve data . /1375734468.Didn't retrieve data . /1375733959.Didn't retrieve data . /1375733957.Didn't retrieve data . /1375733755.Didn't retrieve data . /1375733727.Didn't retrieve data . /1375733648.Didn't retrieve data . /1375733441.Didn't retrieve data . /1375731728.Didn't retrieve data . /1375731689.Didn't retrieve data . /1375731666.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, '3481190') ('4302', '25794723', '1375734852', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734544', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734539', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734536', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734534', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734505', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734504', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734503', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734468', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733959', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733957', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733755', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733727', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733648', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733441', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731728', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731689', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731666', None, None, None, None, None, '3481190') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '25794723', '1375734852', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375734544', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375734539', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375734536', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375734534', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375734505', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375734504', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375734503', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375734468', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375733959', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375733957', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375733755', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375733727', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375733648', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375733441', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375731728', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375731689', '0.029638211606071597', None, None, None, None, '3481190'), ('4302', '25794723', '1375731666', '0.029638211606071597', None, None, None, None, '3481190')] time used for this insertion : 0.020173072814941406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06696009635925293 time spend to save output : 0.020969867706298828 total time spend for step 2 : 0.08792996406555176 step3:velours_tree Fri Aug 8 06:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25794723: [{'environnement': 25794734, 'mal_croppe': 25794735, 'autre_refus': 25794736, 'Carton_brun': 25794737, 'metal': 25794738, 'Teint_Dans_La_Masse': 25794739, 'cartonnette': 25794740, 'Carton_gris': 25794741, 'flou': 25794742, 'plastique': 25794743, 'papier': 25794744, 'kraft': 25794745}]} input_args_next_step : {25794723: ()} output_args : {25794723: [{'environnement': 25794734, 'mal_croppe': 25794735, 'autre_refus': 25794736, 'Carton_brun': 25794737, 'metal': 25794738, 'Teint_Dans_La_Masse': 25794739, 'cartonnette': 25794740, 'Carton_gris': 25794741, 'flou': 25794742, 'plastique': 25794743, 'papier': 25794744, 'kraft': 25794745}]} args : 25794723 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 : ({'environnement': 25794734, 'mal_croppe': 25794735, 'autre_refus': 25794736, 'Carton_brun': 25794737, 'metal': 25794738, 'Teint_Dans_La_Masse': 25794739, 'cartonnette': 25794740, 'Carton_gris': 25794741, 'flou': 25794742, 'plastique': 25794743, 'papier': 25794744, 'kraft': 25794745},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25794723) 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([25794723]) 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.27302074432373047 time spend to save output : 5.269050598144531e-05 total time spend for step 3 : 0.2730734348297119 step4:send_mail_cod Fri Aug 8 06:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} input_args_next_step : {1375734852: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375734852 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375734544 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375734539 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375734536 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375734534 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375734505 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375734504 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375734503 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375734468 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375733959 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375733957 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375733755 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375733727 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375733648 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375733441 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375731728 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375731689 depend.output_id : 0 input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ()} output_args : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',)} args : 1375731666 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 : {25794723: [{'environnement': 25794734, 'mal_croppe': 25794735, 'autre_refus': 25794736, 'Carton_brun': 25794737, 'metal': 25794738, 'Teint_Dans_La_Masse': 25794739, 'cartonnette': 25794740, 'Carton_gris': 25794741, 'flou': 25794742, 'plastique': 25794743, 'papier': 25794744, 'kraft': 25794745}]} input_args_next_step : {1375734852: ('0.029638211606071597',), 1375734544: ('0.029638211606071597',), 1375734539: ('0.029638211606071597',), 1375734536: ('0.029638211606071597',), 1375734534: ('0.029638211606071597',), 1375734505: ('0.029638211606071597',), 1375734504: ('0.029638211606071597',), 1375734503: ('0.029638211606071597',), 1375734468: ('0.029638211606071597',), 1375733959: ('0.029638211606071597',), 1375733957: ('0.029638211606071597',), 1375733755: ('0.029638211606071597',), 1375733727: ('0.029638211606071597',), 1375733648: ('0.029638211606071597',), 1375733441: ('0.029638211606071597',), 1375731728: ('0.029638211606071597',), 1375731689: ('0.029638211606071597',), 1375731666: ('0.029638211606071597',), 25794723: ()} output_args : {25794723: [{'environnement': 25794734, 'mal_croppe': 25794735, 'autre_refus': 25794736, 'Carton_brun': 25794737, 'metal': 25794738, 'Teint_Dans_La_Masse': 25794739, 'cartonnette': 25794740, 'Carton_gris': 25794741, 'flou': 25794742, 'plastique': 25794743, 'papier': 25794744, 'kraft': 25794745}]} args : 25794723 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 :19, first value : ('0.029638211606071597',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25794723) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1375734852,1375734544,1375734539,1375734536,1375734534,1375734505,1375734504,1375734503,1375734468,1375733959,1375733957,1375733755,1375733727,1375733648,1375733441,1375731728,1375731689,1375731666) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1375731666 begin to download photo : 1375733648 begin to download photo : 1375733959 begin to download photo : 1375734505 begin to download photo : 1375734544 download finish for photo 1375731666 begin to download photo : 1375731689 download finish for photo 1375734544 begin to download photo : 1375734852 download finish for photo 1375733648 begin to download photo : 1375733727 download finish for photo 1375734505 begin to download photo : 1375734534 download finish for photo 1375733959 begin to download photo : 1375734468 download finish for photo 1375733727 begin to download photo : 1375733755 download finish for photo 1375734534 begin to download photo : 1375734536 download finish for photo 1375731689 begin to download photo : 1375731728 download finish for photo 1375734852 download finish for photo 1375734468 begin to download photo : 1375734503 download finish for photo 1375733755 begin to download photo : 1375733957 download finish for photo 1375734536 begin to download photo : 1375734539 download finish for photo 1375731728 begin to download photo : 1375733441 download finish for photo 1375734503 begin to download photo : 1375734504 download finish for photo 1375733441 download finish for photo 1375734539 download finish for photo 1375733957 download finish for photo 1375734504 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette257947351754626499/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P25794723_08-08-2025_06_14_59.pdf 25794735 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794735 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257947351754626499 25794736 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794736 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375734840: '1754594247_2040659_1375734544_a9776a603ed270b082981850b85b48e4_rle_crop_3906319834_0.png', 1375734841: '1754594247_2040659_1375734505_d16227f9c8c92199a533e6aa0870bc40_rle_crop_3906319850_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/73b90231fab111d2e3e6412df2866920_46264587.png change filename to text .imagette257947361754626499/ imagette257947361754626499/1754594247_2040659_1375734544_a9776a603ed270b082981850b85b48e4_rle_crop_3906319834_0.png.png imagette257947361754626499/1754594247_2040659_1375734505_d16227f9c8c92199a533e6aa0870bc40_rle_crop_3906319850_0.png.png imagette257947381754626499/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/73b90231fab111d2e3e6412df2866920_37827186.png imagette257947361754626499 25794738 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794738 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257947381754626499 25794740 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794740 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375734843: '1754594247_2040659_1375734544_a9776a603ed270b082981850b85b48e4_rle_crop_3906319827_0.png', 1375734844: '1754594247_2040659_1375734505_d16227f9c8c92199a533e6aa0870bc40_rle_crop_3906319843_0.png', 1375735157: '1754594366_2044136_1375734539_b2b0efefba14afc0d367e2fdde5c1265_rle_crop_3906320499_0.png', 1375735158: '1754594366_2044136_1375734534_9b821aaec90255dfbad6cc2bd57ff147_rle_crop_3906320527_0.png', 1375735159: '1754594366_2044136_1375734504_414230656a6070688b6653d51d48183e_rle_crop_3906320550_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/098793b126147eb897cc3f5b9b50e045_45668090.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/098793b126147eb897cc3f5b9b50e045_83339933.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/8c2bb31ea5c4052ad4f1276b6892b6f2_22960166.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/262aa6e2dace0a5343bf4a4ac1f328ca_86715277.png change filename to text .imagette257947401754626499/ imagette257947401754626499/1754594366_2044136_1375734534_9b821aaec90255dfbad6cc2bd57ff147_rle_crop_3906320527_0.png.png imagette257947401754626499/1754594366_2044136_1375734539_b2b0efefba14afc0d367e2fdde5c1265_rle_crop_3906320499_0.png.png imagette257947401754626499/1754594366_2044136_1375734504_414230656a6070688b6653d51d48183e_rle_crop_3906320550_0.png.png imagette257947401754626499/1754594247_2040659_1375734505_d16227f9c8c92199a533e6aa0870bc40_rle_crop_3906319843_0.png.png imagette257947401754626499/1754594247_2040659_1375734544_a9776a603ed270b082981850b85b48e4_rle_crop_3906319827_0.png.png imagette257947421754626499/ imagette257947431754626499/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/8c2bb31ea5c4052ad4f1276b6892b6f2_78122935.png imagette257947401754626499 25794742 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257947421754626499 25794743 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794743 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257947431754626499 25794745 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375735163: '1754594366_2044136_1375734539_b2b0efefba14afc0d367e2fdde5c1265_rle_crop_3906320495_0.png', 1375735164: '1754594366_2044136_1375734504_414230656a6070688b6653d51d48183e_rle_crop_3906320546_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/0766c929f88889dfffe1eec6b334a510_91896358.png change filename to text .imagette257947451754626499/ imagette257947451754626499/1754594366_2044136_1375734539_b2b0efefba14afc0d367e2fdde5c1265_rle_crop_3906320495_0.png.png imagette257947451754626499/1754594366_2044136_1375734504_414230656a6070688b6653d51d48183e_rle_crop_3906320546_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/0766c929f88889dfffe1eec6b334a510_14577823.png imagette257947451754626499 25794737 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794737 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375735160: '1754594366_2044136_1375734536_166de44be11df5d2ce6f0451f97f7716_rle_crop_3906320511_0.png', 1375735161: '1754594366_2044136_1375734503_9c9899243d0f3fdd22c11d502e308588_rle_crop_3906320619_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/856b34d1d2b2e45ce83ad2ca0a32eb7a_69253331.png change filename to text .imagette257947371754626500/ imagette257947371754626500/1754594366_2044136_1375734503_9c9899243d0f3fdd22c11d502e308588_rle_crop_3906320619_0.png.png imagette257947371754626500/1754594366_2044136_1375734536_166de44be11df5d2ce6f0451f97f7716_rle_crop_3906320511_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/856b34d1d2b2e45ce83ad2ca0a32eb7a_43217517.png imagette257947371754626500 25794739 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794739 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375735147: '1754594366_2044136_1375734536_166de44be11df5d2ce6f0451f97f7716_rle_crop_3906320517_0.png', 1375735148: '1754594366_2044136_1375734536_166de44be11df5d2ce6f0451f97f7716_rle_crop_3906320519_0.png', 1375735149: '1754594366_2044136_1375734536_166de44be11df5d2ce6f0451f97f7716_rle_crop_3906320513_0.png', 1375735151: '1754594366_2044136_1375734534_9b821aaec90255dfbad6cc2bd57ff147_rle_crop_3906320528_0.png', 1375735152: '1754594366_2044136_1375734534_9b821aaec90255dfbad6cc2bd57ff147_rle_crop_3906320542_0.png', 1375735154: '1754594366_2044136_1375734503_9c9899243d0f3fdd22c11d502e308588_rle_crop_3906320625_0.png', 1375735155: '1754594366_2044136_1375734503_9c9899243d0f3fdd22c11d502e308588_rle_crop_3906320627_0.png', 1375735156: '1754594366_2044136_1375734503_9c9899243d0f3fdd22c11d502e308588_rle_crop_3906320621_0.png', 1375735299: '1754594486_2047251_1375734468_4b303e3ec034e56d587845040b5cbaa7_rle_crop_3906322225_0.png', 1375735300: '1754594486_2047251_1375734468_4b303e3ec034e56d587845040b5cbaa7_rle_crop_3906322228_0.png', 1375735301: '1754594486_2047251_1375733957_1e6633e7c33409960f5c26654b1c9ac4_rle_crop_3906322239_0.png', 1375735357: '1754594607_2051249_1375733959_a179dd2983e4f5e293fc39619a37253c_rle_crop_3906322502_0.png', 1375735358: '1754594607_2051249_1375733727_202d9e4679ad743da8ea6a5f6d2eb9d8_rle_crop_3906322512_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/f30d829a2d2f134c4ddd2aef20d6ee94_69293419.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/2a7260c2a5c384b237399b181ac2c5c7_83824516.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/c92fa16a0de7dda8b0edbfde929cad4d_35815172.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/c17dc3577d939faf09a5f749c30207ce_15258229.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/6b59eb8270d7c3adbdb0642d2bf9d5b5_15419797.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/f30d829a2d2f134c4ddd2aef20d6ee94_75577876.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/2a7260c2a5c384b237399b181ac2c5c7_17092443.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/c92fa16a0de7dda8b0edbfde929cad4d_51823632.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/445fcf088c321e226c3bb6a5f22d153c_87205591.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/772ab192c51d57dfc8d73487a6768108_10539360.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/f97eeb6fb3783b1d8b7dae80e51b6b22_53251879.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/9f2caade56ecfcee9084a99fb6842888_24471265.png change filename to text .imagette257947391754626500/ imagette257947391754626500/1754594486_2047251_1375734468_4b303e3ec034e56d587845040b5cbaa7_rle_crop_3906322225_0.png.png imagette257947391754626500/1754594366_2044136_1375734536_166de44be11df5d2ce6f0451f97f7716_rle_crop_3906320519_0.png.png imagette257947391754626500/1754594366_2044136_1375734503_9c9899243d0f3fdd22c11d502e308588_rle_crop_3906320621_0.png.png imagette257947391754626500/1754594607_2051249_1375733959_a179dd2983e4f5e293fc39619a37253c_rle_crop_3906322502_0.png.png imagette257947391754626500/1754594366_2044136_1375734536_166de44be11df5d2ce6f0451f97f7716_rle_crop_3906320517_0.png.png imagette257947391754626500/1754594486_2047251_1375733957_1e6633e7c33409960f5c26654b1c9ac4_rle_crop_3906322239_0.png.png imagette257947391754626500/1754594366_2044136_1375734503_9c9899243d0f3fdd22c11d502e308588_rle_crop_3906320625_0.png.png imagette257947391754626500/1754594607_2051249_1375733727_202d9e4679ad743da8ea6a5f6d2eb9d8_rle_crop_3906322512_0.png.png imagette257947391754626500/1754594486_2047251_1375734468_4b303e3ec034e56d587845040b5cbaa7_rle_crop_3906322228_0.png.png imagette257947391754626500/1754594366_2044136_1375734536_166de44be11df5d2ce6f0451f97f7716_rle_crop_3906320513_0.png.png imagette257947391754626500/1754594366_2044136_1375734534_9b821aaec90255dfbad6cc2bd57ff147_rle_crop_3906320542_0.png.png imagette257947391754626500/1754594366_2044136_1375734534_9b821aaec90255dfbad6cc2bd57ff147_rle_crop_3906320528_0.png.png imagette257947391754626500/1754594366_2044136_1375734503_9c9899243d0f3fdd22c11d502e308588_rle_crop_3906320627_0.png.png imagette257947411754626501/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/d81c5265cfeda9a1caac4bbccd1afcce_95323383.png imagette257947391754626500 25794741 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794741 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257947411754626501 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25794723 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25794748,25794749,25794750,25794751,25794752,25794753,25794754,25794755,25794756,25794757,25794758,25794759?tags=environnement,mal_croppe,autre_refus,Carton_brun,metal,Teint_Dans_La_Masse,cartonnette,Carton_gris,flou,plastique,papier,kraft your option no_mail is active, we will not send the real mail to your client args[1375734852] : ('0.029638211606071597',) no score found for photo 1375734852 We are sending mail with results at report@fotonower.com args[1375734544] : ('0.029638211606071597',) no score found for photo 1375734544 We are sending mail with results at report@fotonower.com args[1375734539] : ('0.029638211606071597',) no score found for photo 1375734539 We are sending mail with results at report@fotonower.com args[1375734536] : ('0.029638211606071597',) no score found for photo 1375734536 We are sending mail with results at report@fotonower.com args[1375734534] : ('0.029638211606071597',) no score found for photo 1375734534 We are sending mail with results at report@fotonower.com args[1375734505] : ('0.029638211606071597',) no score found for photo 1375734505 We are sending mail with results at report@fotonower.com args[1375734504] : ('0.029638211606071597',) no score found for photo 1375734504 We are sending mail with results at report@fotonower.com args[1375734503] : ('0.029638211606071597',) no score found for photo 1375734503 We are sending mail with results at report@fotonower.com args[1375734468] : ('0.029638211606071597',) no score found for photo 1375734468 We are sending mail with results at report@fotonower.com args[1375733959] : ('0.029638211606071597',) no score found for photo 1375733959 We are sending mail with results at report@fotonower.com args[1375733957] : ('0.029638211606071597',) no score found for photo 1375733957 We are sending mail with results at report@fotonower.com args[1375733755] : ('0.029638211606071597',) no score found for photo 1375733755 We are sending mail with results at report@fotonower.com args[1375733727] : ('0.029638211606071597',) no score found for photo 1375733727 We are sending mail with results at report@fotonower.com args[1375733648] : ('0.029638211606071597',) no score found for photo 1375733648 We are sending mail with results at report@fotonower.com args[1375733441] : ('0.029638211606071597',) no score found for photo 1375733441 We are sending mail with results at report@fotonower.com args[1375731728] : ('0.029638211606071597',) no score found for photo 1375731728 We are sending mail with results at report@fotonower.com args[1375731689] : ('0.029638211606071597',) no score found for photo 1375731689 We are sending mail with results at report@fotonower.com args[1375731666] : ('0.029638211606071597',) no score found for photo 1375731666 We are sending mail with results at report@fotonower.com refus_total : 0.029638211606071597 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794723 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_P25794723_08-08-2025_06_14_59.pdf results_Auto_P25794723_08-08-2025_06_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25794723_08-08-2025_06_14_59.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','25794723','results_Auto_P25794723_08-08-2025_06_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25794723_08-08-2025_06_14_59.pdf','pdf','','0.19','0.029638211606071597') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25794723]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666] map_info['map_portfolio_photo'] : {25794723: [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666]} final : False mtd_id 4302 list_pids : [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666] 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, '3481190') ('4302', '25794723', '1375734852', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734544', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734539', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734536', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734534', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734505', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734504', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734503', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734468', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733959', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733957', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733755', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733727', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733648', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733441', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731728', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731689', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731666', None, None, None, None, None, '3481190') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25794723', '1375734852', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734544', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734539', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734536', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734534', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734505', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734504', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734503', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734468', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733959', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733957', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733755', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733727', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733648', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733441', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375731728', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375731689', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375731666', None, None, None, None, None, '3481190')] time used for this insertion : 0.23312902450561523 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9182748794555664 time spend to save output : 0.23340582847595215 total time spend for step 4 : 4.1516807079315186 step5:split_time_score Fri Aug 8 06:15:02 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 : ['25794723'] 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 : [('25794723',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25794723) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1375734544: {'path': 'temp/1754626498_1771110_1375734544_a9776a603ed270b082981850b85b48e4.jpg', 'extension': 'jpg'}, 1375734852: {'path': 'temp/1754626498_1771110_1375734852_1a7a352b6d1ca88339c4be06b059da51.jpg', 'extension': 'jpg'}, 1375731666: {'path': 'temp/1754626498_1771110_1375731666_773c6865cf9cf6c327a9776c126ce408.jpg', 'extension': 'jpg'}, 1375731689: {'path': 'temp/1754626498_1771110_1375731689_f197f81098b411bb5be68b04daed897f.jpg', 'extension': 'jpg'}, 1375731728: {'path': 'temp/1754626498_1771110_1375731728_4a92e3d2ae6a0b0c6f5c9eb7933e1df9.jpg', 'extension': 'jpg'}, 1375733441: {'path': 'temp/1754626498_1771110_1375733441_2708a7fc5b686d9a6aef4eccbcc5ead2.jpg', 'extension': 'jpg'}, 1375734505: {'path': 'temp/1754626498_1771110_1375734505_d16227f9c8c92199a533e6aa0870bc40.jpg', 'extension': 'jpg'}, 1375734534: {'path': 'temp/1754626498_1771110_1375734534_9b821aaec90255dfbad6cc2bd57ff147.jpg', 'extension': 'jpg'}, 1375734536: {'path': 'temp/1754626498_1771110_1375734536_166de44be11df5d2ce6f0451f97f7716.jpg', 'extension': 'jpg'}, 1375734539: {'path': 'temp/1754626498_1771110_1375734539_b2b0efefba14afc0d367e2fdde5c1265.jpg', 'extension': 'jpg'}, 1375733648: {'path': 'temp/1754626498_1771110_1375733648_d944340a26ae7f97d879f1a3ae3d4cb4.jpg', 'extension': 'jpg'}, 1375733727: {'path': 'temp/1754626498_1771110_1375733727_202d9e4679ad743da8ea6a5f6d2eb9d8.jpg', 'extension': 'jpg'}, 1375733755: {'path': 'temp/1754626498_1771110_1375733755_57df2c1a2603338d310e4daa2d51398c.jpg', 'extension': 'jpg'}, 1375733957: {'path': 'temp/1754626498_1771110_1375733957_1e6633e7c33409960f5c26654b1c9ac4.jpg', 'extension': 'jpg'}, 1375733959: {'path': 'temp/1754626498_1771110_1375733959_a179dd2983e4f5e293fc39619a37253c.jpg', 'extension': 'jpg'}, 1375734468: {'path': 'temp/1754626498_1771110_1375734468_4b303e3ec034e56d587845040b5cbaa7.jpg', 'extension': 'jpg'}, 1375734503: {'path': 'temp/1754626498_1771110_1375734503_9c9899243d0f3fdd22c11d502e308588.jpg', 'extension': 'jpg'}, 1375734504: {'path': 'temp/1754626498_1771110_1375734504_414230656a6070688b6653d51d48183e.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 = 25794723; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25794723 group by h (('21', 18),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25794723 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 (25794723) 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 (25794723) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07082025 25794723 Nombre de photos uploadées : 18 / 23040 (0%) 07082025 25794723 Nombre de photos taguées (types de déchets): 0 / 18 (0%) 07082025 25794723 Nombre de photos taguées (volume) : 0 / 18 (0%) [{'photo_id': 1375731728, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/4a92e3d2ae6a0b0c6f5c9eb7933e1df9.jpg', 'username': None, 'uploaded_at': 1754593387, 'text': 'image_07082025_21_01_24_10138.jpg'}, {'photo_id': 1375731689, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/f197f81098b411bb5be68b04daed897f.jpg', 'username': None, 'uploaded_at': 1754593387, 'text': 'image_07082025_21_02_14_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1375731666, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/773c6865cf9cf6c327a9776c126ce408.jpg', 'username': None, 'uploaded_at': 1754593387, 'text': 'image_07082025_21_02_24_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1375733441, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/2708a7fc5b686d9a6aef4eccbcc5ead2.jpg', 'username': None, 'uploaded_at': 1754593567, 'text': 'image_07082025_21_02_45_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ?????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019199848175048828 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25794723, '2025-08-07' ) 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-08-07' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2077531,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2091662883758545 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= 2077531 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25751495, 'dashboard_result_id': 13767578, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751495_08-08-2025_05_34_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751515, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25751863, 'dashboard_result_id': 13767579, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751863_08-08-2025_05_34_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751885, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25752229, 'dashboard_result_id': 13767580, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752229_08-08-2025_05_35_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752275, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25752699, 'dashboard_result_id': 13767581, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752699_08-08-2025_05_36_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752744, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25753911, 'dashboard_result_id': 13767582, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25753911_08-08-2025_05_36_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25753920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25753921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25753922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25753923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25753924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25753925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25753926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25753927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25753929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25753930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25753931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25753932, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25754209, 'dashboard_result_id': 13767583, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754209_08-08-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25754247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754249, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25754559, 'dashboard_result_id': 13767584, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754559_08-08-2025_05_38_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25754576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754587, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25755213, 'dashboard_result_id': 13767585, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755213_08-08-2025_05_38_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755251, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25755780, 'dashboard_result_id': 13767586, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755780_08-08-2025_05_39_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755826, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25756256, 'dashboard_result_id': 13767587, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756256_08-08-2025_05_40_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756311, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25756736, 'dashboard_result_id': 13767588, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756736_08-08-2025_05_40_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756843, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25757389, 'dashboard_result_id': 13767589, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757389_08-08-2025_05_41_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757443, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25757891, 'dashboard_result_id': 13767590, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757891_08-08-2025_05_42_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757936, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25758372, 'dashboard_result_id': 13767591, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758372_08-08-2025_05_42_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758416, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25758674, 'dashboard_result_id': 13767592, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758674_08-08-2025_05_43_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758729, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25760026, 'dashboard_result_id': 13767593, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760026_08-08-2025_05_44_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760043, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25760227, 'dashboard_result_id': 13767594, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760227_08-08-2025_05_44_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760243, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25760615, 'dashboard_result_id': 13767595, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760615_08-08-2025_05_45_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760631, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25760754, 'dashboard_result_id': 13767596, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760754_08-08-2025_05_46_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760790, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25761096, 'dashboard_result_id': 13767597, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761096_08-08-2025_05_46_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25761113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761124, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25761686, 'dashboard_result_id': 13767598, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761686_08-08-2025_05_47_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25761709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761710, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25762063, 'dashboard_result_id': 13767599, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762063_08-08-2025_05_48_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25762066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25762067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25762068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25762069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25762070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25762071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25762072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25762073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25762074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25762075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25762076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25762077, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25762439, 'dashboard_result_id': 13767600, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762439_08-08-2025_05_48_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25762450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25762451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25762452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25762453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25762454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25762455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25762456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25762457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25762458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25762459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25762460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25762461, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25762853, 'dashboard_result_id': 13767601, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762853_08-08-2025_05_49_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25762866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25762867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25762868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25762869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25762870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25762871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25762872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25762873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25762874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25762875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25762876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25762877, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25763501, 'dashboard_result_id': 13767602, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25763501_08-08-2025_05_50_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25763575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25763576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25763578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25763579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25763580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25763581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25763582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25763583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25763584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25763585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25763586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25763587, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25764318, 'dashboard_result_id': 13767603, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25764318_08-08-2025_05_50_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25764337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25764338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25764339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25764340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25764341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25764342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25764343, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25764344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25764345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25764346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25764347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25764348, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25765036, 'dashboard_result_id': 13767604, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25765036_08-08-2025_05_51_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25765079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25765080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25765081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25765082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25765083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25765084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25765085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25765087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25765088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25765089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25765090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25765091, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25765705, 'dashboard_result_id': 13767605, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25765705_08-08-2025_05_52_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25765760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25765761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25765762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25765763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25765764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25765765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25765766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25765767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25765768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25765769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25765770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25765771, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25766413, 'dashboard_result_id': 13767606, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25766413_08-08-2025_05_52_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25766436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25766437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25766438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25766439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25766440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25766441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25766442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25766443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25766444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25766445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25766446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25766447, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25766933, 'dashboard_result_id': 13767607, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25766933_08-08-2025_05_53_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25766951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25766952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25766953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25766954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25766955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25766956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25766957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25766958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25766959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25766960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25766961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25766962, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25767591, 'dashboard_result_id': 13767608, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25767591_08-08-2025_05_54_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25767624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25767625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25767626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25767627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25767628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25767629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25767630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25767631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25767632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25767633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25767634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25767635, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25769901, 'dashboard_result_id': 13767609, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25769901_08-08-2025_05_54_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25769918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25769919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25769920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25769921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25769922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25769923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25769924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25769925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25769926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25769927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25769928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25769929, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25770490, 'dashboard_result_id': 13767610, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25770490_08-08-2025_05_55_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25770498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25770499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25770500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25770501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25770502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25770503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25770504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25770505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25770506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25770507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25770508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25770509, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25770891, 'dashboard_result_id': 13767611, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25770891_08-08-2025_05_56_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25770958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25770960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25770961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25770962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25770964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25770965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25770966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25770968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25770969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25770970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25770972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25770973, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25771761, 'dashboard_result_id': 13767612, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25771761_08-08-2025_05_56_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25771779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25771780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25771781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25771782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25771783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25771784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25771785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25771786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25771787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25771788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25771789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25771790, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25777243, 'dashboard_result_id': 13767613, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777243_08-08-2025_05_57_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25777276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25777277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25777278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25777279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25777280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25777281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25777282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25777283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25777284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25777285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25777286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25777287, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25777527, 'dashboard_result_id': 13767614, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777527_08-08-2025_05_58_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25777534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25777535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25777536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25777537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25777538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25777539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25777540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25777541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25777542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25777543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25777544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25777545, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25777706, 'dashboard_result_id': 13767615, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777706_08-08-2025_05_59_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25777735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25777736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25777737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25777739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25777740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25777741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25777743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25777744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25777745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25777747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25777748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25777749, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25778319, 'dashboard_result_id': 13767616, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25778319_08-08-2025_05_59_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25778368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25778370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25778371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25778372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25778373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25778374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25778375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25778376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25778377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25778378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25778379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25778380, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25778877, 'dashboard_result_id': 13767617, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25778877_08-08-2025_06_00_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25778905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25778906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25778907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25778908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25778909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25778910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25778911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25778912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25778913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25778914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25778915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25778916, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25779473, 'dashboard_result_id': 13767618, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25779473_08-08-2025_06_00_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25779482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25779483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25779484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25779485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25779486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25779487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25779488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25779489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25779490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25779491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25779492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25779493, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25779983, 'dashboard_result_id': 13767619, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25779983_08-08-2025_06_01_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25780026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25780027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25780028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25780029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25780030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25780031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25780032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25780033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25780034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25780035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25780036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25780037, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25780683, 'dashboard_result_id': 13767620, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25780683_08-08-2025_06_01_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25780728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25780729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25780730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25780731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25780732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25780733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25780734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25780735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25780736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25780737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25780738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25780739, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25781262, 'dashboard_result_id': 13767621, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25781262_08-08-2025_06_02_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25781275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25781276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25781277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25781278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25781279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25781280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25781281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25781282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25781283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25781284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25781285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25781286, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25781967, 'dashboard_result_id': 13767622, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25781967_08-08-2025_06_02_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25781976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25781977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25781978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25781979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25781980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25781981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25781982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25781983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25781984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25781985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25781986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25781987, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25782437, 'dashboard_result_id': 13767623, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25782437_08-08-2025_06_04_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25782485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25782486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25782487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25782488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25782489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25782490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25782491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25782493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25782494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25782495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25782496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25782497, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25783202, 'dashboard_result_id': 13767624, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25783202_08-08-2025_06_04_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25783295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25783296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25783298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25783299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25783300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25783301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25783302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25783303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25783304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25783305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25783306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25783307, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25783876, 'dashboard_result_id': 13767625, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25783876_08-08-2025_06_05_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25783935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25783936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25783937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25783940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25783941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25783942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25783943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25783944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25783945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25783946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25783947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25783948, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25784709, 'dashboard_result_id': 13767626, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25784709_08-08-2025_06_05_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25784727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25784728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25784729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25784730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25784731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25784732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25784733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25784734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25784735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25784736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25784737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25784738, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25785246, 'dashboard_result_id': 13767627, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25785246_08-08-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25785289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25785290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25785291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25785292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25785293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25785294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25785295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25785297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25785298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25785299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25785300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25785301, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25786020, 'dashboard_result_id': 13767628, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25786020_08-08-2025_06_06_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25786065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25786066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25786067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25786068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25786069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25786070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25786071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25786072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25786073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25786074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25786075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25786076, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25787724, 'dashboard_result_id': 13767629, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25787724_08-08-2025_06_08_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25787730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25787731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25787732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25787733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25787734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25787735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25787736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25787737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25787738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25787739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25787740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25787741, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25788170, 'dashboard_result_id': 13767630, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25788170_08-08-2025_06_08_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25788174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25788175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25788176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25788177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25788178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25788179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25788180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25788181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25788182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25788183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25788184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25788185, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25788837, 'dashboard_result_id': 13767631, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25788837_08-08-2025_06_09_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25788850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25788851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25788852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25788853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25788854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25788855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25788856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25788857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25788858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25788859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25788860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25788861, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25789171, 'dashboard_result_id': 13767632, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25789171_08-08-2025_06_10_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25789206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25789207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25789208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25789209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25789210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25789211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25789212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25789213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25789214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25789215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25789216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25789217, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25789643, 'dashboard_result_id': 13767633, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25789643_08-08-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25789660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25789661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25789662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25789663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25789664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25789665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25789666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25789667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25789668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25789669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25789670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25789671, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25790400, 'dashboard_result_id': 13767634, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25790400_08-08-2025_06_10_42.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25790411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25790412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25790413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25790414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25790415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25790416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25790417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25790418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25790419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25790420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25790421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25790422, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25790909, 'dashboard_result_id': 13767635, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25790909_08-08-2025_06_11_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25790930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25790931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25790932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25790933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25790934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25790935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25790936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25790937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25790938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25790939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25790940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25790941, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25791709, 'dashboard_result_id': 13767636, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25791709_08-08-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25791728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25791729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25791730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25791731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25791732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25791734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25791735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25791736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25791737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25791739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25791740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25791741, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25792151, 'dashboard_result_id': 13767637, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25792151_08-08-2025_06_13_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25792172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25792173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25792175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25792176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25792177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25792178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25792179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25792180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25792181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25792182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25792183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25792184, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25792954, 'dashboard_result_id': 13767638, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25792954_08-08-2025_06_13_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25793047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25793048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25793049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25793050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25793051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25793052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25793053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25793054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25793055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25793058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25793060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25793062, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25793554, 'dashboard_result_id': 13767639, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25793554_08-08-2025_06_14_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25793596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25793597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25793598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25793599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25793600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25793601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25793602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25793603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25793604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25793605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25793606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25793607, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25794723, 'dashboard_result_id': 13767640, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25794723_07-08-2025_21_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25794734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25794735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25794736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25794737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25794738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25794739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25794740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25794741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25794742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25794743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25794744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25794745, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2093675, 'mtr_portfolio_id': 25799503, 'dashboard_result_id': 13767641, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799503_07-08-2025_23_51_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799513, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799516, '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 = 25751495 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481128, 'mtr_portfolio_id': 25751495, 'created_at': datetime.datetime(2025, 8, 8, 5, 34, 30), 'result': '0.054382031479043386', 'result_long': None, 'result_double': None}] Qualite : 0.054382031479043386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25751495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751495_08-08-2025_05_34_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25751495 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751495_08-08-2025_05_34_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751515, 'pht': 3726}}" where mtr_portfolio_id = 25751495 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25751495 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767578, 0.054382031479043386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751495_08-08-2025_05_34_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751515, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25751863 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481129, 'mtr_portfolio_id': 25751863, 'created_at': datetime.datetime(2025, 8, 8, 5, 34, 29), 'result': '0.036966755802286', 'result_long': None, 'result_double': None}] Qualite : 0.036966755802286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25751863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751863_08-08-2025_05_34_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25751863 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751863_08-08-2025_05_34_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751885, 'pht': 3726}}" where mtr_portfolio_id = 25751863 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25751863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767579, 0.036966755802286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751863_08-08-2025_05_34_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751885, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25752229 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481130, 'mtr_portfolio_id': 25752229, 'created_at': datetime.datetime(2025, 8, 8, 5, 35, 27), 'result': '0.04556583867205671', 'result_long': None, 'result_double': None}] Qualite : 0.04556583867205671 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25752229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752229_08-08-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25752229 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752229_08-08-2025_05_35_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752275, 'pht': 3726}}" where mtr_portfolio_id = 25752229 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25752229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767580, 0.04556583867205671, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752229_08-08-2025_05_35_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752275, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25752699 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481131, 'mtr_portfolio_id': 25752699, 'created_at': datetime.datetime(2025, 8, 8, 5, 35, 59), 'result': '0.039225109676696804', 'result_long': None, 'result_double': None}] Qualite : 0.039225109676696804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25752699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752699_08-08-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25752699 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752699_08-08-2025_05_36_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752744, 'pht': 3726}}" where mtr_portfolio_id = 25752699 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25752699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767581, 0.039225109676696804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752699_08-08-2025_05_36_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752744, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25753911 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481132, 'mtr_portfolio_id': 25753911, 'created_at': datetime.datetime(2025, 8, 8, 5, 36, 27), 'result': '0.0571643638454542', 'result_long': None, 'result_double': None}] Qualite : 0.0571643638454542 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25753911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25753911_08-08-2025_05_36_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25753911 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25753911_08-08-2025_05_36_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25753920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25753921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25753922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25753923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25753924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25753925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25753926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25753927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25753929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25753930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25753931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25753932, 'pht': 3726}}" where mtr_portfolio_id = 25753911 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25753911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767582, 0.0571643638454542, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25753911_08-08-2025_05_36_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25753920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25753921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25753922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25753923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25753924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25753925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25753926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25753927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25753929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25753930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25753931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25753932, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25754209 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481133, 'mtr_portfolio_id': 25754209, 'created_at': datetime.datetime(2025, 8, 8, 5, 37, 28), 'result': '0.061196619997317465', 'result_long': None, 'result_double': None}] Qualite : 0.061196619997317465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25754209 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754209_08-08-2025_05_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25754209 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754209_08-08-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25754247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754249, 'pht': 3726}}" where mtr_portfolio_id = 25754209 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25754209 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767583, 0.061196619997317465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754209_08-08-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25754247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754249, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25754559 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481134, 'mtr_portfolio_id': 25754559, 'created_at': datetime.datetime(2025, 8, 8, 5, 37, 57), 'result': '0.05896767103439065', 'result_long': None, 'result_double': None}] Qualite : 0.05896767103439065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25754559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754559_08-08-2025_05_38_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25754559 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754559_08-08-2025_05_38_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25754576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754587, 'pht': 3726}}" where mtr_portfolio_id = 25754559 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25754559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767584, 0.05896767103439065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754559_08-08-2025_05_38_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25754576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754587, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25755213 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481135, 'mtr_portfolio_id': 25755213, 'created_at': datetime.datetime(2025, 8, 8, 5, 38, 30), 'result': '0.03618336155143452', 'result_long': None, 'result_double': None}] Qualite : 0.03618336155143452 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25755213 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755213_08-08-2025_05_38_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25755213 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755213_08-08-2025_05_38_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755251, 'pht': 3726}}" where mtr_portfolio_id = 25755213 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25755213 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767585, 0.03618336155143452, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755213_08-08-2025_05_38_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755251, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25755780 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481136, 'mtr_portfolio_id': 25755780, 'created_at': datetime.datetime(2025, 8, 8, 5, 39, 28), 'result': '0.04366365585340479', 'result_long': None, 'result_double': None}] Qualite : 0.04366365585340479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25755780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755780_08-08-2025_05_39_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25755780 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755780_08-08-2025_05_39_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755826, 'pht': 3726}}" where mtr_portfolio_id = 25755780 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25755780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767586, 0.04366365585340479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755780_08-08-2025_05_39_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755826, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25756256 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481137, 'mtr_portfolio_id': 25756256, 'created_at': datetime.datetime(2025, 8, 8, 5, 39, 59), 'result': '0.03434799702444528', 'result_long': None, 'result_double': None}] Qualite : 0.03434799702444528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25756256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756256_08-08-2025_05_40_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25756256 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756256_08-08-2025_05_40_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756311, 'pht': 3726}}" where mtr_portfolio_id = 25756256 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25756256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767587, 0.03434799702444528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756256_08-08-2025_05_40_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756311, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25756736 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481138, 'mtr_portfolio_id': 25756736, 'created_at': datetime.datetime(2025, 8, 8, 5, 40, 31), 'result': '0.03283817061804404', 'result_long': None, 'result_double': None}] Qualite : 0.03283817061804404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25756736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756736_08-08-2025_05_40_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25756736 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756736_08-08-2025_05_40_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756843, 'pht': 3726}}" where mtr_portfolio_id = 25756736 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25756736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767588, 0.03283817061804404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756736_08-08-2025_05_40_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756843, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25757389 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481139, 'mtr_portfolio_id': 25757389, 'created_at': datetime.datetime(2025, 8, 8, 5, 41, 28), 'result': '0.08096228717623817', 'result_long': None, 'result_double': None}] Qualite : 0.08096228717623817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25757389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757389_08-08-2025_05_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25757389 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757389_08-08-2025_05_41_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757443, 'pht': 3726}}" where mtr_portfolio_id = 25757389 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25757389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767589, 0.08096228717623817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757389_08-08-2025_05_41_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757443, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25757891 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481140, 'mtr_portfolio_id': 25757891, 'created_at': datetime.datetime(2025, 8, 8, 5, 41, 59), 'result': '0.05234740002419249', 'result_long': None, 'result_double': None}] Qualite : 0.05234740002419249 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25757891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757891_08-08-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25757891 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757891_08-08-2025_05_42_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757936, 'pht': 3726}}" where mtr_portfolio_id = 25757891 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25757891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767590, 0.05234740002419249, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757891_08-08-2025_05_42_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757936, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25758372 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481141, 'mtr_portfolio_id': 25758372, 'created_at': datetime.datetime(2025, 8, 8, 5, 42, 27), 'result': '0.04141209967849158', 'result_long': None, 'result_double': None}] Qualite : 0.04141209967849158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25758372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758372_08-08-2025_05_42_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25758372 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758372_08-08-2025_05_42_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758416, 'pht': 3726}}" where mtr_portfolio_id = 25758372 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25758372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767591, 0.04141209967849158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758372_08-08-2025_05_42_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758416, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25758674 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481142, 'mtr_portfolio_id': 25758674, 'created_at': datetime.datetime(2025, 8, 8, 5, 43, 29), 'result': '0.056639902943478856', 'result_long': None, 'result_double': None}] Qualite : 0.056639902943478856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25758674 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758674_08-08-2025_05_43_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25758674 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758674_08-08-2025_05_43_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758729, 'pht': 3726}}" where mtr_portfolio_id = 25758674 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25758674 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767592, 0.056639902943478856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758674_08-08-2025_05_43_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25760026 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481143, 'mtr_portfolio_id': 25760026, 'created_at': datetime.datetime(2025, 8, 8, 5, 43, 59), 'result': '0.04692630333355236', 'result_long': None, 'result_double': None}] Qualite : 0.04692630333355236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25760026 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760026_08-08-2025_05_44_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25760026 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760026_08-08-2025_05_44_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760043, 'pht': 3726}}" where mtr_portfolio_id = 25760026 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25760026 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767593, 0.04692630333355236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760026_08-08-2025_05_44_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760043, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25760227 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481144, 'mtr_portfolio_id': 25760227, 'created_at': datetime.datetime(2025, 8, 8, 5, 44, 30), 'result': '0.05780181701851307', 'result_long': None, 'result_double': None}] Qualite : 0.05780181701851307 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25760227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760227_08-08-2025_05_44_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25760227 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760227_08-08-2025_05_44_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760243, 'pht': 3726}}" where mtr_portfolio_id = 25760227 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25760227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767594, 0.05780181701851307, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760227_08-08-2025_05_44_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760243, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25760615 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481145, 'mtr_portfolio_id': 25760615, 'created_at': datetime.datetime(2025, 8, 8, 5, 45, 29), 'result': '0.038276964433094716', 'result_long': None, 'result_double': None}] Qualite : 0.038276964433094716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25760615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760615_08-08-2025_05_45_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25760615 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760615_08-08-2025_05_45_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760631, 'pht': 3726}}" where mtr_portfolio_id = 25760615 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25760615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767595, 0.038276964433094716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760615_08-08-2025_05_45_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760631, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25760754 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481146, 'mtr_portfolio_id': 25760754, 'created_at': datetime.datetime(2025, 8, 8, 5, 45, 59), 'result': '0.040365376293878374', 'result_long': None, 'result_double': None}] Qualite : 0.040365376293878374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25760754 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760754_08-08-2025_05_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25760754 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760754_08-08-2025_05_46_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760790, 'pht': 3726}}" where mtr_portfolio_id = 25760754 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25760754 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767596, 0.040365376293878374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760754_08-08-2025_05_46_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760790, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25761096 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481147, 'mtr_portfolio_id': 25761096, 'created_at': datetime.datetime(2025, 8, 8, 5, 46, 27), 'result': '0.03718914596966215', 'result_long': None, 'result_double': None}] Qualite : 0.03718914596966215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25761096 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761096_08-08-2025_05_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25761096 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761096_08-08-2025_05_46_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25761113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761124, 'pht': 3726}}" where mtr_portfolio_id = 25761096 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25761096 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767597, 0.03718914596966215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761096_08-08-2025_05_46_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25761113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761124, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25761686 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481148, 'mtr_portfolio_id': 25761686, 'created_at': datetime.datetime(2025, 8, 8, 5, 47, 30), 'result': '0.04835590598654567', 'result_long': None, 'result_double': None}] Qualite : 0.04835590598654567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25761686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761686_08-08-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25761686 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761686_08-08-2025_05_47_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25761709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761710, 'pht': 3726}}" where mtr_portfolio_id = 25761686 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25761686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767598, 0.04835590598654567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761686_08-08-2025_05_47_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25761709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761710, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25762063 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481149, 'mtr_portfolio_id': 25762063, 'created_at': datetime.datetime(2025, 8, 8, 5, 48), 'result': '0.04617950590556369', 'result_long': None, 'result_double': None}] Qualite : 0.04617950590556369 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25762063 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762063_08-08-2025_05_48_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25762063 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762063_08-08-2025_05_48_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25762066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25762067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25762068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25762069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25762070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25762071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25762072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25762073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25762074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25762075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25762076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25762077, 'pht': 3726}}" where mtr_portfolio_id = 25762063 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25762063 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767599, 0.04617950590556369, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762063_08-08-2025_05_48_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25762066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25762067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25762068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25762069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25762070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25762071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25762072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25762073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25762074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25762075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25762076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25762077, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25762439 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481150, 'mtr_portfolio_id': 25762439, 'created_at': datetime.datetime(2025, 8, 8, 5, 48, 29), 'result': '0.035352667562424236', 'result_long': None, 'result_double': None}] Qualite : 0.035352667562424236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25762439 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762439_08-08-2025_05_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25762439 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762439_08-08-2025_05_48_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25762450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25762451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25762452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25762453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25762454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25762455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25762456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25762457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25762458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25762459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25762460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25762461, 'pht': 3726}}" where mtr_portfolio_id = 25762439 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25762439 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767600, 0.035352667562424236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762439_08-08-2025_05_48_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25762450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25762451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25762452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25762453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25762454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25762455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25762456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25762457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25762458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25762459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25762460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25762461, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25762853 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481151, 'mtr_portfolio_id': 25762853, 'created_at': datetime.datetime(2025, 8, 8, 5, 49, 28), 'result': '0.04641039741491348', 'result_long': None, 'result_double': None}] Qualite : 0.04641039741491348 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25762853 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762853_08-08-2025_05_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25762853 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762853_08-08-2025_05_49_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25762866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25762867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25762868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25762869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25762870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25762871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25762872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25762873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25762874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25762875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25762876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25762877, 'pht': 3726}}" where mtr_portfolio_id = 25762853 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25762853 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767601, 0.04641039741491348, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762853_08-08-2025_05_49_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25762866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25762867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25762868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25762869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25762870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25762871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25762872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25762873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25762874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25762875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25762876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25762877, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25763501 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481152, 'mtr_portfolio_id': 25763501, 'created_at': datetime.datetime(2025, 8, 8, 5, 49, 59), 'result': '0.03639713718736106', 'result_long': None, 'result_double': None}] Qualite : 0.03639713718736106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25763501 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25763501_08-08-2025_05_50_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25763501 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25763501_08-08-2025_05_50_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25763575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25763576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25763578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25763579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25763580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25763581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25763582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25763583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25763584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25763585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25763586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25763587, 'pht': 3726}}" where mtr_portfolio_id = 25763501 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25763501 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767602, 0.03639713718736106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25763501_08-08-2025_05_50_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25763575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25763576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25763578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25763579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25763580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25763581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25763582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25763583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25763584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25763585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25763586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25763587, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25764318 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481153, 'mtr_portfolio_id': 25764318, 'created_at': datetime.datetime(2025, 8, 8, 5, 50, 28), 'result': '0.03725354635181347', 'result_long': None, 'result_double': None}] Qualite : 0.03725354635181347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25764318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25764318_08-08-2025_05_50_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25764318 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25764318_08-08-2025_05_50_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25764337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25764338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25764339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25764340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25764341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25764342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25764343, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25764344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25764345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25764346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25764347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25764348, 'pht': 3726}}" where mtr_portfolio_id = 25764318 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25764318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767603, 0.03725354635181347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25764318_08-08-2025_05_50_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25764337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25764338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25764339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25764340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25764341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25764342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25764343, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25764344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25764345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25764346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25764347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25764348, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25765036 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481154, 'mtr_portfolio_id': 25765036, 'created_at': datetime.datetime(2025, 8, 8, 5, 51, 28), 'result': '0.035383451552653065', 'result_long': None, 'result_double': None}] Qualite : 0.035383451552653065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25765036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25765036_08-08-2025_05_51_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25765036 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25765036_08-08-2025_05_51_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25765079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25765080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25765081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25765082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25765083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25765084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25765085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25765087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25765088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25765089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25765090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25765091, 'pht': 3726}}" where mtr_portfolio_id = 25765036 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25765036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767604, 0.035383451552653065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25765036_08-08-2025_05_51_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25765079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25765080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25765081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25765082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25765083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25765084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25765085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25765087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25765088, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25765089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25765090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25765091, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25765705 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481155, 'mtr_portfolio_id': 25765705, 'created_at': datetime.datetime(2025, 8, 8, 5, 51, 57), 'result': '0.05300348372253814', 'result_long': None, 'result_double': None}] Qualite : 0.05300348372253814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25765705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25765705_08-08-2025_05_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25765705 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25765705_08-08-2025_05_52_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25765760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25765761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25765762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25765763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25765764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25765765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25765766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25765767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25765768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25765769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25765770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25765771, 'pht': 3726}}" where mtr_portfolio_id = 25765705 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25765705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767605, 0.05300348372253814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25765705_08-08-2025_05_52_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25765760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25765761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25765762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25765763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25765764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25765765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25765766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25765767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25765768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25765769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25765770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25765771, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25766413 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481156, 'mtr_portfolio_id': 25766413, 'created_at': datetime.datetime(2025, 8, 8, 5, 52, 30), 'result': '0.05557740515057717', 'result_long': None, 'result_double': None}] Qualite : 0.05557740515057717 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25766413 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25766413_08-08-2025_05_52_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25766413 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25766413_08-08-2025_05_52_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25766436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25766437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25766438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25766439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25766440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25766441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25766442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25766443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25766444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25766445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25766446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25766447, 'pht': 3726}}" where mtr_portfolio_id = 25766413 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25766413 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767606, 0.05557740515057717, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25766413_08-08-2025_05_52_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25766436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25766437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25766438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25766439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25766440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25766441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25766442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25766443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25766444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25766445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25766446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25766447, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25766933 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481157, 'mtr_portfolio_id': 25766933, 'created_at': datetime.datetime(2025, 8, 8, 5, 53, 28), 'result': '0.03322440109529996', 'result_long': None, 'result_double': None}] Qualite : 0.03322440109529996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25766933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25766933_08-08-2025_05_53_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25766933 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25766933_08-08-2025_05_53_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25766951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25766952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25766953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25766954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25766955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25766956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25766957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25766958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25766959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25766960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25766961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25766962, 'pht': 3726}}" where mtr_portfolio_id = 25766933 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25766933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767607, 0.03322440109529996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25766933_08-08-2025_05_53_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25766951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25766952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25766953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25766954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25766955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25766956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25766957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25766958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25766959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25766960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25766961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25766962, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25767591 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481158, 'mtr_portfolio_id': 25767591, 'created_at': datetime.datetime(2025, 8, 8, 5, 54), 'result': '0.06344285846836605', 'result_long': None, 'result_double': None}] Qualite : 0.06344285846836605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25767591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25767591_08-08-2025_05_54_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25767591 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25767591_08-08-2025_05_54_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25767624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25767625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25767626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25767627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25767628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25767629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25767630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25767631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25767632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25767633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25767634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25767635, 'pht': 3726}}" where mtr_portfolio_id = 25767591 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25767591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767608, 0.06344285846836605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25767591_08-08-2025_05_54_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25767624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25767625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25767626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25767627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25767628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25767629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25767630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25767631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25767632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25767633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25767634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25767635, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25769901 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481159, 'mtr_portfolio_id': 25769901, 'created_at': datetime.datetime(2025, 8, 8, 5, 54, 27), 'result': '0.04940984168158573', 'result_long': None, 'result_double': None}] Qualite : 0.04940984168158573 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25769901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25769901_08-08-2025_05_54_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25769901 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25769901_08-08-2025_05_54_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25769918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25769919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25769920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25769921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25769922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25769923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25769924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25769925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25769926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25769927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25769928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25769929, 'pht': 3726}}" where mtr_portfolio_id = 25769901 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25769901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767609, 0.04940984168158573, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25769901_08-08-2025_05_54_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25769918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25769919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25769920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25769921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25769922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25769923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25769924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25769925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25769926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25769927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25769928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25769929, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25770490 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481160, 'mtr_portfolio_id': 25770490, 'created_at': datetime.datetime(2025, 8, 8, 5, 55, 28), 'result': '0.05582168413083216', 'result_long': None, 'result_double': None}] Qualite : 0.05582168413083216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25770490 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25770490_08-08-2025_05_55_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25770490 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25770490_08-08-2025_05_55_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25770498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25770499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25770500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25770501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25770502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25770503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25770504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25770505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25770506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25770507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25770508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25770509, 'pht': 3726}}" where mtr_portfolio_id = 25770490 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25770490 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767610, 0.05582168413083216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25770490_08-08-2025_05_55_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25770498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25770499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25770500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25770501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25770502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25770503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25770504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25770505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25770506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25770507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25770508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25770509, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25770891 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481161, 'mtr_portfolio_id': 25770891, 'created_at': datetime.datetime(2025, 8, 8, 5, 55, 59), 'result': '0.03573235004739357', 'result_long': None, 'result_double': None}] Qualite : 0.03573235004739357 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25770891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25770891_08-08-2025_05_56_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25770891 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25770891_08-08-2025_05_56_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25770958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25770960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25770961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25770962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25770964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25770965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25770966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25770968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25770969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25770970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25770972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25770973, 'pht': 3726}}" where mtr_portfolio_id = 25770891 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25770891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767611, 0.03573235004739357, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25770891_08-08-2025_05_56_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25770958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25770960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25770961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25770962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25770964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25770965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25770966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25770968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25770969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25770970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25770972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25770973, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25771761 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481162, 'mtr_portfolio_id': 25771761, 'created_at': datetime.datetime(2025, 8, 8, 5, 56, 26), 'result': '0.038516393856762296', 'result_long': None, 'result_double': None}] Qualite : 0.038516393856762296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25771761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25771761_08-08-2025_05_56_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25771761 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25771761_08-08-2025_05_56_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25771779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25771780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25771781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25771782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25771783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25771784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25771785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25771786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25771787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25771788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25771789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25771790, 'pht': 3726}}" where mtr_portfolio_id = 25771761 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25771761 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767612, 0.038516393856762296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25771761_08-08-2025_05_56_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25771779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25771780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25771781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25771782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25771783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25771784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25771785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25771786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25771787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25771788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25771789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25771790, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25777243 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481163, 'mtr_portfolio_id': 25777243, 'created_at': datetime.datetime(2025, 8, 8, 5, 57, 30), 'result': '0.07909481006154376', 'result_long': None, 'result_double': None}] Qualite : 0.07909481006154376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25777243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777243_08-08-2025_05_57_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25777243 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777243_08-08-2025_05_57_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25777276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25777277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25777278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25777279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25777280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25777281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25777282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25777283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25777284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25777285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25777286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25777287, 'pht': 3726}}" where mtr_portfolio_id = 25777243 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25777243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767613, 0.07909481006154376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777243_08-08-2025_05_57_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25777276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25777277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25777278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25777279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25777280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25777281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25777282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25777283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25777284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25777285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25777286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25777287, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25777527 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481164, 'mtr_portfolio_id': 25777527, 'created_at': datetime.datetime(2025, 8, 8, 5, 58), 'result': '0.06084941402317276', 'result_long': None, 'result_double': None}] Qualite : 0.06084941402317276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25777527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777527_08-08-2025_05_58_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25777527 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777527_08-08-2025_05_58_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25777534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25777535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25777536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25777537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25777538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25777539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25777540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25777541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25777542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25777543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25777544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25777545, 'pht': 3726}}" where mtr_portfolio_id = 25777527 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25777527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767614, 0.06084941402317276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777527_08-08-2025_05_58_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25777534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25777535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25777536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25777537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25777538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25777539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25777540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25777541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25777542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25777543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25777544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25777545, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25777706 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481165, 'mtr_portfolio_id': 25777706, 'created_at': datetime.datetime(2025, 8, 8, 5, 59, 1), 'result': '0.04035332352234016', 'result_long': None, 'result_double': None}] Qualite : 0.04035332352234016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25777706 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777706_08-08-2025_05_59_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25777706 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777706_08-08-2025_05_59_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25777735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25777736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25777737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25777739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25777740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25777741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25777743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25777744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25777745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25777747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25777748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25777749, 'pht': 3726}}" where mtr_portfolio_id = 25777706 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25777706 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767615, 0.04035332352234016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25777706_08-08-2025_05_59_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25777735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25777736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25777737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25777739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25777740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25777741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25777743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25777744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25777745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25777747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25777748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25777749, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25778319 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481166, 'mtr_portfolio_id': 25778319, 'created_at': datetime.datetime(2025, 8, 8, 5, 59, 29), 'result': '0.04344723072183604', 'result_long': None, 'result_double': None}] Qualite : 0.04344723072183604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25778319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25778319_08-08-2025_05_59_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25778319 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25778319_08-08-2025_05_59_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25778368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25778370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25778371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25778372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25778373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25778374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25778375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25778376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25778377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25778378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25778379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25778380, 'pht': 3726}}" where mtr_portfolio_id = 25778319 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25778319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767616, 0.04344723072183604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25778319_08-08-2025_05_59_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25778368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25778370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25778371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25778372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25778373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25778374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25778375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25778376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25778377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25778378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25778379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25778380, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25778877 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481167, 'mtr_portfolio_id': 25778877, 'created_at': datetime.datetime(2025, 8, 8, 6, 0, 30), 'result': '0.04711874661284279', 'result_long': None, 'result_double': None}] Qualite : 0.04711874661284279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25778877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25778877_08-08-2025_06_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25778877 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25778877_08-08-2025_06_00_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25778905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25778906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25778907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25778908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25778909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25778910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25778911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25778912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25778913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25778914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25778915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25778916, 'pht': 3726}}" where mtr_portfolio_id = 25778877 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25778877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767617, 0.04711874661284279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25778877_08-08-2025_06_00_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25778905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25778906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25778907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25778908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25778909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25778910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25778911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25778912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25778913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25778914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25778915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25778916, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25779473 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481168, 'mtr_portfolio_id': 25779473, 'created_at': datetime.datetime(2025, 8, 8, 6, 0, 39), 'result': '0.033592297369932536', 'result_long': None, 'result_double': None}] Qualite : 0.033592297369932536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25779473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25779473_08-08-2025_06_00_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25779473 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25779473_08-08-2025_06_00_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25779482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25779483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25779484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25779485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25779486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25779487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25779488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25779489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25779490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25779491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25779492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25779493, 'pht': 3726}}" where mtr_portfolio_id = 25779473 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25779473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767618, 0.033592297369932536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25779473_08-08-2025_06_00_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25779482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25779483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25779484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25779485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25779486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25779487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25779488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25779489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25779490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25779491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25779492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25779493, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25779983 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481169, 'mtr_portfolio_id': 25779983, 'created_at': datetime.datetime(2025, 8, 8, 6, 1), 'result': '0.03194045425818255', 'result_long': None, 'result_double': None}] Qualite : 0.03194045425818255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25779983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25779983_08-08-2025_06_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25779983 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25779983_08-08-2025_06_01_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25780026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25780027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25780028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25780029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25780030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25780031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25780032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25780033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25780034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25780035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25780036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25780037, 'pht': 3726}}" where mtr_portfolio_id = 25779983 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25779983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767619, 0.03194045425818255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25779983_08-08-2025_06_01_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25780026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25780027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25780028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25780029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25780030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25780031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25780032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25780033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25780034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25780035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25780036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25780037, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25780683 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481170, 'mtr_portfolio_id': 25780683, 'created_at': datetime.datetime(2025, 8, 8, 6, 1, 27), 'result': '0.06787244806164984', 'result_long': None, 'result_double': None}] Qualite : 0.06787244806164984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25780683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25780683_08-08-2025_06_01_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25780683 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25780683_08-08-2025_06_01_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25780728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25780729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25780730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25780731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25780732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25780733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25780734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25780735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25780736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25780737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25780738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25780739, 'pht': 3726}}" where mtr_portfolio_id = 25780683 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25780683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767620, 0.06787244806164984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25780683_08-08-2025_06_01_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25780728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25780729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25780730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25780731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25780732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25780733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25780734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25780735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25780736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25780737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25780738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25780739, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25781262 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481171, 'mtr_portfolio_id': 25781262, 'created_at': datetime.datetime(2025, 8, 8, 6, 1, 57), 'result': '0.047070559166338836', 'result_long': None, 'result_double': None}] Qualite : 0.047070559166338836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25781262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25781262_08-08-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25781262 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25781262_08-08-2025_06_02_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25781275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25781276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25781277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25781278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25781279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25781280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25781281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25781282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25781283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25781284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25781285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25781286, 'pht': 3726}}" where mtr_portfolio_id = 25781262 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25781262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767621, 0.047070559166338836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25781262_08-08-2025_06_02_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25781275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25781276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25781277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25781278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25781279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25781280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25781281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25781282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25781283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25781284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25781285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25781286, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25781967 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481172, 'mtr_portfolio_id': 25781967, 'created_at': datetime.datetime(2025, 8, 8, 6, 2, 30), 'result': '0.024974428938959105', 'result_long': None, 'result_double': None}] Qualite : 0.024974428938959105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25781967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25781967_08-08-2025_06_02_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25781967 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25781967_08-08-2025_06_02_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25781976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25781977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25781978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25781979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25781980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25781981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25781982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25781983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25781984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25781985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25781986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25781987, 'pht': 3726}}" where mtr_portfolio_id = 25781967 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25781967 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767622, 0.024974428938959105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25781967_08-08-2025_06_02_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25781976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25781977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25781978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25781979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25781980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25781981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25781982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25781983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25781984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25781985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25781986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25781987, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25782437 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481173, 'mtr_portfolio_id': 25782437, 'created_at': datetime.datetime(2025, 8, 8, 6, 4), 'result': '0.040563926294392746', 'result_long': None, 'result_double': None}] Qualite : 0.040563926294392746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25782437 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25782437_08-08-2025_06_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25782437 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25782437_08-08-2025_06_04_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25782485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25782486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25782487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25782488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25782489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25782490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25782491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25782493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25782494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25782495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25782496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25782497, 'pht': 3726}}" where mtr_portfolio_id = 25782437 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25782437 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767623, 0.040563926294392746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25782437_08-08-2025_06_04_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25782485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25782486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25782487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25782488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25782489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25782490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25782491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25782493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25782494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25782495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25782496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25782497, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25783202 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481174, 'mtr_portfolio_id': 25783202, 'created_at': datetime.datetime(2025, 8, 8, 6, 4, 27), 'result': '0.024610874465345163', 'result_long': None, 'result_double': None}] Qualite : 0.024610874465345163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25783202 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25783202_08-08-2025_06_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25783202 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25783202_08-08-2025_06_04_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25783295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25783296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25783298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25783299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25783300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25783301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25783302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25783303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25783304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25783305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25783306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25783307, 'pht': 3726}}" where mtr_portfolio_id = 25783202 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25783202 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767624, 0.024610874465345163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25783202_08-08-2025_06_04_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25783295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25783296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25783298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25783299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25783300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25783301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25783302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25783303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25783304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25783305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25783306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25783307, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25783876 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481175, 'mtr_portfolio_id': 25783876, 'created_at': datetime.datetime(2025, 8, 8, 6, 5, 30), 'result': '0.04244086829750689', 'result_long': None, 'result_double': None}] Qualite : 0.04244086829750689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25783876 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25783876_08-08-2025_06_05_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25783876 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25783876_08-08-2025_06_05_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25783935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25783936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25783937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25783940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25783941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25783942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25783943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25783944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25783945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25783946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25783947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25783948, 'pht': 3726}}" where mtr_portfolio_id = 25783876 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25783876 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767625, 0.04244086829750689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25783876_08-08-2025_06_05_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25783935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25783936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25783937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25783940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25783941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25783942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25783943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25783944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25783945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25783946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25783947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25783948, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25784709 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481176, 'mtr_portfolio_id': 25784709, 'created_at': datetime.datetime(2025, 8, 8, 6, 5, 38), 'result': '0.04232395275527891', 'result_long': None, 'result_double': None}] Qualite : 0.04232395275527891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25784709 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25784709_08-08-2025_06_05_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25784709 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25784709_08-08-2025_06_05_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25784727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25784728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25784729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25784730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25784731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25784732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25784733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25784734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25784735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25784736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25784737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25784738, 'pht': 3726}}" where mtr_portfolio_id = 25784709 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25784709 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767626, 0.04232395275527891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25784709_08-08-2025_06_05_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25784727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25784728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25784729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25784730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25784731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25784732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25784733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25784734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25784735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25784736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25784737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25784738, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25785246 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481177, 'mtr_portfolio_id': 25785246, 'created_at': datetime.datetime(2025, 8, 8, 6, 5, 58), 'result': '0.03584810885540794', 'result_long': None, 'result_double': None}] Qualite : 0.03584810885540794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25785246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25785246_08-08-2025_06_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25785246 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25785246_08-08-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25785289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25785290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25785291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25785292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25785293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25785294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25785295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25785297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25785298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25785299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25785300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25785301, 'pht': 3726}}" where mtr_portfolio_id = 25785246 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25785246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767627, 0.03584810885540794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25785246_08-08-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25785289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25785290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25785291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25785292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25785293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25785294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25785295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25785297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25785298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25785299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25785300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25785301, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25786020 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481178, 'mtr_portfolio_id': 25786020, 'created_at': datetime.datetime(2025, 8, 8, 6, 6, 30), 'result': '0.05520980120862357', 'result_long': None, 'result_double': None}] Qualite : 0.05520980120862357 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25786020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25786020_08-08-2025_06_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25786020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25786020_08-08-2025_06_06_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25786065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25786066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25786067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25786068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25786069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25786070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25786071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25786072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25786073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25786074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25786075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25786076, 'pht': 3726}}" where mtr_portfolio_id = 25786020 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25786020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767628, 0.05520980120862357, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25786020_08-08-2025_06_06_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25786065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25786066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25786067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25786068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25786069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25786070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25786071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25786072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25786073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25786074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25786075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25786076, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25787724 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481179, 'mtr_portfolio_id': 25787724, 'created_at': datetime.datetime(2025, 8, 8, 6, 8), 'result': '0.056024152029013286', 'result_long': None, 'result_double': None}] Qualite : 0.056024152029013286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25787724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25787724_08-08-2025_06_08_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25787724 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25787724_08-08-2025_06_08_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25787730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25787731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25787732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25787733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25787734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25787735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25787736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25787737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25787738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25787739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25787740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25787741, 'pht': 3726}}" where mtr_portfolio_id = 25787724 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25787724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767629, 0.056024152029013286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25787724_08-08-2025_06_08_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25787730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25787731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25787732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25787733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25787734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25787735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25787736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25787737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25787738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25787739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25787740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25787741, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25788170 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481180, 'mtr_portfolio_id': 25788170, 'created_at': datetime.datetime(2025, 8, 8, 6, 8, 28), 'result': '0.040465643292710324', 'result_long': None, 'result_double': None}] Qualite : 0.040465643292710324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25788170 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25788170_08-08-2025_06_08_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25788170 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25788170_08-08-2025_06_08_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25788174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25788175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25788176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25788177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25788178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25788179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25788180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25788181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25788182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25788183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25788184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25788185, 'pht': 3726}}" where mtr_portfolio_id = 25788170 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25788170 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767630, 0.040465643292710324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25788170_08-08-2025_06_08_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25788174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25788175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25788176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25788177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25788178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25788179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25788180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25788181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25788182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25788183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25788184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25788185, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25788837 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481181, 'mtr_portfolio_id': 25788837, 'created_at': datetime.datetime(2025, 8, 8, 6, 9, 28), 'result': '0.05162548224385056', 'result_long': None, 'result_double': None}] Qualite : 0.05162548224385056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25788837 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25788837_08-08-2025_06_09_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25788837 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25788837_08-08-2025_06_09_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25788850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25788851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25788852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25788853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25788854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25788855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25788856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25788857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25788858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25788859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25788860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25788861, 'pht': 3726}}" where mtr_portfolio_id = 25788837 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25788837 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767631, 0.05162548224385056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25788837_08-08-2025_06_09_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25788850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25788851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25788852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25788853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25788854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25788855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25788856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25788857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25788858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25788859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25788860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25788861, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25789171 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481182, 'mtr_portfolio_id': 25789171, 'created_at': datetime.datetime(2025, 8, 8, 6, 9, 59), 'result': '0.04032951534897601', 'result_long': None, 'result_double': None}] Qualite : 0.04032951534897601 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25789171 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25789171_08-08-2025_06_10_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25789171 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25789171_08-08-2025_06_10_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25789206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25789207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25789208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25789209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25789210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25789211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25789212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25789213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25789214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25789215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25789216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25789217, 'pht': 3726}}" where mtr_portfolio_id = 25789171 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25789171 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767632, 0.04032951534897601, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25789171_08-08-2025_06_10_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25789206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25789207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25789208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25789209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25789210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25789211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25789212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25789213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25789214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25789215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25789216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25789217, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25789643 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481183, 'mtr_portfolio_id': 25789643, 'created_at': datetime.datetime(2025, 8, 8, 6, 10, 29), 'result': '0.05454412281479795', 'result_long': None, 'result_double': None}] Qualite : 0.05454412281479795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25789643 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25789643_08-08-2025_06_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25789643 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25789643_08-08-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25789660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25789661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25789662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25789663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25789664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25789665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25789666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25789667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25789668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25789669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25789670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25789671, 'pht': 3726}}" where mtr_portfolio_id = 25789643 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25789643 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767633, 0.05454412281479795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25789643_08-08-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25789660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25789661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25789662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25789663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25789664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25789665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25789666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25789667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25789668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25789669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25789670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25789671, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25790400 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481184, 'mtr_portfolio_id': 25790400, 'created_at': datetime.datetime(2025, 8, 8, 6, 10, 39), 'result': '0.06535326489009553', 'result_long': None, 'result_double': None}] Qualite : 0.06535326489009553 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25790400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25790400_08-08-2025_06_10_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25790400 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25790400_08-08-2025_06_10_42.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25790411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25790412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25790413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25790414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25790415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25790416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25790417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25790418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25790419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25790420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25790421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25790422, 'pht': 3726}}" where mtr_portfolio_id = 25790400 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25790400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767634, 0.06535326489009553, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25790400_08-08-2025_06_10_42.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25790411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25790412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25790413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25790414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25790415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25790416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25790417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25790418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25790419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25790420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25790421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25790422, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25790909 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481185, 'mtr_portfolio_id': 25790909, 'created_at': datetime.datetime(2025, 8, 8, 6, 11, 30), 'result': '0.02998594306231151', 'result_long': None, 'result_double': None}] Qualite : 0.02998594306231151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25790909 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25790909_08-08-2025_06_11_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25790909 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25790909_08-08-2025_06_11_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25790930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25790931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25790932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25790933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25790934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25790935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25790936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25790937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25790938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25790939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25790940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25790941, 'pht': 3726}}" where mtr_portfolio_id = 25790909 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25790909 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767635, 0.02998594306231151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25790909_08-08-2025_06_11_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25790930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25790931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25790932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25790933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25790934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25790935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25790936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25790937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25790938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25790939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25790940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25790941, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25791709 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481186, 'mtr_portfolio_id': 25791709, 'created_at': datetime.datetime(2025, 8, 8, 6, 12), 'result': '0.032418803603295895', 'result_long': None, 'result_double': None}] Qualite : 0.032418803603295895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25791709 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25791709_08-08-2025_06_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25791709 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25791709_08-08-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25791728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25791729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25791730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25791731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25791732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25791734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25791735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25791736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25791737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25791739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25791740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25791741, 'pht': 3726}}" where mtr_portfolio_id = 25791709 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25791709 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767636, 0.032418803603295895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25791709_08-08-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25791728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25791729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25791730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25791731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25791732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25791734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25791735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25791736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25791737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25791739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25791740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25791741, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25792151 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481187, 'mtr_portfolio_id': 25792151, 'created_at': datetime.datetime(2025, 8, 8, 6, 13), 'result': '0.024201754925554233', 'result_long': None, 'result_double': None}] Qualite : 0.024201754925554233 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25792151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25792151_08-08-2025_06_13_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25792151 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25792151_08-08-2025_06_13_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25792172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25792173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25792175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25792176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25792177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25792178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25792179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25792180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25792181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25792182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25792183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25792184, 'pht': 3726}}" where mtr_portfolio_id = 25792151 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25792151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767637, 0.024201754925554233, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25792151_08-08-2025_06_13_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25792172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25792173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25792175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25792176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25792177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25792178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25792179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25792180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25792181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25792182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25792183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25792184, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25792954 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481188, 'mtr_portfolio_id': 25792954, 'created_at': datetime.datetime(2025, 8, 8, 6, 13, 29), 'result': '0.03302285864999866', 'result_long': None, 'result_double': None}] Qualite : 0.03302285864999866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25792954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25792954_08-08-2025_06_13_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25792954 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25792954_08-08-2025_06_13_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25793047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25793048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25793049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25793050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25793051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25793052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25793053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25793054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25793055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25793058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25793060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25793062, 'pht': 3726}}" where mtr_portfolio_id = 25792954 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25792954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767638, 0.03302285864999866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25792954_08-08-2025_06_13_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25793047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25793048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25793049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25793050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25793051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25793052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25793053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25793054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25793055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25793058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25793060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25793062, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25793554 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481189, 'mtr_portfolio_id': 25793554, 'created_at': datetime.datetime(2025, 8, 8, 6, 14), 'result': '0.0338306171901215', 'result_long': None, 'result_double': None}] Qualite : 0.0338306171901215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25793554 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25793554_08-08-2025_06_14_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25793554 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25793554_08-08-2025_06_14_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25793596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25793597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25793598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25793599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25793600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25793601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25793602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25793603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25793604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25793605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25793606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25793607, 'pht': 3726}}" where mtr_portfolio_id = 25793554 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25793554 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767639, 0.0338306171901215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25793554_08-08-2025_06_14_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25793596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25793597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25793598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25793599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25793600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25793601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25793602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25793603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25793604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25793605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25793606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25793607, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25794723 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481190, 'mtr_portfolio_id': 25794723, 'created_at': datetime.datetime(2025, 8, 8, 6, 14, 58), 'result': '0.029638211606071597', 'result_long': None, 'result_double': None}] Qualite : 0.029638211606071597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25794723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25794723_08-08-2025_06_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25794723 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25794723_08-08-2025_06_14_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25794734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25794735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25794736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25794737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25794738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25794739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25794740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25794741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25794742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25794743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25794744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25794745, 'pht': 3726}}" where mtr_portfolio_id = 25794723 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25794723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767640, 0.029638211606071597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25794723_08-08-2025_06_14_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25794734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25794735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25794736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25794737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25794738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25794739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25794740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25794741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25794742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25794743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25794744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25794745, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25799503 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480323, 'mtr_portfolio_id': 25799503, 'created_at': datetime.datetime(2025, 8, 7, 23, 50, 59), 'result': '0.025918614584891905', 'result_long': None, 'result_double': None}] Qualite : 0.025918614584891905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25799503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799503_07-08-2025_23_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25799503 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799503_07-08-2025_23_51_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799513, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799516, 'pht': 3726}}" where mtr_portfolio_id = 25799503 and dashboard_run_id = 2093675 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25799503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13767641, 0.025918614584891905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799503_07-08-2025_23_51_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799513, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799516, '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 (25751495,25751863,25752229,25752699,25753911,25754209,25754559,25755213,25755780,25756256,25756736,25757389,25757891,25758372,25758674,25760026,25760227,25760615,25760754,25761096,25761686,25762063,25762439,25762853,25763501,25764318,25765036,25765705,25766413,25766933,25767591,25769901,25770490,25770891,25771761,25777243,25777527,25777706,25778319,25778877,25779473,25779983,25780683,25781262,25781967,25782437,25783202,25783876,25784709,25785246,25786020,25787724,25788170,25788837,25789171,25789643,25790400,25790909,25791709,25792151,25792954,25793554,25794723,25799503) result : ((1375549261,), (1375549283,), (1375549607,), (1375549641,), (1375549656,), (1375549658,), (1375549804,), (1375549851,), (1375549888,), (1375549912,), (1375550243,), (1375550244,), (1375550266,), (1375550291,), (1375550426,), (1375550427,), (1375550428,), (1375550430,), (1375550433,), (1375550448,), (1375550449,), (1375550451,), (1375550454,), (1375550457,), (1375550460,), (1375550470,), (1375550471,), (1375550473,), (1375550534,), (1375550538,), (1375550539,), (1375550541,), (1375550544,), (1375550546,), (1375550653,), (1375550654,), (1375550655,), (1375550657,), (1375550660,), (1375550662,), (1375550676,), (1375550677,), (1375550678,), (1375550680,), (1375550768,), (1375550771,), (1375550775,), (1375550779,), (1375550784,), (1375550811,), (1375550851,), (1375550852,), (1375550853,), (1375550855,), (1375550872,), (1375550873,), (1375550898,), (1375550899,), (1375550900,), (1375550902,), (1375550914,), (1375550936,), (1375550937,), (1375550939,), (1375550942,), (1375550944,), (1375550952,), (1375551505,), (1375551419,), (1375551501,), (1375551572,), (1375551574,), (1375551577,), (1375551580,), (1375551583,), (1375551601,), (1375551602,), (1375551603,), (1375551605,), (1375551615,), (1375551616,), (1375551617,), (1375551619,), (1375551642,), (1375551643,), (1375551645,), (1375551648,), (1375551651,), (1375551653,), (1375551738,), (1375551760,), (1375551765,), (1375551766,), (1375551769,), (1375551785,), (1375551786,), (1375551787,), (1375551788,), (1375551799,), (1375551800,), (1375551801,), (1375551803,), (1375551804,), (1375551807,), (1375551816,), (1375551817,), (1375551819,), (1375551822,), (1375551826,), (1375551829,), (1375551839,), (1375551841,), (1375551844,), (1375551847,), (1375551854,), (1375551868,), (1375551932,), (1375551958,), (1375551988,), (1375552014,), (1375552039,), (1375552061,), (1375552185,), (1375552186,), (1375552209,), (1375552210,), (1375552215,), (1375552216,), (1375552219,), (1375552220,), (1375552223,), (1375552224,), (1375552225,), (1375552226,), (1375552227,), (1375552228,), (1375552229,), (1375552231,), (1375552234,), (1375552240,), (1375552261,), (1375552273,), (1375552275,), (1375552276,), (1375552278,), (1375552305,), (1375552312,), (1375552313,), (1375552315,), (1375552317,), (1375552319,), (1375552328,), (1375552330,), (1375552331,), (1375552334,), (1375552622,), (1375552613,), (1375552615,), (1375552617,), (1375552619,), (1375552635,), (1375552636,), (1375552643,), (1375552653,), (1375552656,), (1375552701,), (1375552702,), (1375552703,), (1375552704,), (1375552727,), (1375552728,), (1375552729,), (1375552731,), (1375552735,), (1375552738,), (1375552761,), (1375552762,), (1375552763,), (1375552765,), (1375552782,), (1375552789,), (1375552790,), (1375552794,), (1375552797,), (1375552800,), (1375552810,), (1375552819,), (1375552822,), (1375552826,), (1375552830,), (1375552833,), (1375552848,), (1375552849,), (1375552850,), (1375552862,), (1375552863,), (1375552864,), (1375552866,), (1375552869,), (1375552872,), (1375552884,), (1375552885,), (1375552886,), (1375552888,), (1375552921,), (1375552922,), (1375552923,), (1375552926,), (1375552929,), (1375552931,), (1375552941,), (1375552942,), (1375552943,), (1375552944,), (1375552946,), (1375552949,), (1375552971,), (1375552972,), (1375552973,), (1375552988,), (1375552989,), (1375552991,), (1375552995,), (1375552997,), (1375553001,), (1375553016,), (1375553018,), (1375553021,), (1375553024,), (1375553026,), (1375553029,), (1375553032,), (1375553033,), (1375553051,), (1375553045,), (1375553046,), (1375553048,), (1375553061,), (1375553066,), (1375553078,), (1375553094,), (1375553098,), (1375553108,), (1375553133,), (1375553134,), (1375553135,), (1375553137,), (1375553141,), (1375553144,), (1375553164,), (1375553165,), (1375553182,), (1375553186,), (1375553192,), (1375553193,), (1375553195,), (1375553233,), (1375553234,), (1375553235,), (1375553236,), (1375553252,), (1375553253,), (1375553254,), (1375553256,), (1375553275,), (1375553276,), (1375553277,), (1375553279,), (1375553284,), (1375553286,), (1375553306,), (1375553307,), (1375553308,), (1375553312,), (1375553316,), (1375553323,), (1375553343,), (1375553345,), (1375553348,), (1375553352,), (1375553354,), (1375553358,), (1375553363,), (1375553365,), (1375553367,), (1375553370,), (1375553372,), (1375553374,), (1375553424,), (1375553446,), (1375553469,), (1375553491,), (1375553517,), (1375553546,), (1375553639,), (1375553663,), (1375553686,), (1375553689,), (1375553701,), (1375553725,), (1375553766,), (1375553772,), (1375553776,), (1375553777,), (1375555859,), (1375555856,), (1375555857,), (1375555858,), (1375555870,), (1375555871,), (1375555872,), (1375555873,), (1375555885,), (1375555886,), (1375555887,), (1375555888,), (1375555900,), (1375555901,), (1375555902,), (1375555903,), (1375555917,), (1375555921,), (1375555923,), (1375555948,), (1375555950,), (1375555952,), (1375555956,), (1375555960,), (1375555963,), (1375555983,), (1375555984,), (1375555998,), (1375555999,), (1375556000,), (1375556022,), (1375556023,), (1375556024,), (1375556025,), (1375556027,), (1375556051,), (1375556052,), (1375556053,), (1375556055,), (1375556058,), (1375556061,), (1375556081,), (1375556082,), (1375556083,), (1375556086,), (1375556105,), (1375556106,), (1375556107,), (1375556109,), (1375556112,), (1375556130,), (1375556131,), (1375556132,), (1375556134,), (1375556137,), (1375556146,), (1375556148,), (1375556149,), (1375556150,), (1375556152,), (1375556171,), (1375556169,), (1375556170,), (1375556192,), (1375556193,), (1375556194,), (1375556195,), (1375556197,), (1375556200,), (1375556213,), (1375556214,), (1375556215,), (1375556218,), (1375556222,), (1375556236,), (1375556237,), (1375556238,), (1375556239,), (1375556241,), (1375556245,), (1375556263,), (1375556268,), (1375556269,), (1375556289,), (1375556290,), (1375556291,), (1375556292,), (1375556295,), (1375556320,), (1375556321,), (1375556322,), (1375556328,), (1375556336,), (1375556356,), (1375556357,), (1375556358,), (1375556360,), (1375556375,), (1375556376,), (1375556377,), (1375556382,), (1375556409,), (1375556410,), (1375556412,), (1375556416,), (1375556419,), (1375556422,), (1375556428,), (1375556430,), (1375556431,), (1375556432,), (1375556433,), (1375556434,), (1375556435,), (1375556437,), (1375556439,), (1375556459,), (1375556460,), (1375556477,), (1375556478,), (1375556479,), (1375556481,), (1375556484,), (1375556636,), (1375556696,), (1375556743,), (1375556790,), (1375556840,), (1375556976,), (1375556977,), (1375557020,), (1375557027,), (1375557064,), (1375557073,), (1375557383,), (1375557326,), (1375557362,), (1375557851,), (1375557898,), (1375557926,), (1375557954,), (1375557991,), (1375558038,), (1375558260,), (1375558261,), (1375558262,), (1375558264,), (1375558266,), (1375558437,), (1375558448,), (1375558449,), (1375558456,), (1375558526,), (1375558527,), (1375558528,), (1375558531,), (1375558555,), (1375558556,), (1375558557,), (1375558562,), (1375558564,), (1375558567,), (1375558580,), (1375558581,), (1375558582,), (1375558602,), (1375558603,), (1375558604,), (1375558605,), (1375558619,), (1375558620,), (1375558621,), (1375558642,), (1375558667,), (1375558692,), (1375558914,), (1375558938,), (1375558963,), (1375558987,), (1375559011,), (1375559020,), (1375559130,), (1375559154,), (1375559155,), (1375559174,), (1375559199,), (1375559200,), (1375559201,), (1375559202,), (1375559212,), (1375559213,), (1375559215,), (1375559219,), (1375559232,), (1375559233,), (1375559234,), (1375559236,), (1375559239,), (1375559248,), (1375559250,), (1375559251,), (1375559281,), (1375559278,), (1375559279,), (1375559280,), (1375559299,), (1375559300,), (1375559301,), (1375559302,), (1375559305,), (1375559308,), (1375559326,), (1375559332,), (1375559333,), (1375559334,), (1375559337,), (1375559340,), (1375559352,), (1375559353,), (1375559354,), (1375559355,), (1375559379,), (1375559383,), (1375559384,), (1375559385,), (1375559387,), (1375559409,), (1375559410,), (1375559411,), (1375559412,), (1375559416,), (1375559419,), (1375559439,), (1375559440,), (1375559442,), (1375559443,), (1375559458,), (1375559459,), (1375559460,), (1375559461,), (1375559462,), (1375559474,), (1375559475,), (1375559476,), (1375559477,), (1375559479,), (1375559488,), (1375559489,), (1375559490,), (1375559492,), (1375559495,), (1375559497,), (1375559520,), (1375559521,), (1375559523,), (1375559526,), (1375559532,), (1375559539,), (1375559547,), (1375559548,), (1375559552,), (1375559559,), (1375559561,), (1375559563,), (1375559569,), (1375559572,), (1375559576,), (1375559579,), (1375559581,), (1375559589,), (1375559590,), (1375559593,), (1375559594,), (1375559597,), (1375559598,), (1375559600,), (1375559602,), (1375559604,), (1375559605,), (1375559606,), (1375559607,), (1375559609,), (1375559610,), (1375559611,), (1375559612,), (1375559615,), (1375559617,), (1375559627,), (1375559628,), (1375559637,), (1375559639,), (1375559641,), (1375559643,), (1375559646,), (1375559671,), (1375559667,), (1375559668,), (1375559669,), (1375559670,), (1375559711,), (1375559712,), (1375559713,), (1375559714,), (1375559715,), (1375559731,), (1375559732,), (1375559734,), (1375559736,), (1375559750,), (1375559751,), (1375559753,), (1375559755,), (1375559758,), (1375559762,), (1375559772,), (1375559773,), (1375559774,), (1375559782,), (1375559783,), (1375559784,), (1375559805,), (1375559806,), (1375559807,), (1375559810,), (1375559823,), (1375559824,), (1375559825,), (1375559827,), (1375559829,), (1375559859,), (1375559867,), (1375559869,), (1375559884,), (1375559885,), (1375559886,), (1375559887,), (1375559905,), (1375559906,), (1375559907,), (1375559909,), (1375559911,), (1375559938,), (1375559939,), (1375559959,), (1375559961,), (1375559962,), (1375559964,), (1375559978,), (1375559979,), (1375560002,), (1375560003,), (1375560004,), (1375560005,), (1375560008,), (1375560015,), (1375560017,), (1375560018,), (1375560020,), (1375560022,), (1375560049,), (1375560041,), (1375560042,), (1375560043,), (1375560046,), (1375560074,), (1375560075,), (1375560076,), (1375560078,), (1375560100,), (1375560101,), (1375560102,), (1375560103,), (1375560105,), (1375560108,), (1375560118,), (1375560119,), (1375560120,), (1375560122,), (1375560124,), (1375560126,), (1375560141,), (1375560172,), (1375560174,), (1375560175,), (1375560179,), (1375560202,), (1375560203,), (1375560204,), (1375560221,), (1375560222,), (1375560223,), (1375560224,), (1375560257,), (1375560258,), (1375560274,), (1375560275,), (1375560276,), (1375560278,), (1375560282,), (1375560285,), (1375560305,), (1375560306,), (1375560481,), (1375560504,), (1375560527,), (1375560548,), (1375561482,), (1375561553,), (1375561587,), (1375561612,), (1375561698,), (1375561722,), (1375561734,), (1375561738,), (1375561763,), (1375562004,), (1375561943,), (1375561978,), (1375562149,), (1375562150,), (1375562151,), (1375562159,), (1375562167,), (1375562176,), (1375562186,), (1375562187,), (1375562188,), (1375562189,), (1375562211,), (1375562212,), (1375562213,), (1375562214,), (1375562224,), (1375562225,), (1375562226,), (1375562227,), (1375562228,), (1375562231,), (1375562246,), (1375562247,), (1375562248,), (1375562249,), (1375562266,), (1375562267,), (1375562331,), (1375562332,), (1375562349,), (1375562350,), (1375562351,), (1375562352,), (1375562354,), (1375562376,), (1375562377,), (1375562378,), (1375562379,), (1375562408,), (1375562409,), (1375562410,), (1375562412,), (1375562416,), (1375562437,), (1375562439,), (1375562440,), (1375562443,), (1375562446,), (1375562490,), (1375562491,), (1375562492,), (1375562493,), (1375562495,), (1375562511,), (1375562512,), (1375562523,), (1375562532,), (1375562538,), (1375562548,), (1375562550,), (1375562551,), (1375562576,), (1375562569,), (1375562570,), (1375562571,), (1375562573,), (1375562590,), (1375562591,), (1375562594,), (1375562602,), (1375562608,), (1375562620,), (1375562636,), (1375562637,), (1375562638,), (1375562639,), (1375562658,), (1375562672,), (1375562673,), (1375562674,), (1375562702,), (1375562703,), (1375562704,), (1375562706,), (1375562708,), (1375562711,), (1375562727,), (1375562730,), (1375562732,), (1375562735,), (1375562739,), (1375562746,), (1375562747,), (1375562748,), (1375562749,), (1375562752,), (1375562772,), (1375562775,), (1375562776,), (1375562777,), (1375562780,), (1375562795,), (1375562797,), (1375562799,), (1375562803,), (1375562807,), (1375562811,), (1375562820,), (1375562821,), (1375562822,), (1375562823,), (1375562852,), (1375562853,), (1375562854,), (1375562869,), (1375562870,), (1375562871,), (1375562872,), (1375562873,), (1375562885,), (1375562886,), (1375562887,), (1375562889,), (1375562891,), (1375562908,), (1375562910,), (1375562911,), (1375562966,), (1375562944,), (1375562946,), (1375562949,), (1375562955,), (1375562985,), (1375562989,), (1375562990,), (1375562991,), (1375562993,), (1375562996,), (1375563010,), (1375563011,), (1375563012,), (1375563024,), (1375563025,), (1375563027,), (1375563028,), (1375563042,), (1375563043,), (1375563044,), (1375563045,), (1375563067,), (1375563068,), (1375563069,), (1375563070,), (1375563073,), (1375563092,), (1375563151,), (1375563152,), (1375563153,), (1375563154,), (1375563156,), (1375563158,), (1375563180,), (1375563181,), (1375563182,), (1375563183,), (1375563185,), (1375563188,), (1375563205,), (1375563212,), (1375563214,), (1375563217,), (1375563220,), (1375563242,), (1375563243,), (1375563244,), (1375563246,), (1375563249,), (1375563252,), (1375563270,), (1375563271,), (1375563272,), (1375563274,), (1375563277,), (1375563319,), (1375563320,), (1375563321,), (1375563324,), (1375563343,), (1375563344,), (1375563345,), (1375563347,), (1375563359,), (1375563361,), (1375563365,), (1375563369,), (1375563372,), (1375563397,), (1375563386,), (1375563387,), (1375563388,), (1375563390,), (1375563410,), (1375563411,), (1375563412,), (1375563414,), (1375563435,), (1375563437,), (1375563439,), (1375563442,), (1375563445,), (1375563461,), (1375563462,), (1375563463,), (1375563482,), (1375563483,), (1375563484,), (1375563489,), (1375563492,), (1375563525,), (1375563526,), (1375563527,), (1375563529,), (1375563532,), (1375563554,), (1375563555,), (1375563556,), (1375563558,), (1375563577,), (1375563579,), (1375563580,), (1375563582,), (1375563584,), (1375563596,), (1375563598,), (1375563599,), (1375563602,), (1375563605,), (1375563623,), (1375563625,), (1375563629,), (1375563633,), (1375563637,), (1375563639,), (1375563645,), (1375563646,), (1375563647,), (1375563649,), (1375563652,), (1375563663,), (1375563664,), (1375563665,), (1375563667,), (1375563669,), (1375563672,), (1375563841,), (1375563863,), (1375563888,), (1375563914,), (1375563936,), (1375563959,), (1375564058,), (1375564083,), (1375564107,), (1375564137,), (1375564840,), (1375564885,), (1375564928,), (1375564964,), (1375565000,), (1375565037,), (1375565350,), (1375565262,), (1375565276,), (1375565305,), (1375565339,), (1375565609,), (1375565630,), (1375565759,), (1375565761,), (1375565764,), (1375565767,), (1375565769,), (1375565791,), (1375565792,), (1375565795,), (1375565798,), (1375565801,), (1375565803,), (1375565811,), (1375565814,), (1375565820,), (1375565822,), (1375565826,), (1375565830,), (1375565832,), (1375565835,), (1375565857,), (1375565865,), (1375565867,), (1375565902,), (1375565904,), (1375565930,), (1375565940,), (1375565944,), (1375565946,), (1375565961,), (1375565963,), (1375565965,), (1375565967,), (1375565982,), (1375568640,), (1375569350,), (1375569386,), (1375569387,), (1375569457,), (1375569499,), (1375569501,), (1375569517,), (1375569566,), (1375569569,), (1375569572,), (1375569592,), (1375569595,), (1375569598,), (1375569610,), (1375569614,), (1375569646,), (1375569647,), (1375569648,), (1375569683,), (1375569685,), (1375569686,), (1375569688,), (1375569700,), (1375569737,), (1375569732,), (1375569734,), (1375569735,), (1375569753,), (1375569755,), (1375569757,), (1375569763,), (1375569772,), (1375569787,), (1375569789,), (1375569790,), (1375569792,), (1375569794,), (1375569806,), (1375569808,), (1375569809,), (1375569811,), (1375569813,), (1375569815,), (1375569825,), (1375569827,), (1375569828,), (1375569830,), (1375569833,), (1375569868,), (1375569872,), (1375569873,), (1375569875,), (1375569898,), (1375569901,), (1375569902,), (1375569904,), (1375569906,), (1375569908,), (1375569924,), (1375569927,), (1375569931,), (1375569934,), (1375569937,), (1375569985,), (1375569989,), (1375569992,), (1375569994,), (1375570015,), (1375570017,), (1375570020,), (1375570022,), (1375570045,), (1375570049,), (1375570051,), (1375570085,), (1375570087,), (1375570089,), (1375570091,), (1375570094,), (1375570105,), (1375570107,), (1375570109,), (1375570112,), (1375570116,), (1375570160,), (1375570165,), (1375570166,), (1375570168,), (1375570186,), (1375570189,), (1375570335,), (1375570334,), (1375570353,), (1375570354,), (1375570355,), (1375570357,), (1375570359,), (1375570361,), (1375570376,), (1375570377,), (1375570378,), (1375570380,), (1375570396,), (1375570397,), (1375570398,), (1375570400,), (1375570402,), (1375570427,), (1375570428,), (1375570429,), (1375570430,), (1375570432,), (1375570435,), (1375570453,), (1375570454,), (1375570455,), (1375570457,), (1375570474,), (1375570475,), (1375570476,), (1375570477,), (1375570479,), (1375570482,), (1375570505,), (1375570506,), (1375570507,), (1375570522,), (1375570524,), (1375570525,), (1375570527,), (1375570530,), (1375570533,), (1375570561,), (1375570552,), (1375570555,), (1375570556,), (1375570558,), (1375570583,), (1375570587,), (1375570599,), (1375570604,), (1375570617,), (1375570620,), (1375570631,), (1375570637,), (1375570643,), (1375570645,), (1375570663,), (1375570664,), (1375570665,), (1375570666,), (1375570668,), (1375570671,), (1375570694,), (1375570695,), (1375570696,), (1375570698,), (1375570700,), (1375570751,), (1375570756,), (1375570761,), (1375570763,), (1375570766,), (1375570783,), (1375570784,), (1375570785,), (1375570787,), (1375570789,), (1375570805,), (1375570806,), (1375570807,), (1375570809,), (1375570834,), (1375570835,), (1375570836,), (1375570838,), (1375570860,), (1375570861,), (1375570862,), (1375570864,), (1375570866,), (1375570869,), (1375570884,), (1375570886,), (1375570887,), (1375570903,), (1375570904,), (1375570905,), (1375570939,), (1375571430,), (1375572233,), (1375572101,), (1375572143,), (1375572191,), (1375572778,), (1375572803,), (1375572813,), (1375572828,), (1375572842,), (1375572986,), (1375572988,), (1375572990,), (1375572992,), (1375573009,), (1375573011,), (1375573012,), (1375573015,), (1375573018,), (1375573021,), (1375573027,), (1375573029,), (1375573031,), (1375573054,), (1375573055,), (1375573057,), (1375573060,), (1375573062,), (1375573065,), (1375573084,), (1375573091,), (1375573098,), (1375573100,), (1375573103,), (1375573117,), (1375573119,), (1375573121,), (1375573125,), (1375573126,), (1375573130,), (1375573149,), (1375573151,), (1375573153,), (1375573170,), (1375573172,), (1375573174,), (1375573177,), (1375573216,), (1375573219,), (1375573221,), (1375573243,), (1375573251,), (1375573255,), (1375573271,), (1375573273,), (1375573294,), (1375573297,), (1375573298,), (1375573323,), (1375573327,), (1375573328,), (1375573331,), (1375573334,), (1375573359,), (1375573351,), (1375573353,), (1375573354,), (1375573356,), (1375573373,), (1375573374,), (1375573400,), (1375573401,), (1375573420,), (1375573421,), (1375573422,), (1375573424,), (1375573427,), (1375573444,), (1375573445,), (1375573446,), (1375573448,), (1375573485,), (1375573486,), (1375573487,), (1375573489,), (1375573491,), (1375573493,), (1375573515,), (1375573516,), (1375573517,), (1375573519,), (1375573537,), (1375573540,), (1375573541,), (1375573542,), (1375573545,), (1375573548,), (1375573568,), (1375573569,), (1375573570,), (1375573572,), (1375573574,), (1375573592,), (1375573593,), (1375573608,), (1375573609,), (1375573610,), (1375573612,), (1375573615,), (1375573637,), (1375573638,), (1375573640,), (1375573643,), (1375573646,), (1375573672,), (1375573675,), (1375573685,), (1375573687,), (1375573689,), (1375573692,), (1375573703,), (1375573704,), (1375573705,), (1375573728,), (1375573734,), (1375573737,), (1375573739,), (1375573781,), (1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,), (1375573943,), (1375573944,), (1375573945,), (1375573947,), (1375574002,), (1375574003,), (1375574004,), (1375574006,), (1375574027,), (1375574028,), (1375574029,), (1375574031,), (1375574034,), (1375574059,), (1375574060,), (1375574061,), (1375574063,), (1375574085,), (1375574086,), (1375574087,), (1375574088,), (1375574091,), (1375574094,), (1375574106,), (1375574107,), (1375574108,), (1375574112,), (1375574128,), (1375574129,), (1375574130,), (1375574132,), (1375574134,), (1375574137,), (1375574152,), (1375574173,), (1375574180,), (1375574183,), (1375574188,), (1375574191,), (1375574195,), (1375574206,), (1375574209,), (1375574222,), (1375574212,), (1375574213,), (1375574214,), (1375574216,), (1375574219,), (1375574242,), (1375574243,), (1375574244,), (1375574246,), (1375574250,), (1375574254,), (1375574284,), (1375574289,), (1375574290,), (1375574292,), (1375574316,), (1375574317,), (1375574318,), (1375574320,), (1375574322,), (1375574326,), (1375574341,), (1375574342,), (1375574343,), (1375574348,), (1375574388,), (1375574389,), (1375574390,), (1375574392,), (1375574394,), (1375574412,), (1375574415,), (1375574424,), (1375574425,), (1375574429,), (1375574431,), (1375574459,), (1375574460,), (1375574461,), (1375574463,), (1375574467,), (1375574502,), (1375574504,), (1375574505,), (1375574507,), (1375574511,), (1375574514,), (1375574529,), (1375574535,), (1375574536,), (1375574538,), (1375574540,), (1375574554,), (1375574556,), (1375574557,), (1375574559,), (1375574561,), (1375574597,), (1375574619,), (1375574643,), (1375574668,), (1375574692,), (1375574940,), (1375574941,), (1375574942,), (1375574955,), (1375575065,), (1375575084,), (1375575109,), (1375575132,), (1375575160,), (1375575186,), (1375575276,), (1375575300,), (1375575330,), (1375575462,), (1375575448,), (1375575452,), (1375575455,), (1375575457,), (1375575605,), (1375575632,), (1375575650,), (1375575656,), (1375575659,), (1375575662,), (1375575675,), (1375575678,), (1375575679,), (1375575681,), (1375575683,), (1375575684,), (1375575851,), (1375575874,), (1375575899,), (1375575922,), (1375576116,), (1375576141,), (1375576155,), (1375576157,), (1375576160,), (1375576178,), (1375576248,), (1375576250,), (1375576252,), (1375576254,), (1375576257,), (1375576273,), (1375576275,), (1375576277,), (1375576279,), (1375576282,), (1375576292,), (1375576295,), (1375576296,), (1375576298,), (1375576301,), (1375576305,), (1375576338,), (1375576340,), (1375576342,), (1375576344,), (1375576347,), (1375576370,), (1375576375,), (1375576382,), (1375576387,), (1375576389,), (1375576392,), (1375576499,), (1375576505,), (1375576508,), (1375576512,), (1375576519,), (1375576532,), (1375576534,), (1375576538,), (1375576541,), (1375576544,), (1375576547,), (1375576565,), (1375576576,), (1375576597,), (1375576621,), (1375576631,), (1375576647,), (1375576751,), (1375576775,), (1375576780,), (1375576891,), (1375576892,), (1375576895,), (1375576898,), (1375576901,), (1375576929,), (1375576924,), (1375576926,), (1375576927,), (1375577038,), (1375577061,), (1375577098,), (1375577111,), (1375577113,), (1375577165,), (1375577168,), (1375577169,), (1375577172,), (1375577174,), (1375577329,), (1375577333,), (1375577341,), (1375577350,), (1375577354,), (1375577386,), (1375577391,), (1375577392,), (1375577394,), (1375577397,), (1375577399,), (1375577427,), (1375577429,), (1375577431,), (1375577433,), (1375577436,), (1375577677,), (1375577704,), (1375577733,), (1375577759,), (1375577786,), (1375577908,), (1375577917,), (1375577930,), (1375577932,), (1375577948,), (1375578053,), (1375578056,), (1375578059,), (1375578063,), (1375578084,), (1375578086,), (1375578087,), (1375578090,), (1375578094,), (1375578097,), (1375578132,), (1375578137,), (1375578141,), (1375578144,), (1375578146,), (1375578304,), (1375578330,), (1375578356,), (1375578381,), (1375578424,), (1375578470,), (1375578928,), (1375578933,), (1375578949,), (1375578958,), (1375579048,), (1375579061,), (1375579063,), (1375579066,), (1375579068,), (1375579071,), (1375579083,), (1375579086,), (1375579088,), (1375579089,), (1375579093,), (1375579129,), (1375579120,), (1375579124,), (1375579126,), (1375579150,), (1375579152,), (1375579153,), (1375579156,), (1375579159,), (1375579162,), (1375579271,), (1375579273,), (1375579287,), (1375579297,), (1375579396,), (1375579403,), (1375579404,), (1375579406,), (1375579409,), (1375579412,), (1375579423,), (1375579425,), (1375579428,), (1375579431,), (1375579456,), (1375579457,), (1375579458,), (1375579460,), (1375579463,), (1375579465,), (1375579476,), (1375579477,), (1375579478,), (1375579480,), (1375579527,), (1375579528,), (1375579884,), (1375579885,), (1375579921,), (1375579923,), (1375579924,), (1375580099,), (1375580100,), (1375580180,), (1375580229,), (1375580279,), (1375580322,), (1375580383,), (1375580452,), (1375580560,), (1375580591,), (1375580604,), (1375580778,), (1375580779,), (1375580781,), (1375580797,), (1375580829,), (1375580939,), (1375580928,), (1375580929,), (1375580930,), (1375580932,), (1375580965,), (1375580966,), (1375580967,), (1375580969,), (1375580973,), (1375581000,), (1375581013,), (1375581037,), (1375581054,), (1375581057,), (1375581059,), (1375581081,), (1375581082,), (1375581083,), (1375581085,), (1375581100,), (1375581102,), (1375581103,), (1375581105,), (1375581109,), (1375581237,), (1375581261,), (1375581287,), (1375581329,), (1375581387,), (1375581624,), (1375581625,), (1375581626,), (1375581652,), (1375581669,), (1375581689,), (1375581703,), (1375584217,), (1375584211,), (1375584234,), (1375584236,), (1375584237,), (1375584238,), (1375584239,), (1375584254,), (1375584257,), (1375584262,), (1375584272,), (1375584280,), (1375584284,), (1375584308,), (1375584310,), (1375584312,), (1375584314,), (1375584317,), (1375584324,), (1375584408,), (1375584419,), (1375584421,), (1375584437,), (1375584439,), (1375584446,), (1375584493,), (1375584494,), (1375584512,), (1375584517,), (1375584519,), (1375584533,), (1375584630,), (1375584633,), (1375584636,), (1375584639,), (1375584642,), (1375584643,), (1375584660,), (1375584661,), (1375584663,), (1375584664,), (1375584666,), (1375584667,), (1375584670,), (1375584671,), (1375584673,), (1375584675,), (1375584693,), (1375584697,), (1375584856,), (1375584883,), (1375584908,), (1375584934,), (1375584957,), (1375584985,), (1375585037,), (1375585046,), (1375585063,), (1375585081,), (1375585099,), (1375585110,), (1375585111,), (1375585123,), (1375585130,), (1375585133,), (1375585175,), (1375585177,), (1375585179,), (1375585182,), (1375585192,), (1375585577,), (1375585661,), (1375585724,), (1375585799,), (1375585870,), (1375585930,), (1375586203,), (1375586231,), (1375586255,), (1375586291,), (1375586321,), (1375586652,), (1375586664,), (1375586682,), (1375586695,), (1375586718,), (1375586726,), (1375586785,), (1375586788,), (1375586791,), (1375586820,), (1375586838,), (1375586851,), (1375586841,), (1375586843,), (1375586845,), (1375586848,), (1375586871,), (1375586874,), (1375586876,), (1375586886,), (1375586891,), (1375586971,), (1375586973,), (1375586975,), (1375587003,), (1375587006,), (1375587008,), (1375587011,), (1375587014,), (1375587081,), (1375587105,), (1375587129,), (1375587143,), (1375587146,), (1375587149,), (1375587182,), (1375587185,), (1375587187,), (1375587190,), (1375587226,), (1375587228,), (1375587229,), (1375587231,), (1375587234,), (1375587237,), (1375587259,), (1375587261,), (1375587265,), (1375587267,), (1375587270,), (1375587290,), (1375587292,), (1375587293,), (1375587294,), (1375587297,), (1375587327,), (1375587341,), (1375587347,), (1375587353,), (1375587357,), (1375587396,), (1375587437,), (1375587438,), (1375587443,), (1375587478,), (1375587481,), (1375587486,), (1375587522,), (1375587591,), (1375587623,), (1375587628,), (1375587671,), (1375587675,), (1375587677,), (1375587680,), (1375587758,), (1375587807,), (1375587808,), (1375587810,), (1375587815,), (1375587817,), (1375587824,), (1375587825,), (1375587827,), (1375587831,), (1375587835,), (1375587864,), (1375587871,), (1375587873,), (1375587874,), (1375587876,), (1375587880,), (1375588016,), (1375588012,), (1375588013,), (1375588014,), (1375588062,), (1375588113,), (1375588192,), (1375588193,), (1375588215,), (1375588216,), (1375588217,), (1375588220,), (1375588225,), (1375588232,), (1375588251,), (1375588252,), (1375588263,), (1375588270,), (1375588300,), (1375588370,), (1375588371,), (1375588377,), (1375588404,), (1375588406,), (1375588409,), (1375588458,), (1375588459,), (1375588461,), (1375588464,), (1375588466,), (1375588470,), (1375588485,), (1375588489,), (1375588491,), (1375588492,), (1375588494,), (1375588495,), (1375588497,), (1375588500,), (1375588503,), (1375588517,), (1375588525,), (1375588526,), (1375588528,), (1375588537,), (1375588570,), (1375588585,), (1375588586,), (1375588588,), (1375588590,), (1375588593,), (1375588633,), (1375588645,), (1375588646,), (1375588648,), (1375588653,), (1375588678,), (1375588682,), (1375588689,), (1375588695,), (1375588699,), (1375588702,), (1375588710,), (1375588712,), (1375588713,), (1375588714,), (1375588715,), (1375588736,), (1375588725,), (1375588729,), (1375588733,), (1375588760,), (1375588761,), (1375588762,), (1375588764,), (1375588766,), (1375588788,), (1375588792,), (1375588793,), (1375588795,), (1375588797,), (1375588823,), (1375588837,), (1375588838,), (1375588839,), (1375588840,), (1375588844,), (1375588867,), (1375588873,), (1375588874,), (1375588876,), (1375588880,), (1375588882,), (1375588900,), (1375588923,), (1375588945,), (1375588970,), (1375589068,), (1375589070,), (1375589071,), (1375589073,), (1375589076,), (1375589085,), (1375589086,), (1375589087,), (1375589288,), (1375589311,), (1375589468,), (1375589500,), (1375589502,), (1375589505,), (1375589509,), (1375589512,), (1375589578,), (1375589592,), (1375589613,), (1375589637,), (1375589799,), (1375589818,), (1375589847,), (1375589866,), (1375589867,), (1375589868,), (1375589870,), (1375589872,), (1375590415,), (1375590443,), (1375590475,), (1375590507,), (1375598782,), (1375598762,), (1375598908,), (1375598909,), (1375598910,), (1375598912,), (1375598914,), (1375598931,), (1375598932,), (1375599027,), (1375599056,), (1375599085,), (1375599100,), (1375599182,), (1375599184,), (1375599202,), (1375599346,), (1375599500,), (1375599705,), (1375600725,), (1375601795,), (1375602530,), (1375602563,), (1375603356,), (1375603370,), (1375603983,), (1375604038,), (1375604098,), (1375604148,), (1375604184,), (1375604677,), (1375604536,), (1375604588,), (1375604638,), (1375604980,), (1375605064,), (1375605068,), (1375605073,), (1375605080,), (1375605089,), (1375605145,), (1375605162,), (1375605868,), (1375605903,), (1375605927,), (1375605950,), (1375606472,), (1375606514,), (1375606574,), (1375606602,), (1375606638,), (1375606670,), (1375606854,), (1375606882,), (1375606914,), (1375606938,), (1375606962,), (1375607317,), (1375607340,), (1375607688,), (1375607690,), (1375607696,), (1375607700,), (1375607703,), (1375607869,), (1375607870,), (1375608171,), (1375608197,), (1375608212,), (1375608213,), (1375608333,), (1375608471,), (1375608530,), (1375608577,), (1375608637,), (1375608790,), (1375608831,), (1375608832,), (1375608834,), (1375609002,), (1375609003,), (1375609004,), (1375609005,), (1375609007,), (1375609927,), (1375609982,), (1375610068,), (1375610128,), (1375610151,), (1375610174,), (1375610282,), (1375610314,), (1375610345,), (1375610396,), (1375610611,), (1375610403,), (1375610440,), (1375610487,), (1375610535,), (1375610586,), (1375610681,), (1375610701,), (1375610706,), (1375610730,), (1375610738,), (1375610743,), (1375610752,), (1375610755,), (1375610758,), (1375610760,), (1375610763,), (1375610815,), (1375610858,), (1375610942,), (1375610994,), (1375611049,), (1375611099,), (1375611306,), (1375611351,), (1375611413,), (1375611486,), (1375611558,), (1375611726,), (1375611761,), (1375611790,), (1375611865,), (1375611898,), (1375612045,), (1375612072,), (1375612076,), (1375612104,), (1375612131,), (1375612289,), (1375612317,), (1375612349,), (1375612381,), (1375612428,), (1375612475,), (1375612600,), (1375612602,), (1375612664,), (1375612678,), (1375612682,), (1375613005,), (1375613034,), (1375613038,), (1375613058,), (1375613536,), (1375613583,), (1375613627,), (1375613672,), (1375613702,), (1375614082,), (1375614129,), (1375614182,), (1375614250,), (1375614286,), (1375614446,), (1375614448,), (1375614451,), (1375614454,), (1375614456,), (1375614458,), (1375614492,), (1375614495,), (1375614498,), (1375614502,), (1375614505,), (1375614578,), (1375614603,), (1375614610,), (1375614631,), (1375614642,), (1375614647,), (1375614913,), (1375614949,), (1375614976,), (1375615008,), (1375615051,), (1375615078,), (1375615102,), (1375615114,), (1375615121,), (1375615131,), (1375615137,), (1375615234,), (1375615175,), (1375615178,), (1375615203,), (1375615228,), (1375615230,), (1375615351,), (1375615353,), (1375615386,), (1375615422,), (1375615527,), (1375615529,), (1375615530,), (1375615533,), (1375615545,), (1375615591,), (1375615754,), (1375615756,), (1375615759,), (1375615765,), (1375615789,), (1375616138,), (1375616162,), (1375616186,), (1375616209,), (1375616244,), (1375616315,), (1375616577,), (1375616638,), (1375616672,), (1375616702,), (1375616922,), (1375616942,), (1375616945,), (1375616985,), (1375616987,), (1375616989,), (1375617060,), (1375617063,), (1375617064,), (1375617066,), (1375617089,), (1375617164,), (1375617169,), (1375617171,), (1375617174,), (1375617176,), (1375617317,), (1375617341,), (1375617368,), (1375617396,), (1375617454,), (1375617495,), (1375617524,), (1375617527,), (1375617529,), (1375617551,), (1375617586,), (1375617600,), (1375617603,), (1375617607,), (1375617610,), (1375617612,), (1375617614,), (1375617638,), (1375617662,), (1375617688,), (1375617859,), (1375617860,), (1375617864,), (1375617865,), (1375617868,), (1375618024,), (1375618047,), (1375618640,), (1375618642,), (1375620200,), (1375661545,), (1375661792,), (1375661947,), (1375662055,), (1375662191,), (1375662287,), (1375662290,), (1375662606,), (1375662995,), (1375663278,), (1375663280,), (1375663282,), (1375663283,), (1375663305,), (1375663316,), (1375663320,), (1375663336,), (1375663378,), (1375663727,), (1375663756,), (1375663782,), (1375663805,), (1375663922,), (1375663924,), (1375663939,), (1375664061,), (1375664063,), (1375664065,), (1375664066,), (1375664068,), (1375664140,), (1375664141,), (1375664142,), (1375664144,), (1375664621,), (1375664654,), (1375664688,), (1375664738,), (1375664805,), (1375665160,), (1375665118,), (1375665123,), (1375665135,), (1375665343,), (1375665346,), (1375665347,), (1375665353,), (1375665375,), (1375665379,), (1375665382,), (1375665386,), (1375665389,), (1375665561,), (1375665588,), (1375665612,), (1375665639,), (1375665667,), (1375665692,), (1375665881,), (1375665882,), (1375665886,), (1375665940,), (1375666002,), (1375666078,), (1375666257,), (1375666282,), (1375666306,), (1375666333,), (1375666362,), (1375666398,), (1375666447,), (1375666474,), (1375666492,), (1375666495,), (1375666497,), (1375666499,), (1375666502,), (1375666573,), (1375666577,), (1375666580,), (1375666630,), (1375666802,), (1375666816,), (1375666875,), (1375666876,), (1375666877,), (1375666898,), (1375666927,), (1375667237,), (1375667265,), (1375667280,), (1375667283,), (1375667290,), (1375667317,), (1375667319,), (1375667321,), (1375667323,), (1375667325,), (1375667328,), (1375667480,), (1375667502,), (1375667526,), (1375667549,), (1375667582,), (1375667853,), (1375667855,), (1375667857,), (1375667860,), (1375667864,), (1375667866,), (1375668033,), (1375668034,), (1375668036,), (1375668057,), (1375668088,), (1375668115,), (1375668135,), (1375668138,), (1375668159,), (1375668480,), (1375668332,), (1375668387,), (1375668434,), (1375668762,), (1375668811,), (1375668837,), (1375668862,), (1375668890,), (1375668916,), (1375669167,), (1375669183,), (1375669205,), (1375669224,), (1375669251,), (1375669281,), (1375669414,), (1375669415,), (1375669416,), (1375669437,), (1375669439,), (1375669441,), (1375669443,), (1375669465,), (1375669586,), (1375669587,), (1375669588,), (1375669590,), (1375669595,), (1375669618,), (1375669620,), (1375669623,), (1375669630,), (1375669637,), (1375669756,), (1375669775,), (1375669814,), (1375669842,), (1375669883,), (1375669918,), (1375670263,), (1375670312,), (1375670343,), (1375670369,), (1375670395,), (1375670764,), (1375670780,), (1375670783,), (1375670787,), (1375670790,), (1375670794,), (1375670878,), (1375670904,), (1375670930,), (1375670956,), (1375670983,), (1375671331,), (1375671391,), (1375671441,), (1375671479,), (1375671495,), (1375671514,), (1375671706,), (1375671730,), (1375671755,), (1375671780,), (1375671809,), (1375671834,), (1375671942,), (1375671943,), (1375671944,), (1375671946,), (1375671974,), (1375671975,), (1375671977,), (1375671979,), (1375671982,), (1375672002,), (1375672084,), (1375672065,), (1375672075,), (1375672076,), (1375672078,), (1375672082,), (1375672100,), (1375672102,), (1375672104,), (1375672107,), (1375672111,), (1375672114,), (1375672130,), (1375672131,), (1375672132,), (1375672133,), (1375672154,), (1375672157,), (1375672160,), (1375672164,), (1375672190,), (1375672192,), (1375672194,), (1375672197,), (1375672198,), (1375672201,), (1375672216,), (1375672218,), (1375672220,), (1375672222,), (1375672224,), (1375672263,), (1375672265,), (1375672268,), (1375672271,), (1375672272,), (1375672297,), (1375672330,), (1375672332,), (1375672334,), (1375672337,), (1375672340,), (1375672345,), (1375672375,), (1375672377,), (1375672379,), (1375672381,), (1375672386,), (1375672389,), (1375672434,), (1375672458,), (1375672460,), (1375672693,), (1375673333,), (1375673770,), (1375673772,), (1375673773,), (1375673775,), (1375673896,), (1375673899,), (1375673901,), (1375673903,), (1375673906,), (1375673908,), (1375673921,), (1375673923,), (1375673937,), (1375673959,), (1375673964,), (1375673967,), (1375673977,), (1375673979,), (1375673984,), (1375673990,), (1375674003,), (1375674006,), (1375674012,), (1375674019,), (1375674112,), (1375674124,), (1375674129,), (1375674130,), (1375674134,), (1375674157,), (1375674243,), (1375674245,), (1375674246,), (1375674277,), (1375674278,), (1375674280,), (1375674292,), (1375674316,), (1375674328,), (1375674361,), (1375674362,), (1375674379,), (1375674403,), (1375674427,), (1375674581,), (1375674600,), (1375674603,), (1375674607,), (1375674610,), (1375674613,), (1375674739,), (1375674741,), (1375674744,), (1375674747,), (1375674751,), (1375674753,), (1375674759,), (1375674761,), (1375674763,), (1375674766,), (1375674768,), (1375674770,), (1375674793,), (1375674798,), (1375674801,), (1375674804,), (1375674808,), (1375674812,), (1375674897,), (1375675002,), (1375675028,), (1375675055,), (1375675085,), (1375675234,), (1375675239,), (1375675244,), (1375675248,), (1375675251,), (1375675257,), (1375675325,), (1375675318,), (1375675322,), (1375675360,), (1375675384,), (1375675408,), (1375675433,), (1375675460,), (1375675780,), (1375675815,), (1375675839,), (1375676186,), (1375676211,), (1375676230,), (1375676232,), (1375676236,), (1375676376,), (1375676401,), (1375676425,), (1375676456,), (1375676483,), (1375676523,), (1375676661,), (1375676709,), (1375676829,), (1375676878,), (1375676925,), (1375677357,), (1375677384,), (1375677421,), (1375677454,), (1375677482,), (1375677522,), (1375677678,), (1375677722,), (1375677749,), (1375677774,), (1375677799,), (1375677939,), (1375677963,), (1375677976,), (1375677979,), (1375678007,), (1375678057,), (1375678061,), (1375678064,), (1375678121,), (1375678123,), (1375678129,), (1375678144,), (1375678151,), (1375678158,), (1375678335,), (1375678338,), (1375678347,), (1375678390,), (1375678415,), (1375678475,), (1375678478,), (1375678480,), (1375678482,), (1375678487,), (1375678706,), (1375678733,), (1375679154,), (1375679183,), (1375679208,), (1375679252,), (1375679439,), (1375679413,), (1375679423,), (1375679507,), (1375679514,), (1375679521,), (1375679532,), (1375679535,), (1375679539,), (1375679629,), (1375679655,), (1375679679,), (1375679703,), (1375679731,), (1375680055,), (1375680067,), (1375680070,), (1375680074,), (1375680077,), (1375680081,), (1375680110,), (1375680112,), (1375680115,), (1375680119,), (1375680347,), (1375680371,), (1375680687,), (1375680693,), (1375680695,), (1375680698,), (1375680702,), (1375680704,), (1375680738,), (1375680740,), (1375680741,), (1375680742,), (1375680744,), (1375680746,), (1375680763,), (1375680765,), (1375680766,), (1375680767,), (1375680795,), (1375680805,), (1375680809,), (1375680811,), (1375680815,), (1375680818,), (1375680833,), (1375680836,), (1375680838,), (1375680900,), (1375680904,), (1375680908,), (1375680911,), (1375680914,), (1375680929,), (1375680932,), (1375680933,), (1375680936,), (1375680939,), (1375680941,), (1375680958,), (1375680962,), (1375680963,), (1375680966,), (1375680970,), (1375681037,), (1375681022,), (1375681024,), (1375681027,), (1375681030,), (1375681033,), (1375681052,), (1375681054,), (1375681056,), (1375681058,), (1375681088,), (1375681092,), (1375681108,), (1375681109,), (1375681113,), (1375681115,), (1375681129,), (1375681130,), (1375681131,), (1375681133,), (1375681156,), (1375681158,), (1375681161,), (1375681164,), (1375681166,), (1375681169,), (1375681174,), (1375681175,), (1375681176,), (1375681179,), (1375681183,), (1375681188,), (1375681194,), (1375681198,), (1375681203,), (1375681275,), (1375681313,), (1375681315,), (1375681317,), (1375681322,), (1375681459,), (1375681462,), (1375681465,), (1375681466,), (1375681470,), (1375681498,), (1375681500,), (1375681502,), (1375681504,), (1375681509,), (1375681514,), (1375681531,), (1375681535,), (1375681537,), (1375681539,), (1375681588,), (1375681592,), (1375681594,), (1375681596,), (1375681601,), (1375681658,), (1375681661,), (1375681687,), (1375681718,), (1375681744,), (1375681792,), (1375681794,), (1375681795,), (1375681799,), (1375681802,), (1375681832,), (1375681842,), (1375681846,), (1375681849,), (1375681853,), (1375681911,), (1375681916,), (1375681918,), (1375681921,), (1375682049,), (1375682046,), (1375682194,), (1375682220,), (1375682256,), (1375682335,), (1375682338,), (1375682341,), (1375682371,), (1375682374,), (1375682376,), (1375682378,), (1375682404,), (1375682406,), (1375682407,), (1375682415,), (1375682420,), (1375682424,), (1375682503,), (1375682506,), (1375682508,), (1375682511,), (1375682533,), (1375682534,), (1375682536,), (1375682540,), (1375682543,), (1375682545,), (1375682555,), (1375682556,), (1375682559,), (1375682561,), (1375682564,), (1375682567,), (1375682569,), (1375682572,), (1375682574,), (1375682587,), (1375682589,), (1375682590,), (1375682630,), (1375682633,), (1375682635,), (1375682637,), (1375682639,), (1375682641,), (1375682657,), (1375682661,), (1375682665,), (1375682669,), (1375682678,), (1375682683,), (1375682685,), (1375682717,), (1375682711,), (1375682714,), (1375683016,), (1375683042,), (1375683597,), (1375683643,), (1375683687,), (1375683729,), (1375683776,), (1375684301,), (1375684329,), (1375684354,), (1375684379,), (1375684944,), (1375684986,), (1375685019,), (1375685033,), (1375685059,), (1375685073,), (1375685121,), (1375685144,), (1375685171,), (1375685198,), (1375685223,), (1375685426,), (1375685435,), (1375685460,), (1375685464,), (1375685509,), (1375685543,), (1375685568,), (1375685715,), (1375685722,), (1375685834,), (1375685838,), (1375685954,), (1375685957,), (1375685960,), (1375685963,), (1375686014,), (1375686015,), (1375686017,), (1375686021,), (1375686024,), (1375686028,), (1375686133,), (1375686159,), (1375686184,), (1375686497,), (1375686520,), (1375686522,), (1375686524,), (1375686534,), (1375686943,), (1375686958,), (1375686979,), (1375687019,), (1375687054,), (1375687059,), (1375687516,), (1375687446,), (1375687469,), (1375687488,), (1375687506,), (1375687709,), (1375687757,), (1375687801,), (1375687855,), (1375687905,), (1375688069,), (1375688070,), (1375688071,), (1375688074,), (1375688076,), (1375688079,), (1375688091,), (1375688092,), (1375688094,), (1375688097,), (1375688100,), (1375688106,), (1375688118,), (1375688121,), (1375688123,), (1375688126,), (1375688128,), (1375688130,), (1375688134,), (1375688137,), (1375688141,), (1375688166,), (1375688171,), (1375688174,), (1375688177,), (1375688180,), (1375688183,), (1375688274,), (1375688321,), (1375688370,), (1375688418,), (1375689016,), (1375689049,), (1375689075,), (1375689102,), (1375689150,), (1375689209,), (1375689524,), (1375689525,), (1375689526,), (1375689670,), (1375689677,), (1375689699,), (1375689723,), (1375689747,), (1375689772,), (1375689824,), (1375689826,), (1375689828,), (1375689831,), (1375689835,), (1375689860,), (1375689862,), (1375689867,), (1375689873,), (1375689879,), (1375689906,), (1375689914,), (1375689937,), (1375689960,), (1375689988,), (1375690343,), (1375690392,), (1375690429,), (1375690458,), (1375690502,), (1375690532,), (1375690626,), (1375690707,), (1375690731,), (1375690939,), (1375690928,), (1375690930,), (1375690933,), (1375690936,), (1375691178,), (1375691223,), (1375691245,), (1375691247,), (1375691265,), (1375691279,), (1375691334,), (1375691336,), (1375691338,), (1375691340,), (1375691367,), (1375691369,), (1375691371,), (1375691373,), (1375691375,), (1375691379,), (1375691414,), (1375691437,), (1375691461,), (1375691489,), (1375691514,), (1375691531,), (1375691583,), (1375691590,), (1375691591,), (1375691613,), (1375691625,), (1375691627,), (1375691630,), (1375691634,), (1375691653,), (1375691654,), (1375691655,), (1375691657,), (1375691699,), (1375691722,), (1375691744,), (1375691773,), (1375691829,), (1375691857,), (1375691967,), (1375691974,), (1375691976,), (1375691978,), (1375691981,), (1375691985,), (1375692008,), (1375692009,), (1375692010,), (1375692015,), (1375692174,), (1375692176,), (1375692179,), (1375692182,), (1375692185,), (1375692190,), (1375692552,), (1375692577,), (1375692601,), (1375692649,), (1375692711,), (1375692750,), (1375692868,), (1375692887,), (1375692888,), (1375692891,), (1375692954,), (1375692957,), (1375692963,), (1375692969,), (1375692974,), (1375693095,), (1375693104,), (1375693133,), (1375693145,), (1375693164,), (1375693166,), (1375693395,), (1375693396,), (1375693398,), (1375693401,), (1375693424,), (1375693440,), (1375693472,), (1375693478,), (1375693523,), (1375693564,), (1375693657,), (1375693566,), (1375693577,), (1375693602,), (1375693630,), (1375693725,), (1375693727,), (1375693728,), (1375693731,), (1375693736,), (1375693766,), (1375693768,), (1375693770,), (1375693772,), (1375693777,), (1375693781,), (1375693800,), (1375693801,), (1375693802,), (1375693826,), (1375693827,), (1375693829,), (1375693832,), (1375693834,), (1375693895,), (1375693896,), (1375693897,), (1375693899,), (1375693956,), (1375693965,), (1375693968,), (1375693984,), (1375693988,), (1375694017,), (1375694071,), (1375694075,), (1375694212,), (1375694213,), (1375694214,), (1375694250,), (1375694252,), (1375694441,), (1375694449,), (1375694463,), (1375694485,), (1375694535,), (1375694563,), (1375694591,), (1375694655,), (1375694657,), (1375694658,), (1375694661,), (1375694809,), (1375694833,), (1375694865,), (1375694889,), (1375694916,), (1375695102,), (1375695107,), (1375695110,), (1375695115,), (1375695119,), (1375695215,), (1375695173,), (1375695175,), (1375695177,), (1375695207,), (1375695381,), (1375695407,), (1375695437,), (1375695465,), (1375695488,), (1375695979,), (1375696028,), (1375696052,), (1375696088,), (1375696123,), (1375696372,), (1375696374,), (1375696376,), (1375696378,), (1375696381,), (1375696383,), (1375696683,), (1375696703,), (1375696730,), (1375696753,), (1375696788,), (1375696814,), (1375696865,), (1375696866,), (1375696869,), (1375696874,), (1375696876,), (1375696878,), (1375696881,), (1375696885,), (1375696889,), (1375696892,), (1375696913,), (1375696932,), (1375696934,), (1375697001,), (1375697003,), (1375697004,), (1375697233,), (1375697237,), (1375697239,), (1375697240,), (1375697242,), (1375697248,), (1375697387,), (1375697414,), (1375697438,), (1375697460,), (1375697464,), (1375697467,), (1375697577,), (1375697600,), (1375697612,), (1375697614,), (1375697708,), (1375697712,), (1375697722,), (1375697724,), (1375697726,), (1375697728,), (1375697743,), (1375697745,), (1375697746,), (1375697747,), (1375697750,), (1375697754,), (1375697781,), (1375697784,), (1375697797,), (1375697823,), (1375697824,), (1375697827,), (1375697830,), (1375697834,), (1375697838,), (1375697849,), (1375697852,), (1375697854,), (1375697872,), (1375697858,), (1375697861,), (1375697863,), (1375697865,), (1375697868,), (1375698060,), (1375698117,), (1375698160,), (1375698184,), (1375698710,), (1375698756,), (1375698786,), (1375698811,), (1375698838,), (1375698880,), (1375698996,), (1375698999,), (1375699002,), (1375699242,), (1375699684,), (1375699709,), (1375699733,), (1375699747,), (1375699833,), (1375699859,), (1375699883,), (1375699907,), (1375699935,), (1375700013,), (1375700016,), (1375700022,), (1375700025,), (1375700030,), (1375700035,), (1375700088,), (1375700093,), (1375700148,), (1375700153,), (1375700156,), (1375700160,), (1375700164,), (1375700177,), (1375700180,), (1375700183,), (1375700186,), (1375700202,), (1375700208,), (1375700216,), (1375700225,), (1375700280,), (1375700282,), (1375700284,), (1375700286,), (1375700290,), (1375703480,), (1375703463,), (1375703533,), (1375703556,), (1375703589,), (1375703616,), (1375703656,), (1375703682,), (1375703910,), (1375703945,), (1375703962,), (1375703974,), (1375703990,), (1375704013,), (1375704025,), (1375704029,), (1375704032,), (1375704036,), (1375704039,), (1375704041,), (1375704046,), (1375704048,), (1375704050,), (1375704053,), (1375704054,), (1375704057,), (1375704068,), (1375704070,), (1375704075,), (1375704078,), (1375704081,), (1375704085,), (1375704093,), (1375704096,), (1375704099,), (1375704335,), (1375704350,), (1375704355,), (1375704366,), (1375704388,), (1375704392,), (1375704462,), (1375704465,), (1375704467,), (1375704471,), (1375704475,), (1375704480,), (1375704510,), (1375704512,), (1375704517,), (1375704523,), (1375704560,), (1375704587,), (1375704715,), (1375704741,), (1375704766,), (1375704767,), (1375704867,), (1375704870,), (1375704873,), (1375704874,), (1375704877,), (1375704880,), (1375705068,), (1375705163,), (1375705224,), (1375705230,), (1375705385,), (1375705403,), (1375705409,), (1375705414,), (1375705420,), (1375705423,), (1375705464,), (1375705465,), (1375705468,), (1375705487,), (1375705479,), (1375705483,), (1375705532,), (1375705535,), (1375705690,), (1375705693,), (1375705696,), (1375705699,), (1375705717,), (1375705767,), (1375705769,), (1375705901,), (1375705903,), (1375705905,), (1375706059,), (1375706083,), (1375706111,), (1375706141,), (1375706171,), (1375706195,), (1375706421,), (1375706444,), (1375706473,), (1375706497,), (1375706525,), (1375706555,), (1375706802,), (1375706868,), (1375706967,), (1375707142,), (1375707143,), (1375707144,), (1375707369,), (1375707393,), (1375707419,), (1375707430,), (1375707449,), (1375707452,), (1375707500,), (1375707508,), (1375707510,), (1375707512,), (1375707515,), (1375707854,), (1375707877,), (1375707900,), (1375707924,), (1375707963,), (1375708021,), (1375708026,), (1375708028,), (1375708030,), (1375708033,), (1375708038,), (1375708069,), (1375708070,), (1375708071,), (1375709343,), (1375709324,), (1375709342,), (1375709391,), (1375709417,), (1375709443,), (1375709469,), (1375709498,), (1375709543,), (1375709544,), (1375709545,), (1375709587,), (1375709589,), (1375709592,), (1375709620,), (1375709622,), (1375709624,), (1375709626,), (1375709628,), (1375709632,), (1375709654,), (1375709656,), (1375709657,), (1375709703,), (1375709705,), (1375709707,), (1375709709,), (1375709734,), (1375709735,), (1375709736,), (1375709737,), (1375709770,), (1375709772,), (1375709774,), (1375709776,), (1375709779,), (1375709782,), (1375709814,), (1375709816,), (1375709817,), (1375709819,), (1375709821,), (1375709824,), (1375709841,), (1375709842,), (1375709844,), (1375709846,), (1375709849,), (1375709851,), (1375709857,), (1375709859,), (1375709862,), (1375709866,), (1375709867,), (1375709869,), (1375709882,), (1375709876,), (1375709879,), (1375709909,), (1375709912,), (1375709914,), (1375709915,), (1375709918,), (1375709922,), (1375709937,), (1375709941,), (1375709946,), (1375709950,), (1375709954,), (1375709983,), (1375709987,), (1375709992,), (1375709994,), (1375710012,), (1375710016,), (1375710029,), (1375710038,), (1375710047,), (1375710057,), (1375710083,), (1375710086,), (1375710090,), (1375710092,), (1375710096,), (1375710120,), (1375710123,), (1375710126,), (1375710129,), (1375710149,), (1375710151,), (1375710153,), (1375710155,), (1375710159,), (1375710339,), (1375710369,), (1375710393,), (1375710420,), (1375710449,), (1375710474,), (1375710537,), (1375710539,), (1375710541,), (1375710544,), (1375710548,), (1375710550,), (1375710560,), (1375710562,), (1375710565,), (1375710567,), (1375710572,), (1375710574,), (1375710577,), (1375710580,), (1375710584,), (1375710588,), (1375710598,), (1375710601,), (1375710604,), (1375710605,), (1375710608,), (1375710611,), (1375710672,), (1375710674,), (1375710843,), (1375710869,), (1375710898,), (1375710924,), (1375710947,), (1375710977,), (1375711782,), (1375711517,), (1375711566,), (1375711638,), (1375711713,), (1375712186,), (1375712216,), (1375712241,), (1375712271,), (1375712578,), (1375712833,), (1375712880,), (1375712912,), (1375712938,), (1375712964,), (1375713022,), (1375713323,), (1375713347,), (1375713374,), (1375713398,), (1375713592,), (1375713595,), (1375713600,), (1375713628,), (1375713643,), (1375713647,), (1375713872,), (1375713899,), (1375713929,), (1375713955,), (1375713983,), (1375714105,), (1375714120,), (1375714130,), (1375714170,), (1375714171,), (1375714172,), (1375714179,), (1375714220,), (1375714252,), (1375714452,), (1375714454,), (1375714476,), (1375714480,), (1375714484,), (1375714566,), (1375714567,), (1375714568,), (1375714571,), (1375714573,), (1375714613,), (1375714616,), (1375714628,), (1375714856,), (1375714863,), (1375714864,), (1375714866,), (1375714887,), (1375714916,), (1375714997,), (1375715000,), (1375715052,), (1375715054,), (1375715169,), (1375715195,), (1375715217,), (1375715240,), (1375715265,), (1375715440,), (1375715441,), (1375715444,), (1375715446,), (1375715449,), (1375715453,), (1375715463,), (1375715467,), (1375715471,), (1375715473,), (1375715478,), (1375715497,), (1375715486,), (1375715490,), (1375715493,), (1375715506,), (1375715510,), (1375715514,), (1375715517,), (1375715521,), (1375715525,), (1375715764,), (1375715792,), (1375715819,), (1375715844,), (1375715871,), (1375715897,), (1375716188,), (1375716215,), (1375716239,), (1375716264,), (1375716291,), (1375716407,), (1375716409,), (1375716411,), (1375716431,), (1375716457,), (1375716484,), (1375716680,), (1375716685,), (1375716711,), (1375716738,), (1375716770,), (1375716803,), (1375716805,), (1375716807,), (1375716809,), (1375716814,), (1375717049,), (1375717052,), (1375717055,), (1375717057,), (1375717060,), (1375717062,), (1375717181,), (1375717184,), (1375717185,), (1375717188,), (1375717190,), (1375717192,), (1375717198,), (1375717202,), (1375717204,), (1375717207,), (1375717209,), (1375717224,), (1375717252,), (1375717257,), (1375717261,), (1375717270,), (1375717277,), (1375717284,), (1375717286,), (1375717346,), (1375717363,), (1375717366,), (1375717397,), (1375717401,), (1375717404,), (1375717406,), (1375717409,), (1375717411,), (1375717421,), (1375717424,), (1375717427,), (1375717485,), (1375717478,), (1375717480,), (1375717482,), (1375717506,), (1375717509,), (1375717512,), (1375717517,), (1375717523,), (1375717525,), (1375717532,), (1375717542,), (1375717568,), (1375717591,), (1375717871,), (1375717874,), (1375717878,), (1375717906,), (1375717932,), (1375718037,), (1375718041,), (1375718043,), (1375718064,), (1375718093,), (1375718121,), (1375718145,), (1375718148,), (1375718151,), (1375718153,), (1375718408,), (1375718433,), (1375718459,), (1375718487,), (1375718686,), (1375718712,), (1375718719,), (1375718722,), (1375718726,), (1375718825,), (1375718850,), (1375718874,), (1375718900,), (1375718974,), (1375718978,), (1375718981,), (1375718983,), (1375718987,), (1375719021,), (1375719027,), (1375719069,), (1375719079,), (1375719207,), (1375719211,), (1375719214,), (1375719217,), (1375719272,), (1375719298,), (1375719379,), (1375719407,), (1375719430,), (1375719454,), (1375719473,), (1375719476,), (1375719497,), (1375719501,), (1375719515,), (1375719527,), (1375719533,), (1375719535,), (1375719555,), (1375719556,), (1375719558,), (1375719562,), (1375719565,), (1375719567,), (1375719574,), (1375719576,), (1375719577,), (1375719584,), (1375719587,), (1375719614,), (1375719591,), (1375719594,), (1375719599,), (1375719611,), (1375719613,), (1375719624,), (1375719626,), (1375719629,), (1375719632,), (1375719635,), (1375719636,), (1375719653,), (1375719655,), (1375719657,), (1375719665,), (1375719690,), (1375719692,), (1375719694,), (1375719695,), (1375719698,), (1375719701,), (1375719728,), (1375719738,), (1375719744,), (1375719760,), (1375719764,), (1375719766,), (1375719812,), (1375719814,), (1375719816,), (1375719819,), (1375719836,), (1375719866,), (1375719869,), (1375719871,), (1375719876,), (1375719999,), (1375720002,), (1375720005,), (1375720006,), (1375720009,), (1375720012,), (1375720030,), (1375720032,), (1375720034,), (1375720051,), (1375720053,), (1375720056,), (1375720060,), (1375720063,), (1375720066,), (1375720077,), (1375720078,), (1375720081,), (1375720082,), (1375720085,), (1375720090,), (1375720110,), (1375720112,), (1375720114,), (1375720115,), (1375720116,), (1375720120,), (1375720139,), (1375720140,), (1375720141,), (1375720143,), (1375720431,), (1375720461,), (1375720488,), (1375721023,), (1375720922,), (1375720947,), (1375720972,), (1375720996,), (1375721416,), (1375721459,), (1375721483,), (1375721531,), (1375721579,), (1375722240,), (1375722276,), (1375722683,), (1375722746,), (1375724338,), (1375724650,), (1375724652,), (1375724665,), (1375724667,), (1375724693,), (1375724697,), (1375724699,), (1375724757,), (1375724773,), (1375724781,), (1375724985,), (1375725082,), (1375725107,), (1375725133,), (1375725155,), (1375725180,), (1375725361,), (1375725362,), (1375725364,), (1375725369,), (1375725373,), (1375725376,), (1375725393,), (1375725397,), (1375725418,), (1375725401,), (1375725403,), (1375725632,), (1375725650,), (1375725660,), (1375725661,), (1375725663,), (1375725799,), (1375725802,), (1375725803,), (1375725804,), (1375725825,), (1375725851,), (1375726012,), (1375726023,), (1375726042,), (1375726045,), (1375726181,), (1375726293,), (1375726295,), (1375726317,), (1375726331,), (1375726334,), (1375726338,), (1375726359,), (1375726369,), (1375726428,), (1375726452,), (1375726478,), (1375726505,), (1375726598,), (1375726601,), (1375726603,), (1375726605,), (1375726717,), (1375726722,), (1375726724,), (1375726727,), (1375726729,), (1375726744,), (1375726751,), (1375726754,), (1375726758,), (1375726760,), (1375726763,), (1375726786,), (1375726789,), (1375726791,), (1375726793,), (1375726796,), (1375726838,), (1375726821,), (1375726825,), (1375726828,), (1375726831,), (1375726835,), (1375726860,), (1375726863,), (1375726866,), (1375726868,), (1375726871,), (1375726929,), (1375726953,), (1375726957,), (1375726959,), (1375726960,), (1375726963,), (1375726977,), (1375726981,), (1375726986,), (1375726989,), (1375726993,), (1375726997,), (1375727022,), (1375727024,), (1375727027,), (1375727029,), (1375727208,), (1375727235,), (1375727260,), (1375727296,), (1375727327,), (1375727352,), (1375727493,), (1375727495,), (1375727497,), (1375727499,), (1375727503,), (1375727518,), (1375727713,), (1375727738,), (1375727769,), (1375727793,), (1375728227,), (1375731275,), (1375731666,), (1375731689,), (1375731728,), (1375733441,), (1375733648,), (1375733727,), (1375733755,), (1375733957,), (1375733959,), (1375734468,), (1375734503,), (1375734504,), (1375734505,), (1375734534,), (1375734536,), (1375734539,), (1375734544,), (1375734852,), (1375771125,), (1375771219,), (1375771271,), (1375771294,), (1375771500,), (1375771502,), (1375771584,), (1375771615,), (1375771707,), (1375771709,), (1375771756,), (1375771759,), (1375771926,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07082025': {'nb_upload': 18, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25794723]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666] map_info['map_portfolio_photo'] : {25794723: [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666]} final : True mtd_id 4302 list_pids : [1375734852, 1375734544, 1375734539, 1375734536, 1375734534, 1375734505, 1375734504, 1375734503, 1375734468, 1375733959, 1375733957, 1375733755, 1375733727, 1375733648, 1375733441, 1375731728, 1375731689, 1375731666] Looping around the photos to save general results len do output : 1 /25794723Didn'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, '3481190') ('4302', '25794723', '1375734852', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734544', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734539', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734536', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734534', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734505', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734504', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734503', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375734468', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733959', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733957', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733755', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733727', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733648', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375733441', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731728', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731689', None, None, None, None, None, '3481190') ('4302', None, None, None, None, None, None, None, '3481190') ('4302', '25794723', '1375731666', None, None, None, None, None, '3481190') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '25794723', 'None', None, None, None, None, '3481190'), ('4302', '25794723', '1375734852', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734544', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734539', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734536', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734534', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734505', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734504', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734503', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375734468', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733959', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733957', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733755', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733727', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733648', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375733441', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375731728', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375731689', None, None, None, None, None, '3481190'), ('4302', '25794723', '1375731666', None, None, None, None, None, '3481190')] time used for this insertion : 0.020070552825927734 save_final save missing photos in datou_result : time spend for datou_step_exec : 13.507216453552246 time spend to save output : 0.02034449577331543 total time spend for step 5 : 13.527560949325562 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 (3481190) 2.36user 2.57system 0:21.59elapsed 22%CPU (0avgtext+0avgdata 167712maxresident)k 0inputs+13784outputs (0major+77376minor)pagefaults 0swaps