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 : 2910121 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 (3728247) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3728247) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894240 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3728247'] with mtr_portfolio_ids : ['26894240'] and first list_photo_ids : [] new path : /proc/2910121/ Name: python3 Umask: 0002 State: R (running) Tgid: 2910121 Ngid: 0 Pid: 2910121 PPid: 2910120 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2910121 NSpid: 2910121 NSpgid: 2908669 NSsid: 2908669 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99256 kB VmRSS: 99256 kB RssAnon: 60164 kB RssFile: 39092 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2910121', 'Ngid': '0', 'Pid': '2910121', 'PPid': '2910120', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2910121', 'NSpid': '2910121', 'NSpgid': '2908669', 'NSsid': '2908669', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99256 kB', 'VmRSS': '99256 kB', 'RssAnon': '60164 kB', 'RssFile': '39092 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '2910121', '1107252', '0', '1107252', '866004', '99256', b'', 'marlene', '3728247') 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 (26894240) 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 (3728247 ) ) 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 (26894240) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1383919713, 'portfolio_id': 26894240}, {'photo_id': 1383919690, 'portfolio_id': 26894240}, {'photo_id': 1383919666, 'portfolio_id': 26894240}, {'photo_id': 1383919622, 'portfolio_id': 26894240}, {'photo_id': 1383919618, 'portfolio_id': 26894240}, {'photo_id': 1383919616, 'portfolio_id': 26894240}, {'photo_id': 1383919615, 'portfolio_id': 26894240}, {'photo_id': 1383919614, 'portfolio_id': 26894240}, {'photo_id': 1383919580, 'portfolio_id': 26894240}, {'photo_id': 1383919577, 'portfolio_id': 26894240}, {'photo_id': 1383919575, 'portfolio_id': 26894240}, {'photo_id': 1383919574, 'portfolio_id': 26894240}, {'photo_id': 1383919573, 'portfolio_id': 26894240}, {'photo_id': 1383919540, 'portfolio_id': 26894240}, {'photo_id': 1383919539, 'portfolio_id': 26894240}, {'photo_id': 1383919537, 'portfolio_id': 26894240}, {'photo_id': 1383919433, 'portfolio_id': 26894240}, {'photo_id': 1383919407, 'portfolio_id': 26894240}, {'photo_id': 1383919382, 'portfolio_id': 26894240}, {'photo_id': 1383919325, 'portfolio_id': 26894240}, {'photo_id': 1383919151, 'portfolio_id': 26894240}, {'photo_id': 1383919149, 'portfolio_id': 26894240}, {'photo_id': 1383919147, 'portfolio_id': 26894240}, {'photo_id': 1383919146, 'portfolio_id': 26894240}, {'photo_id': 1383919020, 'portfolio_id': 26894240}, {'photo_id': 1383918994, 'portfolio_id': 26894240}] map_portfolio_id_photo_id: {26894240: [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573, 1383919540, 1383919539, 1383919537, 1383919433, 1383919407, 1383919382, 1383919325, 1383919151, 1383919149, 1383919147, 1383919146, 1383919020, 1383918994]} ##### 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.014726877212524414 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Sep 16 14:52:59 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 (26894240) 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 : 26894240 get user id for portfolio 26894240 get sub ptf for main ptf 26894240, type 3726 and hashtags ['kraft', 'Carton_brun', 'Teint_Dans_La_Masse', 'metal', 'flou', 'cartonnette', 'environnement', 'Carton_gris', 'mal_croppe', 'plastique', 'autre_refus', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26894240 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_brun','Teint_Dans_La_Masse','metal','flou','cartonnette','environnement','Carton_gris','mal_croppe','plastique','autre_refus','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26894240 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_brun','Teint_Dans_La_Masse','metal','flou','cartonnette','environnement','Carton_gris','mal_croppe','plastique','autre_refus','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 26894240, 'sub_port_id': 26894250, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133392, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}, 'flou': {'main_port_id': 26894240, 'sub_port_id': 26894251, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133393, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}, 'papier': {'main_port_id': 26894240, 'sub_port_id': 26894252, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133394, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}, 'mal_croppe': {'main_port_id': 26894240, 'sub_port_id': 26894253, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133395, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}, 'environnement': {'main_port_id': 26894240, 'sub_port_id': 26894254, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133396, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}, 'Carton_gris': {'main_port_id': 26894240, 'sub_port_id': 26894255, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133397, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}, 'metal': {'main_port_id': 26894240, 'sub_port_id': 26894256, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133398, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}, 'plastique': {'main_port_id': 26894240, 'sub_port_id': 26894257, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133399, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}, 'autre_refus': {'main_port_id': 26894240, 'sub_port_id': 26894258, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133400, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 26894240, 'sub_port_id': 26894259, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133401, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}, 'cartonnette': {'main_port_id': 26894240, 'sub_port_id': 26894260, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133402, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}, 'kraft': {'main_port_id': 26894240, 'sub_port_id': 26894261, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133403, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26894250 , 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=26894240 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 (26894250) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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 26894251 , 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=26894240 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 (26894251) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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 26894252 , 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=26894240 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 (26894252) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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 26894253 , 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=26894240 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 (26894253) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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 26894254 , 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=26894240 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 (26894254) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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 26894255 , 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=26894240 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 (26894255) result : ((1383919549,), (1383919657,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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 26894256 , 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=26894240 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 (26894256) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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 26894257 , 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=26894240 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 (26894257) result : ((1383919552,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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 26894258 , 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=26894240 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 (26894258) result : ((1383919644,), (1383919645,), (1383919656,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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 26894259 , 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=26894240 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 (26894259) result : ((1383919548,), (1383919654,), (1383919655,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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 26894260 , 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=26894240 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 (26894260) result : ((1383919647,), (1383919658,), (1383919659,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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 26894261 , 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=26894240 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 (26894261) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26894240) result : ((1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) 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`=26894240 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_brun','Teint_Dans_La_Masse','metal','flou','cartonnette','environnement','Carton_gris','mal_croppe','plastique','autre_refus','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26894240 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_brun','Teint_Dans_La_Masse','metal','flou','cartonnette','environnement','Carton_gris','mal_croppe','plastique','autre_refus','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 26894240, 'sub_port_id': 26894263, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133404, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}, 'flou': {'main_port_id': 26894240, 'sub_port_id': 26894264, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133405, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}, 'papier': {'main_port_id': 26894240, 'sub_port_id': 26894265, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133406, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}, 'mal_croppe': {'main_port_id': 26894240, 'sub_port_id': 26894266, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133407, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}, 'environnement': {'main_port_id': 26894240, 'sub_port_id': 26894267, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133408, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}, 'Carton_gris': {'main_port_id': 26894240, 'sub_port_id': 26894268, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133409, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}, 'metal': {'main_port_id': 26894240, 'sub_port_id': 26894269, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133410, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}, 'plastique': {'main_port_id': 26894240, 'sub_port_id': 26894270, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133411, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}, 'autre_refus': {'main_port_id': 26894240, 'sub_port_id': 26894271, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133412, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 26894240, 'sub_port_id': 26894272, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133413, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}, 'cartonnette': {'main_port_id': 26894240, 'sub_port_id': 26894273, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133414, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}, 'kraft': {'main_port_id': 26894240, 'sub_port_id': 26894274, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18133415, 'last_updated_at': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 16, 14, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 16, 14, 47, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894263,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894250 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894264,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894251 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894265,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894252 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894266,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894253 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894267,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894254 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894268,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894255 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894269,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894256 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894270,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894257 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894271,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894258 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894272,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894259 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894273,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894260 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26894274,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26894261 lien utilise dans velours : https://marlene.fotonower.com/velours/26894263,26894264,26894265,26894266,26894267,26894268,26894269,26894270,26894271,26894272,26894273,26894274?tags=Carton_brun,flou,papier,mal_croppe,environnement,Carton_gris,metal,plastique,autre_refus,Teint_Dans_La_Masse,cartonnette,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26894240]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573] map_info['map_portfolio_photo'] : {26894240: [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573, 1383919540, 1383919539, 1383919537, 1383919433, 1383919407, 1383919382, 1383919325, 1383919151, 1383919149, 1383919147, 1383919146, 1383919020, 1383918994]} final : False mtd_id 4302 list_pids : [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573] Looping around the photos to save general results len do output : 1 /26894240. 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, '3728247') ('4302', '26894240', '1383919713', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919690', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919666', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919622', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919618', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919616', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919615', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919614', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919580', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919577', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919575', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919574', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919573', None, None, None, None, None, '3728247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '26894240', "{'Carton_brun': 26894250, 'flou': 26894251, 'papier': 26894252, 'mal_croppe': 26894253, 'environnement': 26894254, 'Carton_gris': 26894255, 'metal': 26894256, 'plastique': 26894257, 'autre_refus': 26894258, 'Teint_Dans_La_Masse': 26894259, 'cartonnette': 26894260, 'kraft': 26894261}", None, None, None, None, '3728247'), ('4302', '26894240', '1383919713', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919690', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919666', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919622', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919618', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919616', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919615', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919614', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919580', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919577', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919575', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919574', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919573', None, None, None, None, None, '3728247')] time used for this insertion : 0.013563156127929688 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.744844675064087 time spend to save output : 0.013980865478515625 total time spend for step 1 : 1.7588255405426025 step2:final Tue Sep 16 14:53:01 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 (26894240) 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 26894240 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1383919020,1383918994,1383919151,1383919149,1383919147,1383919146,1383919433,1383919407,1383919382,1383919325,1383919540,1383919539,1383919537,1383919580,1383919577,1383919575,1383919574,1383919573,1383919622,1383919618,1383919616,1383919615,1383919614,1383919713,1383919690,1383919666); 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([26894240]) Inside saveOutput : final : False verbose : True original output for save of step final : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} new output for save of step final : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573] map_info['map_portfolio_photo'] : {26894240: [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573, 1383919540, 1383919539, 1383919537, 1383919433, 1383919407, 1383919382, 1383919325, 1383919151, 1383919149, 1383919147, 1383919146, 1383919020, 1383918994]} final : False mtd_id 4302 list_pids : [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573] Looping around the photos to save general results len do output : 13 /1383919713.Didn't retrieve data . /1383919690.Didn't retrieve data . /1383919666.Didn't retrieve data . /1383919622.Didn't retrieve data . /1383919618.Didn't retrieve data . /1383919616.Didn't retrieve data . /1383919615.Didn't retrieve data . /1383919614.Didn't retrieve data . /1383919580.Didn't retrieve data . /1383919577.Didn't retrieve data . /1383919575.Didn't retrieve data . /1383919574.Didn't retrieve data . /1383919573.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, '3728247') ('4302', '26894240', '1383919713', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919690', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919666', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919622', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919618', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919616', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919615', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919614', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919580', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919577', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919575', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919574', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919573', None, None, None, None, None, '3728247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '26894240', '1383919713', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919690', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919666', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919622', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919618', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919616', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919615', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919614', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919580', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919577', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919575', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919574', '0.045594952887373884', None, None, None, None, '3728247'), ('4302', '26894240', '1383919573', '0.045594952887373884', None, None, None, None, '3728247')] time used for this insertion : 0.013959884643554688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06426382064819336 time spend to save output : 0.014650344848632812 total time spend for step 2 : 0.07891416549682617 step3:velours_tree Tue Sep 16 14:53:01 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 : {26894240: [{'Carton_brun': 26894250, 'flou': 26894251, 'papier': 26894252, 'mal_croppe': 26894253, 'environnement': 26894254, 'Carton_gris': 26894255, 'metal': 26894256, 'plastique': 26894257, 'autre_refus': 26894258, 'Teint_Dans_La_Masse': 26894259, 'cartonnette': 26894260, 'kraft': 26894261}]} input_args_next_step : {26894240: ()} output_args : {26894240: [{'Carton_brun': 26894250, 'flou': 26894251, 'papier': 26894252, 'mal_croppe': 26894253, 'environnement': 26894254, 'Carton_gris': 26894255, 'metal': 26894256, 'plastique': 26894257, 'autre_refus': 26894258, 'Teint_Dans_La_Masse': 26894259, 'cartonnette': 26894260, 'kraft': 26894261}]} args : 26894240 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 26894250, 'flou': 26894251, 'papier': 26894252, 'mal_croppe': 26894253, 'environnement': 26894254, 'Carton_gris': 26894255, 'metal': 26894256, 'plastique': 26894257, 'autre_refus': 26894258, 'Teint_Dans_La_Masse': 26894259, 'cartonnette': 26894260, 'kraft': 26894261},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26894240) 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([26894240]) 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.3311171531677246 time spend to save output : 6.127357482910156e-05 total time spend for step 3 : 0.3311784267425537 step4:send_mail_cod Tue Sep 16 14:53:01 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 : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} input_args_next_step : {1383919713: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919713 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919690 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919666 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919622 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919618 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919616 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919615 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919614 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919580 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919577 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919575 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919574 depend.output_id : 0 input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ()} output_args : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',)} args : 1383919573 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 : {26894240: [{'Carton_brun': 26894250, 'flou': 26894251, 'papier': 26894252, 'mal_croppe': 26894253, 'environnement': 26894254, 'Carton_gris': 26894255, 'metal': 26894256, 'plastique': 26894257, 'autre_refus': 26894258, 'Teint_Dans_La_Masse': 26894259, 'cartonnette': 26894260, 'kraft': 26894261}]} input_args_next_step : {1383919713: ('0.045594952887373884',), 1383919690: ('0.045594952887373884',), 1383919666: ('0.045594952887373884',), 1383919622: ('0.045594952887373884',), 1383919618: ('0.045594952887373884',), 1383919616: ('0.045594952887373884',), 1383919615: ('0.045594952887373884',), 1383919614: ('0.045594952887373884',), 1383919580: ('0.045594952887373884',), 1383919577: ('0.045594952887373884',), 1383919575: ('0.045594952887373884',), 1383919574: ('0.045594952887373884',), 1383919573: ('0.045594952887373884',), 26894240: ()} output_args : {26894240: [{'Carton_brun': 26894250, 'flou': 26894251, 'papier': 26894252, 'mal_croppe': 26894253, 'environnement': 26894254, 'Carton_gris': 26894255, 'metal': 26894256, 'plastique': 26894257, 'autre_refus': 26894258, 'Teint_Dans_La_Masse': 26894259, 'cartonnette': 26894260, 'kraft': 26894261}]} args : 26894240 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 :14, first value : ('0.045594952887373884',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26894240) 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 (1383919713,1383919690,1383919666,1383919622,1383919618,1383919616,1383919615,1383919614,1383919580,1383919577,1383919575,1383919574,1383919573) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1383919573 begin to download photo : 1383919577 begin to download photo : 1383919615 begin to download photo : 1383919622 begin to download photo : 1383919713 download finish for photo 1383919622 begin to download photo : 1383919666 download finish for photo 1383919577 begin to download photo : 1383919580 download finish for photo 1383919615 begin to download photo : 1383919616 download finish for photo 1383919713 download finish for photo 1383919573 begin to download photo : 1383919574 download finish for photo 1383919666 begin to download photo : 1383919690 download finish for photo 1383919616 begin to download photo : 1383919618 download finish for photo 1383919580 begin to download photo : 1383919614 download finish for photo 1383919574 begin to download photo : 1383919575 download finish for photo 1383919618 download finish for photo 1383919690 download finish for photo 1383919614 download finish for photo 1383919575 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette268942511758027181/ imagette268942531758027181/ imagette268942561758027181/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P26894240_16-09-2025_14_53_01.pdf 26894251 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=26894251 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268942511758027181 26894253 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=26894253 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268942531758027181 26894256 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=26894256 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268942561758027181 26894257 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=26894257 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383919552: '1758026946_245469_1383919020_52c706d85d41354cfed6e26dc8b80bd3_rle_crop_3959471048_0.png'} change filename to text .imagette268942571758027181/ imagette268942571758027181/1758026946_245469_1383919020_52c706d85d41354cfed6e26dc8b80bd3_rle_crop_3959471048_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/505852a36fb1fcd3beb6ba1ff858d0f4_23539067.png imagette268942571758027181 26894258 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=26894258 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383919644: '1758027064_250857_1383919433_802898ea1991899c7a19c1ba2495622a_rle_crop_3959471750_0.png', 1383919645: '1758027064_250857_1383919433_802898ea1991899c7a19c1ba2495622a_rle_crop_3959471751_0.png', 1383919656: '1758027085_251705_1383919407_284939c91ff636095a9a384a64631410_rle_crop_3959472342_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/ead43972127d411a8c07601d447506ae_53559867.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/6dd5a81cb2004fc3be93b8db1f6ffae5_38797665.png change filename to text .imagette268942581758027182/ imagette268942581758027182/1758027064_250857_1383919433_802898ea1991899c7a19c1ba2495622a_rle_crop_3959471750_0.png.png imagette268942581758027182/1758027085_251705_1383919407_284939c91ff636095a9a384a64631410_rle_crop_3959472342_0.png.png imagette268942581758027182/1758027064_250857_1383919433_802898ea1991899c7a19c1ba2495622a_rle_crop_3959471751_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/13bc55d058be1bc3c10f2d91e6bfa9a9_28288878.png imagette268942581758027182 26894260 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=26894260 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383919647: '1758027064_250857_1383919147_f9d42527159b8d56393463af18e3aaf2_rle_crop_3959471777_0.png', 1383919658: '1758027085_251705_1383919382_d3d7b398f3b0c25936cf12d41974283f_rle_crop_3959472359_0.png', 1383919659: '1758027085_251705_1383919325_33d9e2e615c26d4784dcefb9751eb9ba_rle_crop_3959472381_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/3d77a6002b84c085c7003ef5abdbdb3c_71292366.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/4097c239962eff1e375e1ff402d89a6e_1625483.png change filename to text .imagette268942601758027182/ imagette268942601758027182/1758027085_251705_1383919382_d3d7b398f3b0c25936cf12d41974283f_rle_crop_3959472359_0.png.png imagette268942601758027182/1758027085_251705_1383919325_33d9e2e615c26d4784dcefb9751eb9ba_rle_crop_3959472381_0.png.png imagette268942601758027182/1758027064_250857_1383919147_f9d42527159b8d56393463af18e3aaf2_rle_crop_3959471777_0.png.png imagette268942611758027182/ imagette268942501758027182/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/194bb35740eb86375b658c7ebe7c36c1_83495841.png imagette268942601758027182 26894261 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=26894261 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268942611758027182 26894250 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=26894250 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268942501758027182 26894255 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=26894255 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383919549: '1758026946_245469_1383918994_8afb17104c693fc4b66e82a7ed4a3ac5_rle_crop_3959471055_0.png', 1383919657: '1758027085_251705_1383919325_33d9e2e615c26d4784dcefb9751eb9ba_rle_crop_3959472385_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/2f6ae0c750b0afb04314e78a54b16c04_31557953.png change filename to text .imagette268942551758027182/ imagette268942551758027182/1758026946_245469_1383918994_8afb17104c693fc4b66e82a7ed4a3ac5_rle_crop_3959471055_0.png.png imagette268942551758027182/1758027085_251705_1383919325_33d9e2e615c26d4784dcefb9751eb9ba_rle_crop_3959472385_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/35a43b826aff0ea12b426b30338c81b0_62931684.png imagette268942551758027182 26894259 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=26894259 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383919548: '1758026946_245469_1383918994_8afb17104c693fc4b66e82a7ed4a3ac5_rle_crop_3959471057_0.png', 1383919654: '1758027085_251705_1383919407_284939c91ff636095a9a384a64631410_rle_crop_3959472354_0.png', 1383919655: '1758027085_251705_1383919382_d3d7b398f3b0c25936cf12d41974283f_rle_crop_3959472368_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/2622dacdd766cc28d1274c90a2f52894_80177361.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/f2b20702795fa58db26ff8d6685ca54a_3396566.png change filename to text .imagette268942591758027182/ imagette268942591758027182/1758026946_245469_1383918994_8afb17104c693fc4b66e82a7ed4a3ac5_rle_crop_3959471057_0.png.png imagette268942591758027182/1758027085_251705_1383919407_284939c91ff636095a9a384a64631410_rle_crop_3959472354_0.png.png imagette268942591758027182/1758027085_251705_1383919382_d3d7b398f3b0c25936cf12d41974283f_rle_crop_3959472368_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/8fcfe449225ac211f14a6db6e67d9369_41458333.png imagette268942591758027182 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26894240 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26894263,26894264,26894265,26894266,26894267,26894268,26894269,26894270,26894271,26894272,26894273,26894274?tags=Carton_brun,flou,papier,mal_croppe,environnement,Carton_gris,metal,plastique,autre_refus,Teint_Dans_La_Masse,cartonnette,kraft your option no_mail is active, we will not send the real mail to your client args[1383919713] : ('0.045594952887373884',) no score found for photo 1383919713 We are sending mail with results at report@fotonower.com args[1383919690] : ('0.045594952887373884',) no score found for photo 1383919690 We are sending mail with results at report@fotonower.com args[1383919666] : ('0.045594952887373884',) no score found for photo 1383919666 We are sending mail with results at report@fotonower.com args[1383919622] : ('0.045594952887373884',) no score found for photo 1383919622 We are sending mail with results at report@fotonower.com args[1383919618] : ('0.045594952887373884',) no score found for photo 1383919618 We are sending mail with results at report@fotonower.com args[1383919616] : ('0.045594952887373884',) no score found for photo 1383919616 We are sending mail with results at report@fotonower.com args[1383919615] : ('0.045594952887373884',) no score found for photo 1383919615 We are sending mail with results at report@fotonower.com args[1383919614] : ('0.045594952887373884',) no score found for photo 1383919614 We are sending mail with results at report@fotonower.com args[1383919580] : ('0.045594952887373884',) no score found for photo 1383919580 We are sending mail with results at report@fotonower.com args[1383919577] : ('0.045594952887373884',) no score found for photo 1383919577 We are sending mail with results at report@fotonower.com args[1383919575] : ('0.045594952887373884',) no score found for photo 1383919575 We are sending mail with results at report@fotonower.com args[1383919574] : ('0.045594952887373884',) no score found for photo 1383919574 We are sending mail with results at report@fotonower.com args[1383919573] : ('0.045594952887373884',) no score found for photo 1383919573 We are sending mail with results at report@fotonower.com refus_total : 0.045594952887373884 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=26894240 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_P26894240_16-09-2025_14_53_01.pdf results_Auto_P26894240_16-09-2025_14_53_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26894240_16-09-2025_14_53_01.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','26894240','results_Auto_P26894240_16-09-2025_14_53_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26894240_16-09-2025_14_53_01.pdf','pdf','','0.15','0.045594952887373884') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26894240]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573] map_info['map_portfolio_photo'] : {26894240: [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573, 1383919540, 1383919539, 1383919537, 1383919433, 1383919407, 1383919382, 1383919325, 1383919151, 1383919149, 1383919147, 1383919146, 1383919020, 1383918994]} final : False mtd_id 4302 list_pids : [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573] 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, '3728247') ('4302', '26894240', '1383919713', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919690', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919666', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919622', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919618', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919616', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919615', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919614', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919580', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919577', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919575', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919574', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919573', None, None, None, None, None, '3728247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26894240', '1383919713', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919690', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919666', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919622', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919618', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919616', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919615', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919614', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919580', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919577', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919575', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919574', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919573', None, None, None, None, None, '3728247')] time used for this insertion : 0.015854597091674805 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4246914386749268 time spend to save output : 0.016100406646728516 total time spend for step 4 : 2.4407918453216553 step5:split_time_score Tue Sep 16 14:53:03 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 : ['26894240'] 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 : [('26894240',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26894240) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1383919713: {'path': 'temp/1758027181_2910121_1383919713_7bb89ed71db637f7dfbf82adfff95d39.jpg', 'extension': 'jpg'}, 1383919615: {'path': 'temp/1758027181_2910121_1383919615_fbeacaacc2071e9f2a8e1d58696a3db1.jpg', 'extension': 'jpg'}, 1383919616: {'path': 'temp/1758027181_2910121_1383919616_e7fecb0fcd1d8daea02ad9121339d97d.jpg', 'extension': 'jpg'}, 1383919618: {'path': 'temp/1758027181_2910121_1383919618_110b1e569db77564d6c5879045c3b58e.jpg', 'extension': 'jpg'}, 1383919622: {'path': 'temp/1758027181_2910121_1383919622_d6c2f621759caf15412e4c169d84e57e.jpg', 'extension': 'jpg'}, 1383919666: {'path': 'temp/1758027181_2910121_1383919666_db8550953493ca3b08c5108794cd8c93.jpg', 'extension': 'jpg'}, 1383919690: {'path': 'temp/1758027181_2910121_1383919690_5b784c67b84e3f2f2de68ed04b2ee501.jpg', 'extension': 'jpg'}, 1383919577: {'path': 'temp/1758027181_2910121_1383919577_f760232871c6d521fc0d721387bba7e8.jpg', 'extension': 'jpg'}, 1383919580: {'path': 'temp/1758027181_2910121_1383919580_aed65cbbcc0d3a06b277682e69bf3e31.jpg', 'extension': 'jpg'}, 1383919614: {'path': 'temp/1758027181_2910121_1383919614_7ab9bfed8200e14578b510d597432bd1.jpg', 'extension': 'jpg'}, 1383919573: {'path': 'temp/1758027181_2910121_1383919573_0aa029ab158cd555c64497d4aa8e48db.jpg', 'extension': 'jpg'}, 1383919574: {'path': 'temp/1758027181_2910121_1383919574_de20b0a231222771d4edce97132024b5.jpg', 'extension': 'jpg'}, 1383919575: {'path': 'temp/1758027181_2910121_1383919575_f90f1e47cf7d7168c0314f53e5f07ee1.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 = 26894240; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26894240 group by h (('14', 26),) 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=26894240 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 (26894240) 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 (26894240) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16092025 26894240 Nombre de photos uploadées : 26 / 23040 (0%) 16092025 26894240 Nombre de photos taguées (types de déchets): 0 / 26 (0%) 16092025 26894240 Nombre de photos taguées (volume) : 0 / 26 (0%) [{'photo_id': 1383919020, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/52c706d85d41354cfed6e26dc8b80bd3.jpg', 'username': None, 'uploaded_at': 1758026768, 'text': 'image_16092025_14_45_24_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1383918994, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/8afb17104c693fc4b66e82a7ed4a3ac5.jpg', 'username': None, 'uploaded_at': 1758026768, 'text': 'image_16092025_14_45_44_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1383919151, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/e07f716ef886a56b6e12abcbd76a5bdb.jpg', 'username': None, 'uploaded_at': 1758026828, 'text': 'image_16092025_14_45_54_10138.jpg'}, {'photo_id': 1383919149, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/16/d4134ffdd464f926b45e19af1303b3f1.jpg', 'username': None, 'uploaded_at': 1758026828, 'text': 'image_16092025_14_46_04_10156.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011506080627441406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26894240, '2025-09-16' ) 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-09-16' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2292505,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24911141395568848 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= 2292505 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26872491, 'dashboard_result_id': 15232944, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26872491_16-09-2025_06_08_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26872492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26872493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26872494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26872495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26872496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26872497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26872498, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26872499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26872500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26872501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26872502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26872503, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26872955, 'dashboard_result_id': 15232945, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26872955_16-09-2025_06_09_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26872959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26872960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26872961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26872962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26872963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26872964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26872965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26872966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26872967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26872968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26872969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26872970, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26873034, 'dashboard_result_id': 15232946, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873034_16-09-2025_06_09_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873046, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26873180, 'dashboard_result_id': 15232947, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873180_16-09-2025_06_10_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873196, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26873435, 'dashboard_result_id': 15232948, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873435_16-09-2025_06_10_41.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873447, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26873696, 'dashboard_result_id': 15232949, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873696_16-09-2025_06_11_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873709, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26873917, 'dashboard_result_id': 15232950, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873917_16-09-2025_06_12_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26873918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873929, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26874222, 'dashboard_result_id': 15232951, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874222_16-09-2025_05_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26874226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26874227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26874228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26874229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26874230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26874231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26874232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26874233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26874234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26874235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26874236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26874237, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26874538, 'dashboard_result_id': 15232952, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874538_16-09-2025_06_03_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26874546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26874547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26874548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26874549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26874550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26874551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26874552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26874553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26874554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26874555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26874556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26874557, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26874959, 'dashboard_result_id': 15232953, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874959_16-09-2025_06_18_56.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26874970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26874971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26874972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26874973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26874974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26874975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26874976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26874977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26874978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26874979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26874980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26874981, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26875435, 'dashboard_result_id': 15232954, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26875435_16-09-2025_06_33_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26875445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26875446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26875447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26875448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26875449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26875450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26875451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26875452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26875453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26875454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26875455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26875456, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26875862, 'dashboard_result_id': 15232955, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26875862_16-09-2025_06_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26875867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26875868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26875869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26875870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26875871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26875872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26875873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26875874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26875875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26875876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26875877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26875878, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26876346, 'dashboard_result_id': 15232956, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26876346_16-09-2025_07_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26876355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26876356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26876357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26876358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26876359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26876360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26876361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26876362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26876363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26876364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26876365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26876366, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26876779, 'dashboard_result_id': 15232957, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26876779_16-09-2025_07_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26876816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26876817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26876818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26876819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26876820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26876821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26876822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26876823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26876824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26876825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26876826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26876827, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26877635, 'dashboard_result_id': 15232958, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26877635_16-09-2025_07_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26877658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26877659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26877660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26877661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26877662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26877663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26877664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26877665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26877666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26877667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26877668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26877669, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26878360, 'dashboard_result_id': 15232959, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26878360_16-09-2025_07_48_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26878384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26878385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26878386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26878387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26878388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26878389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26878390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26878391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26878392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26878393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26878394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26878395, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26879055, 'dashboard_result_id': 15232960, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26879055_16-09-2025_08_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26879137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26879138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26879140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26879141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26879142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26879143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26879144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26879145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26879146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26879147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26879148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26879149, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26879649, 'dashboard_result_id': 15232961, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26879649_16-09-2025_08_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26879669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26879670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26879672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26879673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26879674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26879676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26879677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26879678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26879679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26879681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26879682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26879683, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26880214, 'dashboard_result_id': 15232962, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26880214_16-09-2025_08_33_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26880248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26880249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26880250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26880251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26880252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26880253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26880254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26880255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26880256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26880257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26880258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26880259, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26880937, 'dashboard_result_id': 15232963, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26880937_16-09-2025_08_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26880938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26880939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26880940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26880941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26880942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26880943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26880944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26880945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26880946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26880947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26880948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26880949, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26881605, 'dashboard_result_id': 15232964, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26881605_16-09-2025_09_35_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26881664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26881665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26881666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26881667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26881668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26881669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26881670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26881671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26881672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26881673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26881674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26881675, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26883495, 'dashboard_result_id': 15232965, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26883495_16-09-2025_09_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26883501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26883502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26883503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26883504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26883505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26883506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26883507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26883508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26883509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26883510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26883511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26883512, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26883903, 'dashboard_result_id': 15232966, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26883903_16-09-2025_10_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26883912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26883913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26883914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26883915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26883916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26883917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26883918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26883919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26883920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26883921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26883922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26883923, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26884555, 'dashboard_result_id': 15232967, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26884555_16-09-2025_10_17_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26884581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26884582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26884583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26884584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26884585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26884586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26884587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26884588, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26884589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26884590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26884591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26884592, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26885185, 'dashboard_result_id': 15232968, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26885185_16-09-2025_10_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26885189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26885190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26885191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26885192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26885193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26885194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26885195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26885196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26885197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26885198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26885199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26885200, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26885890, 'dashboard_result_id': 15232969, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26885890_16-09-2025_10_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26885911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26885912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26885913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26885914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26885915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26885916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26885917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26885918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26885919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26885920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26885921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26885922, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26886682, 'dashboard_result_id': 15232970, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26886682_16-09-2025_11_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26886719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26886720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26886721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26886722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26886723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26886724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26886725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26886726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26886727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26886728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26886729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26886730, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26887474, 'dashboard_result_id': 15232971, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26887474_16-09-2025_11_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26887524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26887525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26887526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26887527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26887528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26887529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26887530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26887531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26887532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26887533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26887534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26887535, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26888048, 'dashboard_result_id': 15232972, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26888048_16-09-2025_11_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26888084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26888085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26888087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26888088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26888089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26888090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26888091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26888092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26888093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26888094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26888095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26888096, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26889279, 'dashboard_result_id': 15232973, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26889279_16-09-2025_12_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26889281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26889282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26889283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26889284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26889285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26889286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26889287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26889288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26889289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26889290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26889291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26889292, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26889585, 'dashboard_result_id': 15232974, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26889585_16-09-2025_14_00_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26889599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26889600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26889601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26889602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26889603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26889604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26889605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26889606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26889607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26889608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26889609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26889610, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26892013, 'dashboard_result_id': 15232975, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26892013_16-09-2025_13_58_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26892015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26892016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26892017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26892018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26892019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26892020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26892021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26892022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26892023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26892024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26892025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26892026, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26892468, 'dashboard_result_id': 15232976, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26892468_16-09-2025_14_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26892478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26892479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26892480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26892481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26892482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26892483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26892484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26892485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26892486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26892487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26892488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26892489, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26893103, 'dashboard_result_id': 15232977, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26893103_16-09-2025_14_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26893114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26893115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26893116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26893117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26893118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26893119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26893120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26893121, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26893122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26893123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26893124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26893125, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26893809, 'dashboard_result_id': 15232978, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26893809_16-09-2025_14_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26893819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26893820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26893821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26893822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26893823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26893824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26893825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26893826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26893827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26893828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26893829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26893830, 'pht': 3726}}"}, {'dashboat_entry_day': 2292505, 'dashboard_run_id': 2304481, 'mtr_portfolio_id': 26894240, 'dashboard_result_id': 15232979, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26894240_16-09-2025_14_50_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26894250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26894251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26894252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26894253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26894254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26894255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26894256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26894257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26894258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26894259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26894260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26894261, '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 = 26872491 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725542, 'mtr_portfolio_id': 26872491, 'created_at': datetime.datetime(2025, 9, 16, 6, 8, 29), 'result': '0.08996930713668912', 'result_long': None, 'result_double': None}] Qualite : 0.08996930713668912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26872491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26872491_16-09-2025_06_08_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26872491 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26872491_16-09-2025_06_08_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26872492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26872493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26872494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26872495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26872496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26872497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26872498, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26872499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26872500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26872501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26872502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26872503, 'pht': 3726}}" where mtr_portfolio_id = 26872491 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26872491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232944, 0.08996930713668912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26872491_16-09-2025_06_08_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26872492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26872493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26872494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26872495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26872496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26872497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26872498, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26872499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26872500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26872501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26872502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26872503, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26872955 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26872955 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26872955 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26872955 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26872955 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26872955 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26872955_16-09-2025_06_09_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26872955 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26872955_16-09-2025_06_09_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26872959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26872960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26872961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26872962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26872963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26872964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26872965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26872966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26872967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26872968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26872969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26872970, 'pht': 3726}}" where mtr_portfolio_id = 26872955 and dashboard_run_id = 2304481 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26873034 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725544, 'mtr_portfolio_id': 26873034, 'created_at': datetime.datetime(2025, 9, 16, 6, 9, 59), 'result': '0.0176056895775625', 'result_long': None, 'result_double': None}] Qualite : 0.0176056895775625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26873034 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873034_16-09-2025_06_09_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26873034 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873034_16-09-2025_06_09_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873046, 'pht': 3726}}" where mtr_portfolio_id = 26873034 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26873034 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232946, 0.0176056895775625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873034_16-09-2025_06_09_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873046, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26873180 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725545, 'mtr_portfolio_id': 26873180, 'created_at': datetime.datetime(2025, 9, 16, 6, 10, 29), 'result': '0.018418942794147086', 'result_long': None, 'result_double': None}] Qualite : 0.018418942794147086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26873180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873180_16-09-2025_06_10_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26873180 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873180_16-09-2025_06_10_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873196, 'pht': 3726}}" where mtr_portfolio_id = 26873180 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26873180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232947, 0.018418942794147086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873180_16-09-2025_06_10_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873196, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26873435 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725546, 'mtr_portfolio_id': 26873435, 'created_at': datetime.datetime(2025, 9, 16, 6, 10, 41), 'result': '0.0400422382213335', 'result_long': None, 'result_double': None}] Qualite : 0.0400422382213335 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26873435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873435_16-09-2025_06_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26873435 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873435_16-09-2025_06_10_41.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873447, 'pht': 3726}}" where mtr_portfolio_id = 26873435 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26873435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232948, 0.0400422382213335, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873435_16-09-2025_06_10_41.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873447, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26873696 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725547, 'mtr_portfolio_id': 26873696, 'created_at': datetime.datetime(2025, 9, 16, 6, 11, 28), 'result': '0.06601142789670653', 'result_long': None, 'result_double': None}] Qualite : 0.06601142789670653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26873696 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873696_16-09-2025_06_11_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26873696 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873696_16-09-2025_06_11_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873709, 'pht': 3726}}" where mtr_portfolio_id = 26873696 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26873696 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232949, 0.06601142789670653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873696_16-09-2025_06_11_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26873707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873709, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26873917 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725548, 'mtr_portfolio_id': 26873917, 'created_at': datetime.datetime(2025, 9, 16, 6, 11, 58), 'result': '0.045026280689460504', 'result_long': None, 'result_double': None}] Qualite : 0.045026280689460504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26873917 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873917_16-09-2025_06_12_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26873917 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873917_16-09-2025_06_12_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26873918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873929, 'pht': 3726}}" where mtr_portfolio_id = 26873917 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26873917 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232950, 0.045026280689460504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26873917_16-09-2025_06_12_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26873918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26873919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26873920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26873921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26873922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26873923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26873924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26873925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26873926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26873927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26873928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26873929, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26874222 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725478, 'mtr_portfolio_id': 26874222, 'created_at': datetime.datetime(2025, 9, 16, 5, 46, 58), 'result': '0.05545612836638629', 'result_long': None, 'result_double': None}] Qualite : 0.05545612836638629 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26874222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874222_16-09-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26874222 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874222_16-09-2025_05_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26874226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26874227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26874228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26874229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26874230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26874231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26874232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26874233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26874234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26874235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26874236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26874237, 'pht': 3726}}" where mtr_portfolio_id = 26874222 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26874222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232951, 0.05545612836638629, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874222_16-09-2025_05_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26874226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26874227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26874228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26874229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26874230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26874231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26874232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26874233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26874234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26874235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26874236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26874237, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26874538 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725650, 'mtr_portfolio_id': 26874538, 'created_at': datetime.datetime(2025, 9, 16, 6, 3, 33), 'result': '0.05639373998603463', 'result_long': None, 'result_double': None}] Qualite : 0.05639373998603463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26874538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874538_16-09-2025_06_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26874538 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874538_16-09-2025_06_03_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26874546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26874547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26874548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26874549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26874550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26874551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26874552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26874553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26874554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26874555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26874556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26874557, 'pht': 3726}}" where mtr_portfolio_id = 26874538 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26874538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232952, 0.05639373998603463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874538_16-09-2025_06_03_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26874546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26874547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26874548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26874549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26874550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26874551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26874552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26874553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26874554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26874555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26874556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26874557, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26874959 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725731, 'mtr_portfolio_id': 26874959, 'created_at': datetime.datetime(2025, 9, 16, 6, 18, 56), 'result': '0.04974897307980634', 'result_long': None, 'result_double': None}] Qualite : 0.04974897307980634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26874959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874959_16-09-2025_06_18_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26874959 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874959_16-09-2025_06_18_56.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26874970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26874971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26874972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26874973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26874974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26874975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26874976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26874977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26874978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26874979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26874980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26874981, 'pht': 3726}}" where mtr_portfolio_id = 26874959 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26874959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232953, 0.04974897307980634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26874959_16-09-2025_06_18_56.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26874970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26874971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26874972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26874973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26874974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26874975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26874976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26874977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26874978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26874979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26874980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26874981, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26875435 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725818, 'mtr_portfolio_id': 26875435, 'created_at': datetime.datetime(2025, 9, 16, 6, 33, 33), 'result': '0.059664478912952984', 'result_long': None, 'result_double': None}] Qualite : 0.059664478912952984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26875435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26875435_16-09-2025_06_33_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26875435 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26875435_16-09-2025_06_33_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26875445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26875446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26875447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26875448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26875449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26875450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26875451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26875452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26875453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26875454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26875455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26875456, 'pht': 3726}}" where mtr_portfolio_id = 26875435 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26875435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232954, 0.059664478912952984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26875435_16-09-2025_06_33_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26875445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26875446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26875447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26875448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26875449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26875450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26875451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26875452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26875453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26875454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26875455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26875456, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26875862 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725899, 'mtr_portfolio_id': 26875862, 'created_at': datetime.datetime(2025, 9, 16, 6, 48, 59), 'result': '0.027460170464255182', 'result_long': None, 'result_double': None}] Qualite : 0.027460170464255182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26875862 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26875862_16-09-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26875862 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26875862_16-09-2025_06_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26875867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26875868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26875869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26875870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26875871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26875872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26875873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26875874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26875875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26875876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26875877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26875878, 'pht': 3726}}" where mtr_portfolio_id = 26875862 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26875862 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232955, 0.027460170464255182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26875862_16-09-2025_06_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26875867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26875868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26875869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26875870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26875871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26875872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26875873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26875874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26875875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26875876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26875877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26875878, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26876346 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3725967, 'mtr_portfolio_id': 26876346, 'created_at': datetime.datetime(2025, 9, 16, 7, 4, 59), 'result': '0.06480494764429505', 'result_long': None, 'result_double': None}] Qualite : 0.06480494764429505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26876346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26876346_16-09-2025_07_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26876346 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26876346_16-09-2025_07_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26876355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26876356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26876357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26876358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26876359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26876360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26876361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26876362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26876363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26876364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26876365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26876366, 'pht': 3726}}" where mtr_portfolio_id = 26876346 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26876346 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232956, 0.06480494764429505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26876346_16-09-2025_07_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26876355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26876356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26876357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26876358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26876359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26876360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26876361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26876362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26876363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26876364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26876365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26876366, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26876779 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3726045, 'mtr_portfolio_id': 26876779, 'created_at': datetime.datetime(2025, 9, 16, 7, 16, 30), 'result': '0.036552337384263826', 'result_long': None, 'result_double': None}] Qualite : 0.036552337384263826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26876779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26876779_16-09-2025_07_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26876779 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26876779_16-09-2025_07_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26876816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26876817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26876818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26876819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26876820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26876821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26876822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26876823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26876824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26876825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26876826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26876827, 'pht': 3726}}" where mtr_portfolio_id = 26876779 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26876779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232957, 0.036552337384263826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26876779_16-09-2025_07_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26876816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26876817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26876818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26876819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26876820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26876821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26876822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26876823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26876824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26876825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26876826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26876827, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26877635 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3726180, 'mtr_portfolio_id': 26877635, 'created_at': datetime.datetime(2025, 9, 16, 7, 33, 1), 'result': '0.051784321292165425', 'result_long': None, 'result_double': None}] Qualite : 0.051784321292165425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26877635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26877635_16-09-2025_07_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26877635 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26877635_16-09-2025_07_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26877658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26877659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26877660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26877661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26877662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26877663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26877664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26877665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26877666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26877667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26877668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26877669, 'pht': 3726}}" where mtr_portfolio_id = 26877635 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26877635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232958, 0.051784321292165425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26877635_16-09-2025_07_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26877658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26877659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26877660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26877661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26877662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26877663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26877664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26877665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26877666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26877667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26877668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26877669, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26878360 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3726262, 'mtr_portfolio_id': 26878360, 'created_at': datetime.datetime(2025, 9, 16, 7, 48, 56), 'result': '0.04034374862044471', 'result_long': None, 'result_double': None}] Qualite : 0.04034374862044471 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26878360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26878360_16-09-2025_07_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26878360 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26878360_16-09-2025_07_48_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26878384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26878385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26878386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26878387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26878388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26878389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26878390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26878391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26878392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26878393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26878394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26878395, 'pht': 3726}}" where mtr_portfolio_id = 26878360 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26878360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232959, 0.04034374862044471, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26878360_16-09-2025_07_48_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26878384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26878385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26878386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26878387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26878388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26878389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26878390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26878391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26878392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26878393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26878394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26878395, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26879055 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3726345, 'mtr_portfolio_id': 26879055, 'created_at': datetime.datetime(2025, 9, 16, 8, 3, 30), 'result': '0.04171435357852195', 'result_long': None, 'result_double': None}] Qualite : 0.04171435357852195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26879055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26879055_16-09-2025_08_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26879055 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26879055_16-09-2025_08_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26879137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26879138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26879140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26879141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26879142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26879143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26879144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26879145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26879146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26879147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26879148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26879149, 'pht': 3726}}" where mtr_portfolio_id = 26879055 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26879055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232960, 0.04171435357852195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26879055_16-09-2025_08_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26879137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26879138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26879140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26879141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26879142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26879143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26879144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26879145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26879146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26879147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26879148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26879149, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26879649 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3726436, 'mtr_portfolio_id': 26879649, 'created_at': datetime.datetime(2025, 9, 16, 8, 16, 57), 'result': '0.06042347356702363', 'result_long': None, 'result_double': None}] Qualite : 0.06042347356702363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26879649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26879649_16-09-2025_08_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26879649 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26879649_16-09-2025_08_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26879669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26879670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26879672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26879673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26879674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26879676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26879677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26879678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26879679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26879681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26879682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26879683, 'pht': 3726}}" where mtr_portfolio_id = 26879649 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26879649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232961, 0.06042347356702363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26879649_16-09-2025_08_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26879669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26879670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26879672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26879673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26879674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26879676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26879677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26879678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26879679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26879681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26879682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26879683, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26880214 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3726520, 'mtr_portfolio_id': 26880214, 'created_at': datetime.datetime(2025, 9, 16, 8, 33, 33), 'result': '0.07584130765775254', 'result_long': None, 'result_double': None}] Qualite : 0.07584130765775254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26880214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26880214_16-09-2025_08_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26880214 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26880214_16-09-2025_08_33_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26880248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26880249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26880250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26880251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26880252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26880253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26880254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26880255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26880256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26880257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26880258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26880259, 'pht': 3726}}" where mtr_portfolio_id = 26880214 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26880214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232962, 0.07584130765775254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26880214_16-09-2025_08_33_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26880248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26880249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26880250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26880251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26880252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26880253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26880254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26880255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26880256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26880257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26880258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26880259, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26880937 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3726612, 'mtr_portfolio_id': 26880937, 'created_at': datetime.datetime(2025, 9, 16, 8, 46, 59), 'result': '0.03547493147279946', 'result_long': None, 'result_double': None}] Qualite : 0.03547493147279946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26880937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26880937_16-09-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26880937 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26880937_16-09-2025_08_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26880938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26880939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26880940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26880941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26880942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26880943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26880944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26880945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26880946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26880947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26880948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26880949, 'pht': 3726}}" where mtr_portfolio_id = 26880937 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26880937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232963, 0.03547493147279946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26880937_16-09-2025_08_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26880938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26880939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26880940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26880941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26880942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26880943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26880944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26880945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26880946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26880947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26880948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26880949, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26881605 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3726700, 'mtr_portfolio_id': 26881605, 'created_at': datetime.datetime(2025, 9, 16, 9, 35, 32), 'result': '0.05404767814454197', 'result_long': None, 'result_double': None}] Qualite : 0.05404767814454197 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26881605 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26881605_16-09-2025_09_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26881605 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26881605_16-09-2025_09_35_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26881664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26881665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26881666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26881667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26881668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26881669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26881670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26881671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26881672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26881673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26881674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26881675, 'pht': 3726}}" where mtr_portfolio_id = 26881605 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26881605 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232964, 0.05404767814454197, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26881605_16-09-2025_09_35_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26881664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26881665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26881666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26881667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26881668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26881669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26881670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26881671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26881672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26881673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26881674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26881675, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26883495 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3726925, 'mtr_portfolio_id': 26883495, 'created_at': datetime.datetime(2025, 9, 16, 9, 46, 59), 'result': '0.062291152491363806', 'result_long': None, 'result_double': None}] Qualite : 0.062291152491363806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26883495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26883495_16-09-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26883495 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26883495_16-09-2025_09_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26883501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26883502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26883503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26883504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26883505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26883506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26883507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26883508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26883509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26883510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26883511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26883512, 'pht': 3726}}" where mtr_portfolio_id = 26883495 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26883495 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232965, 0.062291152491363806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26883495_16-09-2025_09_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26883501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26883502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26883503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26883504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26883505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26883506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26883507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26883508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26883509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26883510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26883511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26883512, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26883903 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3726954, 'mtr_portfolio_id': 26883903, 'created_at': datetime.datetime(2025, 9, 16, 10, 2, 58), 'result': '0.042552865616953345', 'result_long': None, 'result_double': None}] Qualite : 0.042552865616953345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26883903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26883903_16-09-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26883903 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26883903_16-09-2025_10_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26883912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26883913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26883914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26883915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26883916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26883917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26883918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26883919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26883920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26883921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26883922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26883923, 'pht': 3726}}" where mtr_portfolio_id = 26883903 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26883903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232966, 0.042552865616953345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26883903_16-09-2025_10_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26883912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26883913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26883914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26883915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26883916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26883917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26883918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26883919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26883920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26883921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26883922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26883923, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26884555 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3727041, 'mtr_portfolio_id': 26884555, 'created_at': datetime.datetime(2025, 9, 16, 10, 17, 30), 'result': '0.037653183858414596', 'result_long': None, 'result_double': None}] Qualite : 0.037653183858414596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26884555 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26884555_16-09-2025_10_17_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26884555 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26884555_16-09-2025_10_17_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26884581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26884582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26884583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26884584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26884585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26884586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26884587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26884588, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26884589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26884590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26884591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26884592, 'pht': 3726}}" where mtr_portfolio_id = 26884555 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26884555 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232967, 0.037653183858414596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26884555_16-09-2025_10_17_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26884581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26884582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26884583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26884584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26884585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26884586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26884587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26884588, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26884589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26884590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26884591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26884592, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26885185 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3727099, 'mtr_portfolio_id': 26885185, 'created_at': datetime.datetime(2025, 9, 16, 10, 33), 'result': '0.051889745878704895', 'result_long': None, 'result_double': None}] Qualite : 0.051889745878704895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26885185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26885185_16-09-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26885185 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26885185_16-09-2025_10_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26885189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26885190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26885191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26885192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26885193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26885194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26885195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26885196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26885197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26885198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26885199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26885200, 'pht': 3726}}" where mtr_portfolio_id = 26885185 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26885185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232968, 0.051889745878704895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26885185_16-09-2025_10_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26885189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26885190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26885191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26885192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26885193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26885194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26885195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26885196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26885197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26885198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26885199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26885200, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26885890 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3727201, 'mtr_portfolio_id': 26885890, 'created_at': datetime.datetime(2025, 9, 16, 10, 48, 58), 'result': '0.05164105061313821', 'result_long': None, 'result_double': None}] Qualite : 0.05164105061313821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26885890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26885890_16-09-2025_10_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26885890 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26885890_16-09-2025_10_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26885911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26885912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26885913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26885914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26885915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26885916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26885917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26885918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26885919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26885920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26885921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26885922, 'pht': 3726}}" where mtr_portfolio_id = 26885890 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26885890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232969, 0.05164105061313821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26885890_16-09-2025_10_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26885911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26885912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26885913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26885914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26885915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26885916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26885917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26885918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26885919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26885920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26885921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26885922, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26886682 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3727300, 'mtr_portfolio_id': 26886682, 'created_at': datetime.datetime(2025, 9, 16, 11, 2, 58), 'result': '0.03445637445317295', 'result_long': None, 'result_double': None}] Qualite : 0.03445637445317295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26886682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26886682_16-09-2025_11_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26886682 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26886682_16-09-2025_11_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26886719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26886720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26886721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26886722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26886723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26886724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26886725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26886726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26886727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26886728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26886729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26886730, 'pht': 3726}}" where mtr_portfolio_id = 26886682 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26886682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232970, 0.03445637445317295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26886682_16-09-2025_11_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26886719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26886720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26886721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26886722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26886723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26886724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26886725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26886726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26886727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26886728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26886729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26886730, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26887474 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3727397, 'mtr_portfolio_id': 26887474, 'created_at': datetime.datetime(2025, 9, 16, 11, 16, 59), 'result': '0.03895381769537987', 'result_long': None, 'result_double': None}] Qualite : 0.03895381769537987 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26887474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26887474_16-09-2025_11_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26887474 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26887474_16-09-2025_11_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26887524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26887525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26887526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26887527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26887528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26887529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26887530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26887531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26887532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26887533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26887534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26887535, 'pht': 3726}}" where mtr_portfolio_id = 26887474 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26887474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232971, 0.03895381769537987, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26887474_16-09-2025_11_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26887524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26887525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26887526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26887527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26887528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26887529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26887530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26887531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26887532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26887533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26887534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26887535, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26888048 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3727538, 'mtr_portfolio_id': 26888048, 'created_at': datetime.datetime(2025, 9, 16, 11, 34, 58), 'result': '0.06327779380902279', 'result_long': None, 'result_double': None}] Qualite : 0.06327779380902279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26888048 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26888048_16-09-2025_11_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26888048 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26888048_16-09-2025_11_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26888084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26888085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26888087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26888088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26888089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26888090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26888091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26888092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26888093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26888094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26888095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26888096, 'pht': 3726}}" where mtr_portfolio_id = 26888048 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26888048 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232972, 0.06327779380902279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26888048_16-09-2025_11_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26888084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26888085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26888087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26888088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26888089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26888090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26888091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26888092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26888093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26888094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26888095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26888096, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26889279 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3727680, 'mtr_portfolio_id': 26889279, 'created_at': datetime.datetime(2025, 9, 16, 12, 3), 'result': '0.03775922171302516', 'result_long': None, 'result_double': None}] Qualite : 0.03775922171302516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26889279 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26889279_16-09-2025_12_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26889279 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26889279_16-09-2025_12_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26889281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26889282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26889283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26889284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26889285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26889286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26889287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26889288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26889289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26889290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26889291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26889292, 'pht': 3726}}" where mtr_portfolio_id = 26889279 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26889279 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232973, 0.03775922171302516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26889279_16-09-2025_12_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26889281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26889282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26889283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26889284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26889285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26889286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26889287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26889288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26889289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26889290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26889291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26889292, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26889585 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3727720, 'mtr_portfolio_id': 26889585, 'created_at': datetime.datetime(2025, 9, 16, 14, 0), 'result': '0.03226749971980828', 'result_long': None, 'result_double': None}] Qualite : 0.03226749971980828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26889585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26889585_16-09-2025_14_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26889585 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26889585_16-09-2025_14_00_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26889599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26889600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26889601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26889602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26889603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26889604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26889605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26889606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26889607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26889608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26889609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26889610, 'pht': 3726}}" where mtr_portfolio_id = 26889585 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26889585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232974, 0.03226749971980828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26889585_16-09-2025_14_00_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26889599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26889600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26889601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26889602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26889603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26889604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26889605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26889606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26889607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26889608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26889609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26889610, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26892013 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3728006, 'mtr_portfolio_id': 26892013, 'created_at': datetime.datetime(2025, 9, 16, 14, 0, 28), 'result': '0.04083280388422428', 'result_long': None, 'result_double': None}] Qualite : 0.04083280388422428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26892013 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26892013_16-09-2025_14_00_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26892013 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26892013_16-09-2025_14_00_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26892015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26892016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26892017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26892018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26892019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26892020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26892021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26892022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26892023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26892024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26892025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26892026, 'pht': 3726}}" where mtr_portfolio_id = 26892013 and dashboard_run_id = 2304481 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26892013 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232975, 0.04083280388422428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26892013_16-09-2025_14_00_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26892015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26892016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26892017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26892018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26892019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26892020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26892021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26892022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26892023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26892024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26892025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26892026, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26892468 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3728063, 'mtr_portfolio_id': 26892468, 'created_at': datetime.datetime(2025, 9, 16, 14, 19), 'result': '0.03563383623754881', 'result_long': None, 'result_double': None}] Qualite : 0.03563383623754881 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26892468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26892468_16-09-2025_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26892468 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26892468_16-09-2025_14_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26892478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26892479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26892480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26892481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26892482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26892483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26892484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26892485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26892486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26892487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26892488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26892489, 'pht': 3726}}" where mtr_portfolio_id = 26892468 and dashboard_run_id = 2304484 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26892468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232976, 0.03563383623754881, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26892468_16-09-2025_14_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26892478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26892479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26892480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26892481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26892482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26892483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26892484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26892485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26892486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26892487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26892488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26892489, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26893103 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3728117, 'mtr_portfolio_id': 26893103, 'created_at': datetime.datetime(2025, 9, 16, 14, 32, 58), 'result': '0.06394459679230455', 'result_long': None, 'result_double': None}] Qualite : 0.06394459679230455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26893103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26893103_16-09-2025_14_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26893103 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26893103_16-09-2025_14_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26893114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26893115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26893116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26893117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26893118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26893119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26893120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26893121, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26893122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26893123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26893124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26893125, 'pht': 3726}}" where mtr_portfolio_id = 26893103 and dashboard_run_id = 2304484 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26893103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232977, 0.06394459679230455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26893103_16-09-2025_14_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26893114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26893115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26893116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26893117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26893118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26893119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26893120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26893121, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26893122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26893123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26893124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26893125, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26893809 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3728191, 'mtr_portfolio_id': 26893809, 'created_at': datetime.datetime(2025, 9, 16, 14, 47), 'result': '0.04563693032972079', 'result_long': None, 'result_double': None}] Qualite : 0.04563693032972079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26893809 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26893809_16-09-2025_14_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26893809 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26893809_16-09-2025_14_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26893819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26893820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26893821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26893822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26893823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26893824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26893825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26893826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26893827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26893828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26893829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26893830, 'pht': 3726}}" where mtr_portfolio_id = 26893809 and dashboard_run_id = 2304484 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26893809 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232978, 0.04563693032972079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26893809_16-09-2025_14_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26893819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26893820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26893821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26893822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26893823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26893824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26893825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26893826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26893827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26893828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26893829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26893830, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26894240 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3728247, 'mtr_portfolio_id': 26894240, 'created_at': datetime.datetime(2025, 9, 16, 14, 53, 1), 'result': '0.045594952887373884', 'result_long': None, 'result_double': None}] Qualite : 0.045594952887373884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26894240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26894240_16-09-2025_14_53_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26894240 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26894240_16-09-2025_14_53_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26894250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26894251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26894252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26894253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26894254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26894255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26894256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26894257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26894258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26894259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26894260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26894261, 'pht': 3726}}" where mtr_portfolio_id = 26894240 and dashboard_run_id = 2304484 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26894240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15232979, 0.045594952887373884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26894240_16-09-2025_14_53_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26894250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26894251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26894252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26894253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26894254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26894255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26894256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26894257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26894258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26894259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26894260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26894261, '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 (26872491,26872955,26873034,26873180,26873435,26873696,26873917,26874222,26874538,26874959,26875435,26875862,26876346,26876779,26877635,26878360,26879055,26879649,26880214,26880937,26881605,26883495,26883903,26884555,26885185,26885890,26886682,26887474,26888048,26889279,26889585,26892013,26892468,26893103,26893809,26894240) result : ((1383840816,), (1383840885,), (1383840914,), (1383840932,), (1383840981,), (1383841042,), (1383841104,), (1383841138,), (1383841139,), (1383841239,), (1383842933,), (1383842963,), (1383843023,), (1383843057,), (1383843079,), (1383843122,), (1383843138,), (1383843185,), (1383843399,), (1383843400,), (1383843438,), (1383843469,), (1383843489,), (1383843508,), (1383843559,), (1383843575,), (1383843576,), (1383843714,), (1383843872,), (1383843884,), (1383843898,), (1383843916,), (1383843933,), (1383843934,), (1383843949,), (1383843972,), (1383844007,), (1383844008,), (1383844072,), (1383844073,), (1383844089,), (1383844481,), (1383844496,), (1383844509,), (1383844510,), (1383844511,), (1383844512,), (1383844523,), (1383844573,), (1383844598,), (1383844599,), (1383844616,), (1383844645,), (1383844651,), (1383844762,), (1383846105,), (1383846135,), (1383846172,), (1383846175,), (1383846178,), (1383846182,), (1383846228,), (1383846231,), (1383846250,), (1383846267,), (1383846315,), (1383846317,), (1383846341,), (1383846343,), (1383846346,), (1383846349,), (1383846361,), (1383846364,), (1383846365,), (1383846369,), (1383846374,), (1383846406,), (1383846408,), (1383846426,), (1383846428,), (1383846430,), (1383846434,), (1383846471,), (1383846498,), (1383846501,), (1383846521,), (1383846523,), (1383846525,), (1383846544,), (1383846587,), (1383846589,), (1383846591,), (1383846619,), (1383846621,), (1383846623,), (1383846626,), (1383846630,), (1383846641,), (1383846643,), (1383846645,), (1383846648,), (1383846652,), (1383846672,), (1383846677,), (1383846680,), (1383846704,), (1383846707,), (1383846710,), (1383846715,), (1383846719,), (1383846726,), (1383846742,), (1383846749,), (1383846754,), (1383846758,), (1383846762,), (1383846764,), (1383846774,), (1383846776,), (1383846778,), (1383846784,), (1383846787,), (1383846790,), (1383846792,), (1383846794,), (1383846796,), (1383846798,), (1383846801,), (1383846805,), (1383846814,), (1383846817,), (1383846820,), (1383846822,), (1383846826,), (1383846829,), (1383846835,), (1383846838,), (1383846841,), (1383846844,), (1383846847,), (1383846851,), (1383846861,), (1383846870,), (1383846872,), (1383846874,), (1383846878,), (1383846880,), (1383846920,), (1383846909,), (1383846911,), (1383846912,), (1383846914,), (1383846917,), (1383846933,), (1383846940,), (1383846942,), (1383846952,), (1383846955,), (1383846957,), (1383846960,), (1383846979,), (1383846982,), (1383846983,), (1383846986,), (1383846998,), (1383847000,), (1383847001,), (1383847003,), (1383847017,), (1383847018,), (1383847019,), (1383847021,), (1383847024,), (1383847034,), (1383847035,), (1383847036,), (1383847038,), (1383847040,), (1383847053,), (1383847054,), (1383847055,), (1383847057,), (1383847061,), (1383847065,), (1383847076,), (1383847079,), (1383847080,), (1383847083,), (1383847087,), (1383847110,), (1383847111,), (1383847112,), (1383847114,), (1383847117,), (1383847148,), (1383847150,), (1383847151,), (1383847153,), (1383847155,), (1383847169,), (1383847170,), (1383847171,), (1383847173,), (1383847185,), (1383847187,), (1383847188,), (1383847190,), (1383847193,), (1383847195,), (1383847227,), (1383847228,), (1383847230,), (1383847233,), (1383847237,), (1383847241,), (1383847250,), (1383847252,), (1383847253,), (1383847279,), (1383847275,), (1383847277,), (1383847297,), (1383847298,), (1383847299,), (1383847301,), (1383847304,), (1383847332,), (1383847353,), (1383847356,), (1383847387,), (1383847388,), (1383847389,), (1383847393,), (1383847396,), (1383847420,), (1383847421,), (1383847422,), (1383847424,), (1383847427,), (1383847445,), (1383847448,), (1383847450,), (1383847468,), (1383847471,), (1383847473,), (1383847503,), (1383847508,), (1383847510,), (1383847513,), (1383847515,), (1383847517,), (1383847524,), (1383847526,), (1383847527,), (1383847529,), (1383847549,), (1383847550,), (1383847551,), (1383847553,), (1383847556,), (1383847559,), (1383847576,), (1383847578,), (1383847579,), (1383847581,), (1383847584,), (1383847614,), (1383847615,), (1383847617,), (1383847621,), (1383847625,), (1383847628,), (1383847631,), (1383847632,), (1383847633,), (1383847642,), (1383847645,), (1383847652,), (1383847660,), (1383847667,), (1383847670,), (1383847677,), (1383847678,), (1383847682,), (1383847684,), (1383847696,), (1383847690,), (1383847692,), (1383847694,), (1383847716,), (1383847717,), (1383847718,), (1383847720,), (1383847730,), (1383847731,), (1383847732,), (1383847734,), (1383847737,), (1383847740,), (1383847754,), (1383847757,), (1383847759,), (1383847761,), (1383847777,), (1383847779,), (1383847780,), (1383847782,), (1383847801,), (1383847802,), (1383847803,), (1383847805,), (1383847815,), (1383847818,), (1383847819,), (1383847821,), (1383847824,), (1383847851,), (1383847858,), (1383847861,), (1383847864,), (1383847868,), (1383847875,), (1383847876,), (1383847877,), (1383847898,), (1383847899,), (1383847900,), (1383847902,), (1383847905,), (1383847909,), (1383847923,), (1383847925,), (1383847928,), (1383847932,), (1383847952,), (1383847953,), (1383847954,), (1383847956,), (1383847968,), (1383847970,), (1383847999,), (1383848002,), (1383848004,), (1383848008,), (1383848012,), (1383848024,), (1383848027,), (1383848029,), (1383848032,), (1383848068,), (1383848059,), (1383848060,), (1383848062,), (1383848065,), (1383848078,), (1383848081,), (1383848083,), (1383848085,), (1383848088,), (1383848114,), (1383848117,), (1383848118,), (1383848120,), (1383848123,), (1383848141,), (1383848142,), (1383848143,), (1383848146,), (1383848150,), (1383848153,), (1383848162,), (1383848164,), (1383848190,), (1383848193,), (1383848197,), (1383848201,), (1383848205,), (1383848229,), (1383848230,), (1383848231,), (1383848233,), (1383848236,), (1383848239,), (1383848256,), (1383848259,), (1383848260,), (1383848265,), (1383848292,), (1383848310,), (1383848311,), (1383848312,), (1383848314,), (1383848317,), (1383848319,), (1383848340,), (1383848342,), (1383848343,), (1383848345,), (1383848348,), (1383848364,), (1383848369,), (1383848413,), (1383848415,), (1383848417,), (1383848420,), (1383848435,), (1383848438,), (1383848444,), (1383848452,), (1383848457,), (1383848461,), (1383848475,), (1383848481,), (1383848482,), (1383848484,), (1383848487,), (1383848490,), (1383848511,), (1383848514,), (1383848516,), (1383848518,), (1383848522,), (1383848537,), (1383848538,), (1383848539,), (1383848541,), (1383848544,), (1383848575,), (1383848578,), (1383848579,), (1383848581,), (1383848594,), (1383848596,), (1383848598,), (1383848600,), (1383848623,), (1383848624,), (1383848626,), (1383848629,), (1383848632,), (1383848636,), (1383848651,), (1383848654,), (1383848656,), (1383848659,), (1383848662,), (1383848681,), (1383848682,), (1383848683,), (1383848685,), (1383848704,), (1383848705,), (1383848706,), (1383848708,), (1383848711,), (1383848733,), (1383848738,), (1383848739,), (1383848742,), (1383848746,), (1383848764,), (1383848765,), (1383848766,), (1383848768,), (1383848795,), (1383848796,), (1383848809,), (1383848811,), (1383848813,), (1383848833,), (1383848835,), (1383848837,), (1383848839,), (1383848857,), (1383848859,), (1383848860,), (1383848880,), (1383848881,), (1383848882,), (1383848884,), (1383848887,), (1383848898,), (1383848900,), (1383848901,), (1383848931,), (1383848914,), (1383848918,), (1383848921,), (1383848926,), (1383848944,), (1383848946,), (1383848948,), (1383848951,), (1383848977,), (1383848979,), (1383848980,), (1383848982,), (1383848985,), (1383848995,), (1383848997,), (1383848998,), (1383849020,), (1383849022,), (1383849023,), (1383849026,), (1383849029,), (1383849032,), (1383849053,), (1383849054,), (1383849055,), (1383849057,), (1383849060,), (1383849063,), (1383849089,), (1383849091,), (1383849106,), (1383849107,), (1383849108,), (1383849110,), (1383849113,), (1383849115,), (1383849137,), (1383849138,), (1383849140,), (1383849143,), (1383849146,), (1383849158,), (1383849172,), (1383849174,), (1383849177,), (1383849200,), (1383849201,), (1383849202,), (1383849204,), (1383849206,), (1383849208,), (1383849224,), (1383849225,), (1383849226,), (1383849228,), (1383849231,), (1383849252,), (1383849253,), (1383849254,), (1383849256,), (1383849259,), (1383849272,), (1383849276,), (1383849280,), (1383849285,), (1383849289,), (1383849295,), (1383849336,), (1383849339,), (1383849401,), (1383849405,), (1383849321,), (1383849327,), (1383849358,), (1383849359,), (1383849360,), (1383849361,), (1383849363,), (1383849364,), (1383849368,), (1383849371,), (1383849379,), (1383849384,), (1383849390,), (1383849396,), (1383849412,), (1383849414,), (1383849417,), (1383849420,), (1383849429,), (1383849431,), (1383849433,), (1383849436,), (1383849456,), (1383849457,), (1383849458,), (1383849460,), (1383849465,), (1383849499,), (1383849500,), (1383849501,), (1383849503,), (1383849507,), (1383849518,), (1383849522,), (1383849598,), (1383849601,), (1383849604,), (1383849611,), (1383849616,), (1383849629,), (1383849663,), (1383849665,), (1383849666,), (1383849669,), (1383849674,), (1383849677,), (1383849757,), (1383849758,), (1383849759,), (1383849796,), (1383849836,), (1383849876,), (1383849904,), (1383849936,), (1383850149,), (1383850163,), (1383850165,), (1383850167,), (1383850208,), (1383850211,), (1383850229,), (1383850256,), (1383850360,), (1383850383,), (1383850404,), (1383850408,), (1383850415,), (1383850454,), (1383850452,), (1383850491,), (1383850493,), (1383850505,), (1383850530,), (1383850554,), (1383850602,), (1383850607,), (1383850609,), (1383850708,), (1383850711,), (1383850720,), (1383850750,), (1383851123,), (1383851154,), (1383851177,), (1383851180,), (1383851187,), (1383851191,), (1383851296,), (1383851298,), (1383851301,), (1383851319,), (1383851340,), (1383851348,), (1383851414,), (1383851416,), (1383851417,), (1383851420,), (1383851436,), (1383851438,), (1383851439,), (1383851656,), (1383851679,), (1383851691,), (1383851702,), (1383851706,), (1383851716,), (1383851717,), (1383851718,), (1383851721,), (1383851725,), (1383851730,), (1383851771,), (1383851777,), (1383851779,), (1383851784,), (1383851788,), (1383851791,), (1383851859,), (1383851868,), (1383851869,), (1383851870,), (1383851872,), (1383851874,), (1383851876,), (1383851880,), (1383851885,), (1383851954,), (1383851962,), (1383851969,), (1383851971,), (1383851976,), (1383852105,), (1383852129,), (1383852153,), (1383852180,), (1383852407,), (1383852420,), (1383852422,), (1383852426,), (1383852445,), (1383852476,), (1383852623,), (1383852619,), (1383852620,), (1383852621,), (1383852665,), (1383852691,), (1383852702,), (1383852711,), (1383852715,), (1383852731,), (1383852775,), (1383852776,), (1383852777,), (1383852785,), (1383852788,), (1383852800,), (1383852812,), (1383852815,), (1383852817,), (1383852819,), (1383852822,), (1383852840,), (1383852849,), (1383852855,), (1383852858,), (1383852863,), (1383852868,), (1383852903,), (1383852910,), (1383852914,), (1383852921,), (1383852949,), (1383853078,), (1383853079,), (1383853291,), (1383853316,), (1383853334,), (1383853339,), (1383853349,), (1383853355,), (1383853413,), (1383853414,), (1383853415,), (1383853419,), (1383853422,), (1383853425,), (1383853548,), (1383853573,), (1383853610,), (1383853647,), (1383853685,), (1383853757,), (1383853759,), (1383853761,), (1383853763,), (1383853792,), (1383853794,), (1383853795,), (1383853797,), (1383853800,), (1383853803,), (1383853847,), (1383853857,), (1383853868,), (1383853875,), (1383853881,), (1383853915,), (1383853920,), (1383854071,), (1383854077,), (1383854080,), (1383854092,), (1383854098,), (1383854109,), (1383854134,), (1383854122,), (1383854123,), (1383854124,), (1383854126,), (1383854130,), (1383854205,), (1383854212,), (1383854242,), (1383854466,), (1383854476,), (1383854480,), (1383854482,), (1383854487,), (1383854641,), (1383854665,), (1383854669,), (1383854673,), (1383854676,), (1383854699,), (1383854703,), (1383854705,), (1383854710,), (1383854715,), (1383854720,), (1383854739,), (1383854740,), (1383854741,), (1383854774,), (1383854777,), (1383854780,), (1383854783,), (1383854786,), (1383854789,), (1383854808,), (1383854812,), (1383854820,), (1383854822,), (1383854826,), (1383854845,), (1383854908,), (1383854911,), (1383854928,), (1383854933,), (1383854956,), (1383854968,), (1383854970,), (1383854972,), (1383854976,), (1383855063,), (1383855066,), (1383855069,), (1383855121,), (1383855125,), (1383855139,), (1383855142,), (1383855146,), (1383855187,), (1383855195,), (1383855199,), (1383855203,), (1383855243,), (1383855247,), (1383855259,), (1383855262,), (1383855270,), (1383855271,), (1383855274,), (1383855275,), (1383855293,), (1383855294,), (1383855297,), (1383855298,), (1383855327,), (1383855314,), (1383855316,), (1383855320,), (1383855323,), (1383855364,), (1383855367,), (1383855412,), (1383855414,), (1383855415,), (1383855417,), (1383855443,), (1383855446,), (1383855448,), (1383855451,), (1383855456,), (1383855477,), (1383855478,), (1383855479,), (1383855480,), (1383855515,), (1383855519,), (1383855522,), (1383855599,), (1383855600,), (1383855601,), (1383855612,), (1383855680,), (1383855683,), (1383855685,), (1383855688,), (1383855692,), (1383855795,), (1383855813,), (1383855815,), (1383855827,), (1383855832,), (1383855837,), (1383855857,), (1383855860,), (1383855862,), (1383856061,), (1383856076,), (1383856139,), (1383856142,), (1383856145,), (1383856149,), (1383856153,), (1383856203,), (1383856205,), (1383856207,), (1383856281,), (1383856286,), (1383856288,), (1383856291,), (1383856316,), (1383856324,), (1383856326,), (1383856328,), (1383856358,), (1383856355,), (1383856357,), (1383856389,), (1383856391,), (1383856404,), (1383856484,), (1383856495,), (1383856523,), (1383856545,), (1383856720,), (1383856722,), (1383856742,), (1383856747,), (1383856764,), (1383856904,), (1383856931,), (1383856955,), (1383856959,), (1383856974,), (1383856985,), (1383856999,), (1383857010,), (1383857024,), (1383857199,), (1383857203,), (1383857204,), (1383857208,), (1383857213,), (1383857266,), (1383857268,), (1383857446,), (1383857457,), (1383857459,), (1383857477,), (1383857480,), (1383857484,), (1383857504,), (1383857505,), (1383857558,), (1383857559,), (1383857560,), (1383857563,), (1383857584,), (1383857586,), (1383857588,), (1383857633,), (1383857635,), (1383857637,), (1383857639,), (1383857643,), (1383857664,), (1383857666,), (1383857668,), (1383857689,), (1383857696,), (1383857706,), (1383857708,), (1383857711,), (1383857746,), (1383857739,), (1383857740,), (1383857741,), (1383857743,), (1383857759,), (1383857761,), (1383857762,), (1383857764,), (1383857767,), (1383857781,), (1383857792,), (1383857793,), (1383857795,), (1383857870,), (1383857874,), (1383857876,), (1383857894,), (1383857895,), (1383857897,), (1383857955,), (1383857960,), (1383857962,), (1383857971,), (1383858055,), (1383858058,), (1383858059,), (1383858061,), (1383858108,), (1383858109,), (1383858110,), (1383858140,), (1383858142,), (1383858152,), (1383858156,), (1383858160,), (1383858342,), (1383858353,), (1383858373,), (1383858382,), (1383858410,), (1383858413,), (1383858416,), (1383858420,), (1383858463,), (1383858466,), (1383858467,), (1383858469,), (1383858473,), (1383858490,), (1383858492,), (1383858494,), (1383858528,), (1383858531,), (1383858532,), (1383858536,), (1383858702,), (1383858705,), (1383858706,), (1383858708,), (1383858710,), (1383858713,), (1383858802,), (1383858775,), (1383858792,), (1383858910,), (1383858921,), (1383858926,), (1383858994,), (1383858997,), (1383859099,), (1383859101,), (1383859162,), (1383859165,), (1383859167,), (1383859169,), (1383859173,), (1383859263,), (1383859264,), (1383859265,), (1383859339,), (1383859341,), (1383859342,), (1383859344,), (1383859364,), (1383859402,), (1383859404,), (1383859405,), (1383859407,), (1383859430,), (1383859431,), (1383863160,), (1383863415,), (1383863127,), (1383863129,), (1383863150,), (1383863350,), (1383863353,), (1383863380,), (1383863390,), (1383863393,), (1383863396,), (1383863408,), (1383863410,), (1383863417,), (1383863571,), (1383863603,), (1383864589,), (1383865013,), (1383865039,), (1383865061,), (1383865066,), (1383865069,), (1383865304,), (1383865627,), (1383865957,), (1383865959,), (1383865961,), (1383866266,), (1383866298,), (1383866324,), (1383866349,), (1383866376,), (1383866597,), (1383866837,), (1383866839,), (1383866972,), (1383866928,), (1383866950,), (1383867249,), (1383867269,), (1383867270,), (1383867411,), (1383867413,), (1383867414,), (1383867570,), (1383867599,), (1383867742,), (1383867743,), (1383867744,), (1383867746,), (1383867749,), (1383867769,), (1383867807,), (1383867862,), (1383867863,), (1383867864,), (1383867866,), (1383867885,), (1383867886,), (1383867888,), (1383867891,), (1383867894,), (1383867908,), (1383867909,), (1383867910,), (1383867933,), (1383867935,), (1383868021,), (1383868029,), (1383868048,), (1383868066,), (1383868071,), (1383868093,), (1383868094,), (1383868095,), (1383868097,), (1383868100,), (1383868115,), (1383868117,), (1383868118,), (1383868120,), (1383868125,), (1383868152,), (1383868156,), (1383868253,), (1383868247,), (1383868295,), (1383868299,), (1383868302,), (1383868305,), (1383868311,), (1383868338,), (1383868547,), (1383868604,), (1383868618,), (1383868627,), (1383868671,), (1383868706,), (1383868737,), (1383868755,), (1383868778,), (1383868822,), (1383868845,), (1383868854,), (1383868857,), (1383868868,), (1383868872,), (1383869092,), (1383869120,), (1383869143,), (1383869158,), (1383869166,), (1383869171,), (1383869316,), (1383869318,), (1383869320,), (1383869324,), (1383869329,), (1383869539,), (1383869627,), (1383869652,), (1383869679,), (1383869705,), (1383869734,), (1383869870,), (1383869893,), (1383869915,), (1383869952,), (1383870462,), (1383870486,), (1383870517,), (1383870563,), (1383870770,), (1383870772,), (1383870774,), (1383870776,), (1383870779,), (1383870840,), (1383870860,), (1383870861,), (1383870863,), (1383870892,), (1383871139,), (1383871163,), (1383871192,), (1383871240,), (1383871606,), (1383871620,), (1383871637,), (1383871655,), (1383871681,), (1383871706,), (1383872003,), (1383872049,), (1383872097,), (1383872149,), (1383872179,), (1383872219,), (1383872448,), (1383872451,), (1383872454,), (1383872458,), (1383872480,), (1383872944,), (1383872763,), (1383872816,), (1383872865,), (1383872915,), (1383873260,), (1383873262,), (1383873268,), (1383873289,), (1383873432,), (1383873433,), (1383873434,), (1383873437,), (1383873452,), (1383873460,), (1383873673,), (1383873680,), (1383873682,), (1383873684,), (1383873715,), (1383873716,), (1383873717,), (1383873719,), (1383873723,), (1383873738,), (1383873740,), (1383873741,), (1383873742,), (1383873746,), (1383873750,), (1383873789,), (1383873794,), (1383873797,), (1383873802,), (1383873805,), (1383873855,), (1383873856,), (1383873858,), (1383873862,), (1383873866,), (1383873868,), (1383873892,), (1383873894,), (1383873895,), (1383873897,), (1383873909,), (1383873914,), (1383873917,), (1383873924,), (1383873943,), (1383873945,), (1383873946,), (1383873949,), (1383873953,), (1383873957,), (1383874012,), (1383874014,), (1383874016,), (1383874020,), (1383874026,), (1383874197,), (1383874200,), (1383874202,), (1383874218,), (1383874382,), (1383874438,), (1383874472,), (1383874476,), (1383874482,), (1383874494,), (1383874563,), (1383874570,), (1383874575,), (1383874578,), (1383874583,), (1383874608,), (1383874611,), (1383874612,), (1383874615,), (1383874620,), (1383874624,), (1383874664,), (1383874654,), (1383874656,), (1383874657,), (1383874659,), (1383874685,), (1383874687,), (1383874688,), (1383874690,), (1383874695,), (1383874699,), (1383874711,), (1383874719,), (1383874752,), (1383874806,), (1383874856,), (1383874907,), (1383875108,), (1383875171,), (1383875221,), (1383875267,), (1383875451,), (1383875455,), (1383875462,), (1383875485,), (1383875507,), (1383875636,), (1383875661,), (1383875682,), (1383875732,), (1383875792,), (1383875855,), (1383876128,), (1383876155,), (1383876340,), (1383876342,), (1383876351,), (1383876363,), (1383876649,), (1383876675,), (1383876704,), (1383876727,), (1383876756,), (1383876800,), (1383876895,), (1383876897,), (1383876898,), (1383876900,), (1383877290,), (1383877318,), (1383877380,), (1383877462,), (1383877520,), (1383877561,), (1383877722,), (1383877739,), (1383877741,), (1383877947,), (1383877997,), (1383878047,), (1383878097,), (1383878220,), (1383878221,), (1383878223,), (1383878227,), (1383878230,), (1383878234,), (1383878244,), (1383878248,), (1383878252,), (1383878254,), (1383878256,), (1383878272,), (1383878358,), (1383878360,), (1383878361,), (1383878362,), (1383878365,), (1383878614,), (1383878538,), (1383878547,), (1383878578,), (1383878605,), (1383878611,), (1383878661,), (1383878678,), (1383878697,), (1383878722,), (1383878805,), (1383878812,), (1383878844,), (1383878873,), (1383878907,), (1383878953,), (1383878957,), (1383878968,), (1383878970,), (1383878975,), (1383879325,), (1383879351,), (1383879375,), (1383879401,), (1383879404,), (1383879554,), (1383879580,), (1383879597,), (1383879606,), (1383879640,), (1383879743,), (1383879745,), (1383879772,), (1383879797,), (1383879839,), (1383880168,), (1383880191,), (1383880217,), (1383880246,), (1383880299,), (1383880350,), (1383880453,), (1383880458,), (1383880460,), (1383880462,), (1383880465,), (1383880468,), (1383880471,), (1383880535,), (1383880562,), (1383880587,), (1383880614,), (1383880640,), (1383880671,), (1383880926,), (1383880948,), (1383880958,), (1383881075,), (1383881077,), (1383881078,), (1383881080,), (1383881105,), (1383881292,), (1383881297,), (1383881298,), (1383881300,), (1383881303,), (1383881332,), (1383881337,), (1383881347,), (1383881874,), (1383881862,), (1383881870,), (1383882060,), (1383882197,), (1383882199,), (1383882217,), (1383882218,), (1383882236,), (1383882240,), (1383882244,), (1383882246,), (1383882260,), (1383882284,), (1383882285,), (1383882286,), (1383882288,), (1383882292,), (1383882295,), (1383882303,), (1383882305,), (1383882306,), (1383882386,), (1383882389,), (1383882393,), (1383882396,), (1383882400,), (1383882404,), (1383882452,), (1383882454,), (1383882455,), (1383882457,), (1383882461,), (1383882478,), (1383882479,), (1383882481,), (1383882498,), (1383882499,), (1383882500,), (1383882503,), (1383882516,), (1383882539,), (1383882640,), (1383882649,), (1383882675,), (1383882701,), (1383882702,), (1383882704,), (1383882707,), (1383882710,), (1383882713,), (1383882725,), (1383882736,), (1383882739,), (1383882740,), (1383882759,), (1383882761,), (1383882762,), (1383882764,), (1383882795,), (1383882791,), (1383882792,), (1383882793,), (1383882819,), (1383882820,), (1383882821,), (1383882823,), (1383882826,), (1383882833,), (1383882868,), (1383882869,), (1383882870,), (1383882992,), (1383883009,), (1383883010,), (1383883012,), (1383883016,), (1383883019,), (1383883032,), (1383883034,), (1383883036,), (1383883040,), (1383883045,), (1383883132,), (1383883134,), (1383883151,), (1383883158,), (1383883184,), (1383883185,), (1383883186,), (1383883190,), (1383883201,), (1383883215,), (1383883313,), (1383883316,), (1383883319,), (1383883322,), (1383883329,), (1383883332,), (1383883392,), (1383883403,), (1383883508,), (1383883509,), (1383883557,), (1383883677,), (1383883703,), (1383883704,), (1383883705,), (1383883707,), (1383883734,), (1383886221,), (1383886287,), (1383886308,), (1383886310,), (1383886312,), (1383886314,), (1383886318,), (1383886374,), (1383886537,), (1383886539,), (1383886540,), (1383886543,), (1383886759,), (1383886767,), (1383886792,), (1383886808,), (1383886814,), (1383886911,), (1383886924,), (1383886925,), (1383886968,), (1383886970,), (1383886971,), (1383886973,), (1383886977,), (1383886981,), (1383887036,), (1383887037,), (1383887038,), (1383887041,), (1383887062,), (1383887067,), (1383887136,), (1383887120,), (1383887125,), (1383887132,), (1383887134,), (1383887190,), (1383887200,), (1383887206,), (1383887218,), (1383887220,), (1383887264,), (1383887265,), (1383887267,), (1383887270,), (1383887273,), (1383887275,), (1383887291,), (1383887293,), (1383887295,), (1383887297,), (1383887300,), (1383887302,), (1383887305,), (1383887308,), (1383887310,), (1383887320,), (1383887322,), (1383887323,), (1383887325,), (1383887327,), (1383887332,), (1383887355,), (1383887357,), (1383887359,), (1383887362,), (1383887365,), (1383887367,), (1383887373,), (1383887374,), (1383887375,), (1383887376,), (1383887379,), (1383887386,), (1383887389,), (1383887393,), (1383887399,), (1383887403,), (1383887456,), (1383887459,), (1383887462,), (1383887464,), (1383887476,), (1383887482,), (1383887518,), (1383887519,), (1383887530,), (1383904722,), (1383906511,), (1383906538,), (1383906540,), (1383906750,), (1383906776,), (1383906800,), (1383906828,), (1383906839,), (1383906978,), (1383907524,), (1383907574,), (1383907599,), (1383907632,), (1383907821,), (1383907886,), (1383907887,), (1383907888,), (1383907890,), (1383907915,), (1383907918,), (1383907920,), (1383907923,), (1383907940,), (1383907942,), (1383907944,), (1383907946,), (1383907950,), (1383907966,), (1383907970,), (1383907973,), (1383907978,), (1383907991,), (1383907993,), (1383907997,), (1383908003,), (1383908013,), (1383908101,), (1383908104,), (1383908107,), (1383908112,), (1383908117,), (1383908121,), (1383908132,), (1383908138,), (1383908143,), (1383908147,), (1383908152,), (1383908164,), (1383908182,), (1383908212,), (1383908238,), (1383908684,), (1383908715,), (1383909857,), (1383909884,), (1383909959,), (1383910012,), (1383910066,), (1383908574,), (1383908597,), (1383908625,), (1383908650,), (1383909130,), (1383909185,), (1383909246,), (1383909294,), (1383909346,), (1383909398,), (1383909496,), (1383909531,), (1383909598,), (1383909660,), (1383909691,), (1383909733,), (1383909825,), (1383910262,), (1383910310,), (1383910415,), (1383910443,), (1383910471,), (1383910602,), (1383910628,), (1383910667,), (1383910709,), (1383910739,), (1383910770,), (1383910961,), (1383911145,), (1383911397,), (1383911412,), (1383911435,), (1383911464,), (1383911483,), (1383911489,), (1383911593,), (1383911618,), (1383911643,), (1383911667,), (1383911966,), (1383912362,), (1383912399,), (1383912740,), (1383912742,), (1383912743,), (1383912761,), (1383912785,), (1383912786,), (1383913101,), (1383913004,), (1383913028,), (1383913051,), (1383913075,), (1383913614,), (1383913664,), (1383913707,), (1383913754,), (1383913793,), (1383914376,), (1383914420,), (1383914468,), (1383914519,), (1383914977,), (1383915004,), (1383915029,), (1383915055,), (1383915088,), (1383915416,), (1383915445,), (1383915470,), (1383915513,), (1383915537,), (1383915863,), (1383915873,), (1383915899,), (1383916277,), (1383916304,), (1383916332,), (1383916371,), (1383916405,), (1383916446,), (1383916679,), (1383916703,), (1383916729,), (1383916748,), (1383916754,), (1383916833,), (1383916864,), (1383916889,), (1383917052,), (1383917054,), (1383917056,), (1383917058,), (1383917062,), (1383917066,), (1383917095,), (1383917097,), (1383917099,), (1383917102,), (1383917106,), (1383917109,), (1383917129,), (1383917130,), (1383917131,), (1383917214,), (1383917215,), (1383917218,), (1383917221,), (1383917232,), (1383917236,), (1383917255,), (1383917256,), (1383917257,), (1383917259,), (1383917263,), (1383917290,), (1383917299,), (1383917309,), (1383917449,), (1383917434,), (1383917484,), (1383917487,), (1383917490,), (1383917494,), (1383917498,), (1383917515,), (1383917555,), (1383917557,), (1383917558,), (1383917560,), (1383917563,), (1383917566,), (1383917593,), (1383917594,), (1383917596,), (1383917599,), (1383917688,), (1383917712,), (1383917714,), (1383917721,), (1383917730,), (1383917739,), (1383917789,), (1383917790,), (1383917791,), (1383917793,), (1383917795,), (1383917798,), (1383917940,), (1383917966,), (1383917989,), (1383918015,), (1383918224,), (1383918237,), (1383918248,), (1383918252,), (1383918256,), (1383918258,), (1383918271,), (1383918272,), (1383918273,), (1383918275,), (1383918279,), (1383918297,), (1383918298,), (1383918299,), (1383918301,), (1383918313,), (1383918337,), (1383918479,), (1383918480,), (1383918525,), (1383918526,), (1383918527,), (1383918529,), (1383918532,), (1383918535,), (1383918764,), (1383918765,), (1383918767,), (1383918771,), (1383918814,), (1383918815,), (1383918816,), (1383918878,), (1383918891,), (1383918893,), (1383919046,), (1383918994,), (1383919020,), (1383919146,), (1383919147,), (1383919149,), (1383919151,), (1383919325,), (1383919382,), (1383919407,), (1383919433,), (1383919537,), (1383919539,), (1383919540,), (1383919573,), (1383919574,), (1383919575,), (1383919577,), (1383919580,), (1383919614,), (1383919615,), (1383919616,), (1383919618,), (1383919622,), (1383919666,), (1383919690,), (1383919713,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16092025': {'nb_upload': 26, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26894240]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573] map_info['map_portfolio_photo'] : {26894240: [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573, 1383919540, 1383919539, 1383919537, 1383919433, 1383919407, 1383919382, 1383919325, 1383919151, 1383919149, 1383919147, 1383919146, 1383919020, 1383918994]} final : True mtd_id 4302 list_pids : [1383919713, 1383919690, 1383919666, 1383919622, 1383919618, 1383919616, 1383919615, 1383919614, 1383919580, 1383919577, 1383919575, 1383919574, 1383919573] Looping around the photos to save general results len do output : 1 /26894240Didn'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, '3728247') ('4302', '26894240', '1383919713', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919690', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919666', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919622', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919618', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919616', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919615', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919614', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919580', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919577', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919575', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919574', None, None, None, None, None, '3728247') ('4302', None, None, None, None, None, None, None, '3728247') ('4302', '26894240', '1383919573', None, None, None, None, None, '3728247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '26894240', 'None', None, None, None, None, '3728247'), ('4302', '26894240', '1383919713', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919690', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919666', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919622', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919618', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919616', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919615', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919614', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919580', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919577', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919575', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919574', None, None, None, None, None, '3728247'), ('4302', '26894240', '1383919573', None, None, None, None, None, '3728247')] time used for this insertion : 0.016290903091430664 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.3897740840911865 time spend to save output : 0.016524076461791992 total time spend for step 5 : 2.4062981605529785 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 (3728247) 2.25user 2.19system 0:10.52elapsed 42%CPU (0avgtext+0avgdata 161244maxresident)k 1280inputs+9408outputs (24major+72529minor)pagefaults 0swaps