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 : 675780 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 (3693247) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3693247) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719327 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3693247'] with mtr_portfolio_ids : ['26719327'] and first list_photo_ids : [] new path : /proc/675780/ Name: python3 Umask: 0002 State: R (running) Tgid: 675780 Ngid: 0 Pid: 675780 PPid: 675779 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 675780 NSpid: 675780 NSpgid: 674447 NSsid: 674447 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98668 kB VmRSS: 98668 kB RssAnon: 60160 kB RssFile: 38508 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 85 nonvoluntary_ctxt_switches: 215 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '675780', 'Ngid': '0', 'Pid': '675780', 'PPid': '675779', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '675780', 'NSpid': '675780', 'NSpgid': '674447', 'NSsid': '674447', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98668 kB', 'VmRSS': '98668 kB', 'RssAnon': '60160 kB', 'RssFile': '38508 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '85', 'nonvoluntary_ctxt_switches': '215'} ('datou_batch_current', '675780', '1107252', '0', '1107252', '866004', '98668', b'', 'marlene', '3693247') 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 (26719327) 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 (3693247 ) ) 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 (26719327) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1383015593, 'portfolio_id': 26719327}, {'photo_id': 1383015371, 'portfolio_id': 26719327}, {'photo_id': 1383015330, 'portfolio_id': 26719327}, {'photo_id': 1383015324, 'portfolio_id': 26719327}, {'photo_id': 1383015284, 'portfolio_id': 26719327}, {'photo_id': 1383015248, 'portfolio_id': 26719327}, {'photo_id': 1383015113, 'portfolio_id': 26719327}, {'photo_id': 1383015052, 'portfolio_id': 26719327}, {'photo_id': 1383015045, 'portfolio_id': 26719327}, {'photo_id': 1383014992, 'portfolio_id': 26719327}] map_portfolio_id_photo_id: {26719327: [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992]} ##### 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.0310819149017334 #### 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 Thu Sep 11 05:45:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26719327) 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 : 26719327 get user id for portfolio 26719327 get sub ptf for main ptf 26719327, type 3726 and hashtags ['papier', 'plastique', 'Teint_Dans_La_Masse', 'autre_refus', 'environnement', 'Carton_brun', 'cartonnette', 'Carton_gris', 'flou', 'kraft', 'mal_croppe', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26719327 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','Teint_Dans_La_Masse','autre_refus','environnement','Carton_brun','cartonnette','Carton_gris','flou','kraft','mal_croppe','metal')) 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`=26719327 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','Teint_Dans_La_Masse','autre_refus','environnement','Carton_brun','cartonnette','Carton_gris','flou','kraft','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 26719327, 'sub_port_id': 26719328, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014641, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 26719327, 'sub_port_id': 26719329, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014642, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}, 'flou': {'main_port_id': 26719327, 'sub_port_id': 26719330, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014643, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}, 'Carton_brun': {'main_port_id': 26719327, 'sub_port_id': 26719331, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014644, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}, 'kraft': {'main_port_id': 26719327, 'sub_port_id': 26719332, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014645, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}, 'cartonnette': {'main_port_id': 26719327, 'sub_port_id': 26719333, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014646, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}, 'autre_refus': {'main_port_id': 26719327, 'sub_port_id': 26719334, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014647, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}, 'papier': {'main_port_id': 26719327, 'sub_port_id': 26719335, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014648, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}, 'Carton_gris': {'main_port_id': 26719327, 'sub_port_id': 26719336, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014649, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}, 'plastique': {'main_port_id': 26719327, 'sub_port_id': 26719337, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014650, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}, 'mal_croppe': {'main_port_id': 26719327, 'sub_port_id': 26719338, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014651, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}, 'metal': {'main_port_id': 26719327, 'sub_port_id': 26719339, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014652, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26719328 , 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=26719327 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 (26719328) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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 26719329 , 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=26719327 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 (26719329) result : ((1383015340,), (1383015341,), (1383015342,), (1383015343,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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 26719330 , 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=26719327 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 (26719330) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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 26719331 , 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=26719327 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 (26719331) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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 26719332 , 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=26719327 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 (26719332) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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 26719333 , 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=26719327 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 (26719333) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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 26719334 , 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=26719327 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 (26719334) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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 26719335 , 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=26719327 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 (26719335) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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 26719336 , 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=26719327 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 (26719336) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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 26719337 , 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=26719327 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 (26719337) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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 26719338 , 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=26719327 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 (26719338) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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 26719339 , 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=26719327 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 (26719339) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26719327) result : ((1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,)) 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`=26719327 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','Teint_Dans_La_Masse','autre_refus','environnement','Carton_brun','cartonnette','Carton_gris','flou','kraft','mal_croppe','metal')) 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`=26719327 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','Teint_Dans_La_Masse','autre_refus','environnement','Carton_brun','cartonnette','Carton_gris','flou','kraft','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 26719327, 'sub_port_id': 26719340, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014653, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 26719327, 'sub_port_id': 26719341, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014654, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}, 'flou': {'main_port_id': 26719327, 'sub_port_id': 26719342, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014655, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}, 'Carton_brun': {'main_port_id': 26719327, 'sub_port_id': 26719343, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014656, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}, 'kraft': {'main_port_id': 26719327, 'sub_port_id': 26719344, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014657, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}, 'cartonnette': {'main_port_id': 26719327, 'sub_port_id': 26719345, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014658, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}, 'autre_refus': {'main_port_id': 26719327, 'sub_port_id': 26719346, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014659, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}, 'papier': {'main_port_id': 26719327, 'sub_port_id': 26719347, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014660, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}, 'Carton_gris': {'main_port_id': 26719327, 'sub_port_id': 26719348, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014661, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}, 'plastique': {'main_port_id': 26719327, 'sub_port_id': 26719349, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014662, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}, 'mal_croppe': {'main_port_id': 26719327, 'sub_port_id': 26719350, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014663, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}, 'metal': {'main_port_id': 26719327, 'sub_port_id': 26719351, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18014664, 'last_updated_at': datetime.datetime(2025, 9, 10, 14, 32, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 14, 32, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 14, 22, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719340,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719328 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719341,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719329 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719342,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719330 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719343,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719331 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719344,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719332 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719345,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719333 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719346,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719334 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719347,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719335 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719348,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719336 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719349,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719337 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719350,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719338 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26719351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26719339 lien utilise dans velours : https://marlene.fotonower.com/velours/26719340,26719341,26719342,26719343,26719344,26719345,26719346,26719347,26719348,26719349,26719350,26719351?tags=environnement,Teint_Dans_La_Masse,flou,Carton_brun,kraft,cartonnette,autre_refus,papier,Carton_gris,plastique,mal_croppe,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26719327]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992] map_info['map_portfolio_photo'] : {26719327: [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992]} final : False mtd_id 4302 list_pids : [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992] Looping around the photos to save general results len do output : 1 /26719327. 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, '3693247') ('4302', '26719327', '1383015593', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015371', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015330', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015324', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015284', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015248', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015113', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015052', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015045', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383014992', None, None, None, None, None, '3693247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '26719327', "{'environnement': 26719328, 'Teint_Dans_La_Masse': 26719329, 'flou': 26719330, 'Carton_brun': 26719331, 'kraft': 26719332, 'cartonnette': 26719333, 'autre_refus': 26719334, 'papier': 26719335, 'Carton_gris': 26719336, 'plastique': 26719337, 'mal_croppe': 26719338, 'metal': 26719339}", None, None, None, None, '3693247'), ('4302', '26719327', '1383015593', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015371', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015330', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015324', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015284', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015248', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015113', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015052', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015045', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383014992', None, None, None, None, None, '3693247')] time used for this insertion : 0.24843263626098633 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5883910655975342 time spend to save output : 0.24878859519958496 total time spend for step 1 : 1.8371796607971191 step2:final Thu Sep 11 05:45:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26719327) 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 26719327 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1383014992,1383015052,1383015045,1383015248,1383015113,1383015284,1383015330,1383015324,1383015371,1383015593); 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([26719327]) Inside saveOutput : final : False verbose : True original output for save of step final : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} new output for save of step final : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992] map_info['map_portfolio_photo'] : {26719327: [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992]} final : False mtd_id 4302 list_pids : [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992] Looping around the photos to save general results len do output : 10 /1383015593.Didn't retrieve data . /1383015371.Didn't retrieve data . /1383015330.Didn't retrieve data . /1383015324.Didn't retrieve data . /1383015284.Didn't retrieve data . /1383015248.Didn't retrieve data . /1383015113.Didn't retrieve data . /1383015052.Didn't retrieve data . /1383015045.Didn't retrieve data . /1383014992.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, '3693247') ('4302', '26719327', '1383015593', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015371', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015330', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015324', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015284', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015248', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015113', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015052', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015045', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383014992', None, None, None, None, None, '3693247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '26719327', '1383015593', '0.05351301132245347', None, None, None, None, '3693247'), ('4302', '26719327', '1383015371', '0.05351301132245347', None, None, None, None, '3693247'), ('4302', '26719327', '1383015330', '0.05351301132245347', None, None, None, None, '3693247'), ('4302', '26719327', '1383015324', '0.05351301132245347', None, None, None, None, '3693247'), ('4302', '26719327', '1383015284', '0.05351301132245347', None, None, None, None, '3693247'), ('4302', '26719327', '1383015248', '0.05351301132245347', None, None, None, None, '3693247'), ('4302', '26719327', '1383015113', '0.05351301132245347', None, None, None, None, '3693247'), ('4302', '26719327', '1383015052', '0.05351301132245347', None, None, None, None, '3693247'), ('4302', '26719327', '1383015045', '0.05351301132245347', None, None, None, None, '3693247'), ('4302', '26719327', '1383014992', '0.05351301132245347', None, None, None, None, '3693247')] time used for this insertion : 0.06442904472351074 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.27593302726745605 time spend to save output : 0.06527519226074219 total time spend for step 2 : 0.34120821952819824 step3:velours_tree Thu Sep 11 05:45: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 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 : {26719327: [{'environnement': 26719328, 'Teint_Dans_La_Masse': 26719329, 'flou': 26719330, 'Carton_brun': 26719331, 'kraft': 26719332, 'cartonnette': 26719333, 'autre_refus': 26719334, 'papier': 26719335, 'Carton_gris': 26719336, 'plastique': 26719337, 'mal_croppe': 26719338, 'metal': 26719339}]} input_args_next_step : {26719327: ()} output_args : {26719327: [{'environnement': 26719328, 'Teint_Dans_La_Masse': 26719329, 'flou': 26719330, 'Carton_brun': 26719331, 'kraft': 26719332, 'cartonnette': 26719333, 'autre_refus': 26719334, 'papier': 26719335, 'Carton_gris': 26719336, 'plastique': 26719337, 'mal_croppe': 26719338, 'metal': 26719339}]} args : 26719327 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 26719328, 'Teint_Dans_La_Masse': 26719329, 'flou': 26719330, 'Carton_brun': 26719331, 'kraft': 26719332, 'cartonnette': 26719333, 'autre_refus': 26719334, 'papier': 26719335, 'Carton_gris': 26719336, 'plastique': 26719337, 'mal_croppe': 26719338, 'metal': 26719339},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26719327) 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([26719327]) 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.4499189853668213 time spend to save output : 7.653236389160156e-05 total time spend for step 3 : 0.4499955177307129 step4:send_mail_cod Thu Sep 11 05:45: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 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 : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} input_args_next_step : {1383015593: ()} output_args : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} args : 1383015593 depend.output_id : 0 input_args_next_step : {1383015593: ('0.05351301132245347',), 1383015371: ()} output_args : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} args : 1383015371 depend.output_id : 0 input_args_next_step : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ()} output_args : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} args : 1383015330 depend.output_id : 0 input_args_next_step : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ()} output_args : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} args : 1383015324 depend.output_id : 0 input_args_next_step : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ()} output_args : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} args : 1383015284 depend.output_id : 0 input_args_next_step : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ()} output_args : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} args : 1383015248 depend.output_id : 0 input_args_next_step : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ()} output_args : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} args : 1383015113 depend.output_id : 0 input_args_next_step : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ()} output_args : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} args : 1383015052 depend.output_id : 0 input_args_next_step : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ()} output_args : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} args : 1383015045 depend.output_id : 0 input_args_next_step : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ()} output_args : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',)} args : 1383014992 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 : {26719327: [{'environnement': 26719328, 'Teint_Dans_La_Masse': 26719329, 'flou': 26719330, 'Carton_brun': 26719331, 'kraft': 26719332, 'cartonnette': 26719333, 'autre_refus': 26719334, 'papier': 26719335, 'Carton_gris': 26719336, 'plastique': 26719337, 'mal_croppe': 26719338, 'metal': 26719339}]} input_args_next_step : {1383015593: ('0.05351301132245347',), 1383015371: ('0.05351301132245347',), 1383015330: ('0.05351301132245347',), 1383015324: ('0.05351301132245347',), 1383015284: ('0.05351301132245347',), 1383015248: ('0.05351301132245347',), 1383015113: ('0.05351301132245347',), 1383015052: ('0.05351301132245347',), 1383015045: ('0.05351301132245347',), 1383014992: ('0.05351301132245347',), 26719327: ()} output_args : {26719327: [{'environnement': 26719328, 'Teint_Dans_La_Masse': 26719329, 'flou': 26719330, 'Carton_brun': 26719331, 'kraft': 26719332, 'cartonnette': 26719333, 'autre_refus': 26719334, 'papier': 26719335, 'Carton_gris': 26719336, 'plastique': 26719337, 'mal_croppe': 26719338, 'metal': 26719339}]} args : 26719327 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 :11, first value : ('0.05351301132245347',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26719327) 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 (1383015593,1383015371,1383015330,1383015324,1383015284,1383015248,1383015113,1383015052,1383015045,1383014992) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1383014992 begin to download photo : 1383015113 begin to download photo : 1383015324 begin to download photo : 1383015593 download finish for photo 1383014992 begin to download photo : 1383015045 download finish for photo 1383015593 download finish for photo 1383015324 begin to download photo : 1383015330 download finish for photo 1383015113 begin to download photo : 1383015248 download finish for photo 1383015045 begin to download photo : 1383015052 download finish for photo 1383015330 begin to download photo : 1383015371 download finish for photo 1383015248 begin to download photo : 1383015284 download finish for photo 1383015371 download finish for photo 1383015052 download finish for photo 1383015284 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette267193301757562360/ imagette267193321757562360/ imagette267193331757562360/ imagette267193341757562360/ imagette267193371757562360/ imagette267193381757562360/ imagette267193391757562360/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P26719327_11-09-2025_05_46_00.pdf 26719330 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=26719330 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267193301757562360 26719332 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=26719332 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267193321757562360 26719333 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=26719333 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267193331757562360 26719334 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=26719334 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267193341757562360 26719337 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=26719337 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267193371757562360 26719338 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=26719338 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267193381757562360 26719339 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=26719339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267193391757562360 26719329 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=26719329 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383015340: '1757507227_1218936_1383015045_6544a570fe07da9713fbacbdb0672e0f_rle_crop_3953864952_0.png', 1383015341: '1757507227_1218936_1383015045_6544a570fe07da9713fbacbdb0672e0f_rle_crop_3953864953_0.png', 1383015342: '1757507227_1218936_1383015045_6544a570fe07da9713fbacbdb0672e0f_rle_crop_3953864951_0.png', 1383015343: '1757507227_1218936_1383015045_6544a570fe07da9713fbacbdb0672e0f_rle_crop_3953864949_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/43c2098b5922a0731850f8290d025090_85591743.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/ab1d76b1b1022126fe5f9dbbfca3e110_62176823.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/eef852c98fa810b77a9b43853ebef0df_7575291.png change filename to text .imagette267193291757562360/ imagette267193291757562360/1757507227_1218936_1383015045_6544a570fe07da9713fbacbdb0672e0f_rle_crop_3953864952_0.png.png imagette267193291757562360/1757507227_1218936_1383015045_6544a570fe07da9713fbacbdb0672e0f_rle_crop_3953864953_0.png.png imagette267193291757562360/1757507227_1218936_1383015045_6544a570fe07da9713fbacbdb0672e0f_rle_crop_3953864949_0.png.png imagette267193291757562360/1757507227_1218936_1383015045_6544a570fe07da9713fbacbdb0672e0f_rle_crop_3953864951_0.png.png imagette267193311757562360/ imagette267193361757562360/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/bb1a3062ff2e462c5152779ed08af26a_75021251.png imagette267193291757562360 26719331 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=26719331 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267193311757562360 26719336 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=26719336 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267193361757562360 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26719327 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26719340,26719341,26719342,26719343,26719344,26719345,26719346,26719347,26719348,26719349,26719350,26719351?tags=environnement,Teint_Dans_La_Masse,flou,Carton_brun,kraft,cartonnette,autre_refus,papier,Carton_gris,plastique,mal_croppe,metal your option no_mail is active, we will not send the real mail to your client args[1383015593] : ('0.05351301132245347',) no score found for photo 1383015593 We are sending mail with results at report@fotonower.com args[1383015371] : ('0.05351301132245347',) no score found for photo 1383015371 We are sending mail with results at report@fotonower.com args[1383015330] : ('0.05351301132245347',) no score found for photo 1383015330 We are sending mail with results at report@fotonower.com args[1383015324] : ('0.05351301132245347',) no score found for photo 1383015324 We are sending mail with results at report@fotonower.com args[1383015284] : ('0.05351301132245347',) no score found for photo 1383015284 We are sending mail with results at report@fotonower.com args[1383015248] : ('0.05351301132245347',) no score found for photo 1383015248 We are sending mail with results at report@fotonower.com args[1383015113] : ('0.05351301132245347',) no score found for photo 1383015113 We are sending mail with results at report@fotonower.com args[1383015052] : ('0.05351301132245347',) no score found for photo 1383015052 We are sending mail with results at report@fotonower.com args[1383015045] : ('0.05351301132245347',) no score found for photo 1383015045 We are sending mail with results at report@fotonower.com args[1383014992] : ('0.05351301132245347',) no score found for photo 1383014992 We are sending mail with results at report@fotonower.com refus_total : 0.05351301132245347 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=26719327 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_P26719327_11-09-2025_05_46_00.pdf results_Auto_P26719327_11-09-2025_05_46_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719327_11-09-2025_05_46_00.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','26719327','results_Auto_P26719327_11-09-2025_05_46_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719327_11-09-2025_05_46_00.pdf','pdf','','0.1','0.05351301132245347') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26719327]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992] map_info['map_portfolio_photo'] : {26719327: [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992]} final : False mtd_id 4302 list_pids : [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992] 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, '3693247') ('4302', '26719327', '1383015593', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015371', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015330', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015324', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015284', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015248', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015113', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015052', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015045', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383014992', None, None, None, None, None, '3693247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '26719327', '1383015593', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015371', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015330', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015324', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015284', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015248', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015113', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015052', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015045', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383014992', None, None, None, None, None, '3693247')] time used for this insertion : 0.15543293952941895 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.019700765609741 time spend to save output : 0.1557292938232422 total time spend for step 4 : 2.1754300594329834 step5:split_time_score Thu Sep 11 05:46: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 : ['26719327'] 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 : [('26719327',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26719327) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1383015593: {'path': 'temp/1757562359_675780_1383015593_2a5fb24acbb5dd55459b1ac8ae931906.jpg', 'extension': 'jpg'}, 1383015324: {'path': 'temp/1757562359_675780_1383015324_da41de46319abc7a3c6b46507fa6a317.jpg', 'extension': 'jpg'}, 1383015330: {'path': 'temp/1757562359_675780_1383015330_f10994d994983b8aa303a01488ccf4b5.jpg', 'extension': 'jpg'}, 1383015371: {'path': 'temp/1757562359_675780_1383015371_911970b907728949df25ab76dc9e081c.jpg', 'extension': 'jpg'}, 1383014992: {'path': 'temp/1757562359_675780_1383014992_2b05cf89640dcba65af8fefbe05fb41b.jpg', 'extension': 'jpg'}, 1383015045: {'path': 'temp/1757562359_675780_1383015045_6544a570fe07da9713fbacbdb0672e0f.jpg', 'extension': 'jpg'}, 1383015052: {'path': 'temp/1757562359_675780_1383015052_ca71438d9d6a114d20a558d1d7ffddf8.jpg', 'extension': 'jpg'}, 1383015113: {'path': 'temp/1757562359_675780_1383015113_6adfd35d94e4478770121d3824e8ec24.jpg', 'extension': 'jpg'}, 1383015248: {'path': 'temp/1757562359_675780_1383015248_5c529671694ca18a1c25d17bbb3b18ef.jpg', 'extension': 'jpg'}, 1383015284: {'path': 'temp/1757562359_675780_1383015284_82994be1d5728fd61308041e04a64fc2.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 = 26719327; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26719327 group by h (('14', 10),) 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=26719327 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 (26719327) 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 (26719327) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10092025 26719327 Nombre de photos uploadées : 10 / 23040 (0%) 10092025 26719327 Nombre de photos taguées (types de déchets): 0 / 10 (0%) 10092025 26719327 Nombre de photos taguées (volume) : 0 / 10 (0%) [{'photo_id': 1383014992, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/2b05cf89640dcba65af8fefbe05fb41b.jpg', 'username': None, 'uploaded_at': 1757506807, 'text': 'image_10092025_14_16_44_10139.jpg'}, {'photo_id': 1383015052, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/ca71438d9d6a114d20a558d1d7ffddf8.jpg', 'username': None, 'uploaded_at': 1757506868, 'text': 'image_10092025_14_19_14_10140.jpg'}, {'photo_id': 1383015045, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/6544a570fe07da9713fbacbdb0672e0f.jpg', 'username': None, 'uploaded_at': 1757506868, 'text': 'image_10092025_14_20_04_010150m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1383015248, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/5c529671694ca18a1c25d17bbb3b18ef.jpg', 'username': None, 'uploaded_at': 1757507107, 'text': 'image_10092025_14_20_14_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.4543533325195312e-05 ?????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005311965942382812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26719327, '2025-09-10' ) 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-10' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2260415,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2036287784576416 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= 2260415 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26704232, 'dashboard_result_id': 15008107, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704232_11-09-2025_05_34_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704244, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26704744, 'dashboard_result_id': 15008108, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704744_11-09-2025_05_35_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704808, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26705272, 'dashboard_result_id': 15008109, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705272_11-09-2025_05_36_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26705278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26705283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705289, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26705815, 'dashboard_result_id': 15008110, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705815_11-09-2025_05_37_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26705821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26705832, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26706684, 'dashboard_result_id': 15008111, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706684_11-09-2025_05_38_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26706703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26706704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26706707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26706708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26706709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26706710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26706711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26706712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26706713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26706714, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26706992, 'dashboard_result_id': 15008112, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706992_11-09-2025_05_38_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26706999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707008, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26707413, 'dashboard_result_id': 15008113, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26707413_11-09-2025_05_39_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26707417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26707424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26707428, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26708077, 'dashboard_result_id': 15008114, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708077_11-09-2025_05_40_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708094, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26708471, 'dashboard_result_id': 15008115, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708471_11-09-2025_05_40_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26708482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708493, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26708951, 'dashboard_result_id': 15008116, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708951_11-09-2025_05_41_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708968, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26709303, 'dashboard_result_id': 15008117, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_11-09-2025_05_42_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26709343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709350, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26709904, 'dashboard_result_id': 15008118, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709904_11-09-2025_05_42_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26709905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709916, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26710287, 'dashboard_result_id': 15008119, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710287_11-09-2025_05_43_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26710318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710325, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26710789, 'dashboard_result_id': 15008120, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710789_11-09-2025_05_44_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26710815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710826, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26711220, 'dashboard_result_id': 15008121, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26711220_11-09-2025_05_44_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26711267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26711268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26711269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26711270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26711271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26711273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26711274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26711275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26711276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26711277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26711278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26711279, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26718951, 'dashboard_result_id': 15008122, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26718951_11-09-2025_05_45_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26718952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26718953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26718954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26718955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26718956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26718957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26718958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26718959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26718960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26718961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26718962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26718963, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26719327, 'dashboard_result_id': 15008123, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719327_10-09-2025_14_32_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26719339, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26719541, 'dashboard_result_id': 15008124, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719541_10-09-2025_14_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26719542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719553, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26721950, 'dashboard_result_id': 15008125, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26721950_10-09-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26721971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26721972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26721973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26721974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26721975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26721976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26721977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26721978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26721979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26721980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26721981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26721982, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26722692, 'dashboard_result_id': 15008126, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26722692_10-09-2025_17_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26722730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26722731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26722732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26722733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26722734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26722735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26722737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26722738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26722739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26722740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26722741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26722742, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26725114, 'dashboard_result_id': 15008127, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26725114_10-09-2025_18_39_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26725115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26725116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26725117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26725118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26725119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26725120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26725121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26725122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26725123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26725124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26725125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26725126, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26731956, 'dashboard_result_id': 15008128, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731956_10-09-2025_22_48_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26731975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26731976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26731977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26731978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26731979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26731980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26731981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26731982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26731984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26731985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26731986, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26731958, 'dashboard_result_id': 15008129, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731958_10-09-2025_23_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732010, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26732691, 'dashboard_result_id': 15008130, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26732691_10-09-2025_23_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26732706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732709, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26733371, 'dashboard_result_id': 15008131, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26733371_10-09-2025_23_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26733397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26733398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26733399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26733400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26733401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26733402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26733403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26733404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26733405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26733406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26733407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26733408, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26733933, 'dashboard_result_id': 15008132, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26733933_10-09-2025_23_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26733939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26733940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26733941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26733942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26733943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26733944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26733945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26733946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26733947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26733948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26733949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26733950, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2276221, 'mtr_portfolio_id': 26734462, 'dashboard_result_id': 15008133, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26734462_11-09-2025_01_13_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26734467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26734468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26734469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26734470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26734471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26734472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26734473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26734474, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26734475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26734476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26734477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26734478, '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 = 26704232 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693231, 'mtr_portfolio_id': 26704232, 'created_at': datetime.datetime(2025, 9, 11, 5, 34, 30), 'result': '0.05165652308854011', 'result_long': None, 'result_double': None}] Qualite : 0.05165652308854011 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26704232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704232_11-09-2025_05_34_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26704232 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704232_11-09-2025_05_34_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704244, 'pht': 3726}}" where mtr_portfolio_id = 26704232 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26704232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008107, 0.05165652308854011, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704232_11-09-2025_05_34_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704244, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26704744 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693232, 'mtr_portfolio_id': 26704744, 'created_at': datetime.datetime(2025, 9, 11, 5, 35, 56), 'result': '0.05321585469969135', 'result_long': None, 'result_double': None}] Qualite : 0.05321585469969135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26704744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704744_11-09-2025_05_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26704744 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704744_11-09-2025_05_35_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704808, 'pht': 3726}}" where mtr_portfolio_id = 26704744 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26704744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008108, 0.05321585469969135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704744_11-09-2025_05_35_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704808, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26705272 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693233, 'mtr_portfolio_id': 26705272, 'created_at': datetime.datetime(2025, 9, 11, 5, 36, 32), 'result': '0.034614114634369', 'result_long': None, 'result_double': None}] Qualite : 0.034614114634369 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26705272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705272_11-09-2025_05_36_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26705272 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705272_11-09-2025_05_36_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26705278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26705283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705289, 'pht': 3726}}" where mtr_portfolio_id = 26705272 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26705272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008109, 0.034614114634369, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705272_11-09-2025_05_36_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26705278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26705283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705289, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26705815 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693234, 'mtr_portfolio_id': 26705815, 'created_at': datetime.datetime(2025, 9, 11, 5, 37, 30), 'result': '0.049928504882734225', 'result_long': None, 'result_double': None}] Qualite : 0.049928504882734225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26705815 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705815_11-09-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26705815 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705815_11-09-2025_05_37_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26705821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26705832, 'pht': 3726}}" where mtr_portfolio_id = 26705815 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26705815 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008110, 0.049928504882734225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705815_11-09-2025_05_37_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26705821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26705832, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26706684 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693235, 'mtr_portfolio_id': 26706684, 'created_at': datetime.datetime(2025, 9, 11, 5, 37, 58), 'result': '0.027664121930937046', 'result_long': None, 'result_double': None}] Qualite : 0.027664121930937046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26706684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706684_11-09-2025_05_38_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26706684 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706684_11-09-2025_05_38_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26706703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26706704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26706707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26706708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26706709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26706710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26706711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26706712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26706713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26706714, 'pht': 3726}}" where mtr_portfolio_id = 26706684 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26706684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008111, 0.027664121930937046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706684_11-09-2025_05_38_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26706703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26706704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26706707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26706708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26706709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26706710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26706711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26706712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26706713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26706714, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26706992 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693236, 'mtr_portfolio_id': 26706992, 'created_at': datetime.datetime(2025, 9, 11, 5, 38, 28), 'result': '0.033701941928507256', 'result_long': None, 'result_double': None}] Qualite : 0.033701941928507256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26706992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706992_11-09-2025_05_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26706992 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706992_11-09-2025_05_38_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26706999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707008, 'pht': 3726}}" where mtr_portfolio_id = 26706992 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26706992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008112, 0.033701941928507256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706992_11-09-2025_05_38_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26706999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707008, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26707413 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693237, 'mtr_portfolio_id': 26707413, 'created_at': datetime.datetime(2025, 9, 11, 5, 39, 27), 'result': '0.030290281611055712', 'result_long': None, 'result_double': None}] Qualite : 0.030290281611055712 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26707413 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26707413_11-09-2025_05_39_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26707413 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26707413_11-09-2025_05_39_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26707417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26707424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26707428, 'pht': 3726}}" where mtr_portfolio_id = 26707413 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26707413 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008113, 0.030290281611055712, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26707413_11-09-2025_05_39_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26707417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26707424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26707428, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26708077 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693238, 'mtr_portfolio_id': 26708077, 'created_at': datetime.datetime(2025, 9, 11, 5, 40), 'result': '0.04931888103929729', 'result_long': None, 'result_double': None}] Qualite : 0.04931888103929729 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26708077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708077_11-09-2025_05_40_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26708077 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708077_11-09-2025_05_40_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708094, 'pht': 3726}}" where mtr_portfolio_id = 26708077 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26708077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008114, 0.04931888103929729, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708077_11-09-2025_05_40_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708094, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26708471 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693239, 'mtr_portfolio_id': 26708471, 'created_at': datetime.datetime(2025, 9, 11, 5, 40, 29), 'result': '0.045404050313249004', 'result_long': None, 'result_double': None}] Qualite : 0.045404050313249004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26708471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708471_11-09-2025_05_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26708471 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708471_11-09-2025_05_40_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26708482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708493, 'pht': 3726}}" where mtr_portfolio_id = 26708471 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26708471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008115, 0.045404050313249004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708471_11-09-2025_05_40_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26708482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708493, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26708951 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693240, 'mtr_portfolio_id': 26708951, 'created_at': datetime.datetime(2025, 9, 11, 5, 41, 31), 'result': '0.04369671561182549', 'result_long': None, 'result_double': None}] Qualite : 0.04369671561182549 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26708951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708951_11-09-2025_05_41_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26708951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708951_11-09-2025_05_41_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708968, 'pht': 3726}}" where mtr_portfolio_id = 26708951 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26708951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008116, 0.04369671561182549, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708951_11-09-2025_05_41_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708968, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26709303 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693241, 'mtr_portfolio_id': 26709303, 'created_at': datetime.datetime(2025, 9, 11, 5, 42, 1), 'result': '0.051271032077770666', 'result_long': None, 'result_double': None}] Qualite : 0.051271032077770666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26709303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_11-09-2025_05_42_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26709303 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_11-09-2025_05_42_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26709343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709350, 'pht': 3726}}" where mtr_portfolio_id = 26709303 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26709303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008117, 0.051271032077770666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_11-09-2025_05_42_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26709343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709350, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26709904 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693242, 'mtr_portfolio_id': 26709904, 'created_at': datetime.datetime(2025, 9, 11, 5, 42, 29), 'result': '0.061915655841384865', 'result_long': None, 'result_double': None}] Qualite : 0.061915655841384865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26709904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709904_11-09-2025_05_42_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26709904 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709904_11-09-2025_05_42_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26709905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709916, 'pht': 3726}}" where mtr_portfolio_id = 26709904 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26709904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008118, 0.061915655841384865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709904_11-09-2025_05_42_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26709905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709916, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26710287 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693243, 'mtr_portfolio_id': 26710287, 'created_at': datetime.datetime(2025, 9, 11, 5, 43, 29), 'result': '0.0696325536663468', 'result_long': None, 'result_double': None}] Qualite : 0.0696325536663468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26710287 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710287_11-09-2025_05_43_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26710287 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710287_11-09-2025_05_43_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26710318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710325, 'pht': 3726}}" where mtr_portfolio_id = 26710287 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26710287 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008119, 0.0696325536663468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710287_11-09-2025_05_43_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26710318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710325, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26710789 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693244, 'mtr_portfolio_id': 26710789, 'created_at': datetime.datetime(2025, 9, 11, 5, 44), 'result': '0.03896280222581451', 'result_long': None, 'result_double': None}] Qualite : 0.03896280222581451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26710789 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710789_11-09-2025_05_44_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26710789 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710789_11-09-2025_05_44_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26710815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710826, 'pht': 3726}}" where mtr_portfolio_id = 26710789 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26710789 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008120, 0.03896280222581451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710789_11-09-2025_05_44_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26710815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710826, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26711220 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693245, 'mtr_portfolio_id': 26711220, 'created_at': datetime.datetime(2025, 9, 11, 5, 44, 28), 'result': '0.05716533162343222', 'result_long': None, 'result_double': None}] Qualite : 0.05716533162343222 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26711220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26711220_11-09-2025_05_44_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26711220 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26711220_11-09-2025_05_44_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26711267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26711268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26711269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26711270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26711271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26711273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26711274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26711275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26711276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26711277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26711278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26711279, 'pht': 3726}}" where mtr_portfolio_id = 26711220 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26711220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008121, 0.05716533162343222, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26711220_11-09-2025_05_44_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26711267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26711268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26711269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26711270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26711271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26711273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26711274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26711275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26711276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26711277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26711278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26711279, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26718951 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693246, 'mtr_portfolio_id': 26718951, 'created_at': datetime.datetime(2025, 9, 11, 5, 45, 29), 'result': '0.1008438268734911', 'result_long': None, 'result_double': None}] Qualite : 0.1008438268734911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26718951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26718951_11-09-2025_05_45_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26718951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26718951_11-09-2025_05_45_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26718952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26718953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26718954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26718955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26718956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26718957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26718958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26718959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26718960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26718961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26718962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26718963, 'pht': 3726}}" where mtr_portfolio_id = 26718951 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26718951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008122, 0.1008438268734911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26718951_11-09-2025_05_45_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26718952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26718953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26718954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26718955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26718956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26718957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26718958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26718959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26718960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26718961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26718962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26718963, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26719327 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3693247, 'mtr_portfolio_id': 26719327, 'created_at': datetime.datetime(2025, 9, 11, 5, 45, 59), 'result': '0.05351301132245347', 'result_long': None, 'result_double': None}] Qualite : 0.05351301132245347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26719327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719327_11-09-2025_05_46_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26719327 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719327_11-09-2025_05_46_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26719339, 'pht': 3726}}" where mtr_portfolio_id = 26719327 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26719327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008123, 0.05351301132245347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719327_11-09-2025_05_46_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26719339, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26719541 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3690122, 'mtr_portfolio_id': 26719541, 'created_at': datetime.datetime(2025, 9, 10, 14, 49, 1), 'result': '0.07878295427703556', 'result_long': None, 'result_double': None}] Qualite : 0.07878295427703556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26719541 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719541_10-09-2025_14_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26719541 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719541_10-09-2025_14_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26719542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719553, 'pht': 3726}}" where mtr_portfolio_id = 26719541 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26719541 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008124, 0.07878295427703556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719541_10-09-2025_14_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26719542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719553, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26721950 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3690456, 'mtr_portfolio_id': 26721950, 'created_at': datetime.datetime(2025, 9, 10, 16, 33), 'result': '0.06502061475223814', 'result_long': None, 'result_double': None}] Qualite : 0.06502061475223814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26721950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26721950_10-09-2025_16_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26721950 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26721950_10-09-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26721971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26721972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26721973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26721974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26721975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26721976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26721977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26721978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26721979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26721980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26721981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26721982, 'pht': 3726}}" where mtr_portfolio_id = 26721950 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26721950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008125, 0.06502061475223814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26721950_10-09-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26721971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26721972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26721973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26721974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26721975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26721976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26721977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26721978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26721979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26721980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26721981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26721982, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26722692 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3690527, 'mtr_portfolio_id': 26722692, 'created_at': datetime.datetime(2025, 9, 10, 17, 3), 'result': '0.08734009330866331', 'result_long': None, 'result_double': None}] Qualite : 0.08734009330866331 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26722692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26722692_10-09-2025_17_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26722692 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26722692_10-09-2025_17_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26722730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26722731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26722732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26722733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26722734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26722735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26722737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26722738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26722739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26722740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26722741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26722742, 'pht': 3726}}" where mtr_portfolio_id = 26722692 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26722692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008126, 0.08734009330866331, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26722692_10-09-2025_17_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26722730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26722731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26722732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26722733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26722734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26722735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26722737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26722738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26722739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26722740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26722741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26722742, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26725114 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3690787, 'mtr_portfolio_id': 26725114, 'created_at': datetime.datetime(2025, 9, 10, 18, 38, 59), 'result': '0.0649381291338043', 'result_long': None, 'result_double': None}] Qualite : 0.0649381291338043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26725114 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26725114_10-09-2025_18_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26725114 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26725114_10-09-2025_18_39_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26725115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26725116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26725117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26725118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26725119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26725120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26725121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26725122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26725123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26725124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26725125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26725126, 'pht': 3726}}" where mtr_portfolio_id = 26725114 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26725114 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008127, 0.0649381291338043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26725114_10-09-2025_18_39_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26725115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26725116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26725117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26725118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26725119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26725120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26725121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26725122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26725123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26725124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26725125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26725126, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26731956 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3691473, 'mtr_portfolio_id': 26731956, 'created_at': datetime.datetime(2025, 9, 10, 22, 48, 30), 'result': '0.0835398543690456', 'result_long': None, 'result_double': None}] Qualite : 0.0835398543690456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26731956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731956_10-09-2025_22_48_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26731956 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731956_10-09-2025_22_48_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26731975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26731976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26731977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26731978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26731979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26731980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26731981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26731982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26731984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26731985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26731986, 'pht': 3726}}" where mtr_portfolio_id = 26731956 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26731956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008128, 0.0835398543690456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731956_10-09-2025_22_48_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26731975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26731976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26731977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26731978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26731979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26731980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26731981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26731982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26731984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26731985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26731986, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26731958 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3691474, 'mtr_portfolio_id': 26731958, 'created_at': datetime.datetime(2025, 9, 10, 23, 2, 59), 'result': '0.06992478640639133', 'result_long': None, 'result_double': None}] Qualite : 0.06992478640639133 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26731958 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731958_10-09-2025_23_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26731958 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731958_10-09-2025_23_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732010, 'pht': 3726}}" where mtr_portfolio_id = 26731958 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26731958 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008129, 0.06992478640639133, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731958_10-09-2025_23_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732010, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26732691 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3691537, 'mtr_portfolio_id': 26732691, 'created_at': datetime.datetime(2025, 9, 10, 23, 18, 59), 'result': '0.05853812000527467', 'result_long': None, 'result_double': None}] Qualite : 0.05853812000527467 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26732691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26732691_10-09-2025_23_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26732691 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26732691_10-09-2025_23_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26732706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732709, 'pht': 3726}}" where mtr_portfolio_id = 26732691 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26732691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008130, 0.05853812000527467, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26732691_10-09-2025_23_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26732706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732709, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26733371 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3691608, 'mtr_portfolio_id': 26733371, 'created_at': datetime.datetime(2025, 9, 10, 23, 33, 28), 'result': '0.06170093160355356', 'result_long': None, 'result_double': None}] Qualite : 0.06170093160355356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26733371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26733371_10-09-2025_23_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26733371 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26733371_10-09-2025_23_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26733397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26733398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26733399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26733400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26733401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26733402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26733403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26733404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26733405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26733406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26733407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26733408, 'pht': 3726}}" where mtr_portfolio_id = 26733371 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26733371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008131, 0.06170093160355356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26733371_10-09-2025_23_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26733397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26733398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26733399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26733400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26733401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26733402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26733403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26733404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26733405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26733406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26733407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26733408, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26733933 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3691686, 'mtr_portfolio_id': 26733933, 'created_at': datetime.datetime(2025, 9, 10, 23, 49, 27), 'result': '0.07039772189121755', 'result_long': None, 'result_double': None}] Qualite : 0.07039772189121755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26733933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26733933_10-09-2025_23_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26733933 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26733933_10-09-2025_23_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26733939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26733940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26733941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26733942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26733943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26733944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26733945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26733946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26733947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26733948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26733949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26733950, 'pht': 3726}}" where mtr_portfolio_id = 26733933 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26733933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008132, 0.07039772189121755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26733933_10-09-2025_23_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26733939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26733940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26733941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26733942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26733943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26733944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26733945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26733946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26733947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26733948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26733949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26733950, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26734462 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3691787, 'mtr_portfolio_id': 26734462, 'created_at': datetime.datetime(2025, 9, 11, 1, 13, 56), 'result': '0.07947373790011325', 'result_long': None, 'result_double': None}] Qualite : 0.07947373790011325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26734462 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26734462_11-09-2025_01_13_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26734462 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26734462_11-09-2025_01_13_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26734467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26734468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26734469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26734470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26734471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26734472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26734473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26734474, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26734475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26734476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26734477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26734478, 'pht': 3726}}" where mtr_portfolio_id = 26734462 and dashboard_run_id = 2276221 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26734462 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15008133, 0.07947373790011325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26734462_11-09-2025_01_13_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26734467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26734468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26734469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26734470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26734471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26734472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26734473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26734474, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26734475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26734476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26734477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26734478, '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 (26704232,26704744,26705272,26705815,26706684,26706992,26707413,26708077,26708471,26708951,26709303,26709904,26710287,26710789,26711220,26718951,26719327,26719541,26721950,26722692,26725114,26731956,26731958,26732691,26733371,26733933,26734462) result : ((1382848737,), (1382849052,), (1382849570,), (1382849600,), (1382849623,), (1382849648,), (1382849675,), (1382849698,), (1382849864,), (1382849888,), (1382849916,), (1382849955,), (1382850273,), (1382850296,), (1382850332,), (1382850353,), (1382850364,), (1382850367,), (1382850389,), (1382850392,), (1382850426,), (1382850449,), (1382850469,), (1382850491,), (1382850517,), (1382850626,), (1382850649,), (1382850670,), (1382850694,), (1382850718,), (1382850884,), (1382850904,), (1382850933,), (1382850958,), (1382851137,), (1382851160,), (1382851186,), (1382851270,), (1382851323,), (1382851327,), (1382851330,), (1382851333,), (1382851497,), (1382851525,), (1382851553,), (1382851582,), (1382851596,), (1382851693,), (1382851715,), (1382851720,), (1382851735,), (1382851741,), (1382851745,), (1382851752,), (1382851758,), (1382851761,), (1382851882,), (1382852224,), (1382851855,), (1382852154,), (1382852177,), (1382852202,), (1382852312,), (1382852313,), (1382852316,), (1382852345,), (1382852401,), (1382852462,), (1382852705,), (1382852736,), (1382852759,), (1382852905,), (1382852918,), (1382852927,), (1382852930,), (1382852933,), (1382852965,), (1382852966,), (1382852967,), (1382852970,), (1382853001,), (1382853003,), (1382853005,), (1382853176,), (1382853200,), (1382853226,), (1382853252,), (1382853434,), (1382853461,), (1382853489,), (1382853516,), (1382853769,), (1382853792,), (1382853818,), (1382853840,), (1382853876,), (1382854148,), (1382854181,), (1382854387,), (1382854409,), (1382854432,), (1382854453,), (1382854466,), (1382854477,), (1382854578,), (1382854660,), (1382854683,), (1382854706,), (1382854728,), (1382854752,), (1382854863,), (1382854886,), (1382854909,), (1382854935,), (1382854956,), (1382855066,), (1382855092,), (1382855116,), (1382855249,), (1382855238,), (1382855241,), (1382855242,), (1382855246,), (1382855269,), (1382855273,), (1382855276,), (1382855281,), (1382855285,), (1382855299,), (1382855302,), (1382855306,), (1382855308,), (1382855326,), (1382855328,), (1382855347,), (1382855351,), (1382855356,), (1382855359,), (1382855362,), (1382855371,), (1382855510,), (1382855538,), (1382855891,), (1382855918,), (1382855947,), (1382855975,), (1382856004,), (1382856033,), (1382856233,), (1382856261,), (1382856288,), (1382856458,), (1382856463,), (1382856467,), (1382856685,), (1382856693,), (1382856694,), (1382856704,), (1382856734,), (1382856813,), (1382856815,), (1382856818,), (1382856823,), (1382856843,), (1382856846,), (1382856849,), (1382856853,), (1382856858,), (1382856873,), (1382856877,), (1382856881,), (1382856904,), (1382856906,), (1382856907,), (1382856910,), (1382856926,), (1382856930,), (1382856933,), (1382856936,), (1382856937,), (1382856939,), (1382856943,), (1382856956,), (1382857008,), (1382856949,), (1382856950,), (1382856951,), (1382856971,), (1382856974,), (1382856977,), (1382856982,), (1382856988,), (1382856995,), (1382857012,), (1382857015,), (1382857018,), (1382857022,), (1382857026,), (1382857044,), (1382857046,), (1382857048,), (1382857110,), (1382857112,), (1382857155,), (1382857160,), (1382857162,), (1382857180,), (1382857181,), (1382857182,), (1382857210,), (1382857214,), (1382857218,), (1382857222,), (1382857234,), (1382857236,), (1382857238,), (1382857240,), (1382857243,), (1382857244,), (1382857253,), (1382857262,), (1382857264,), (1382857266,), (1382857269,), (1382857271,), (1382857279,), (1382857281,), (1382857283,), (1382857286,), (1382857289,), (1382857298,), (1382857310,), (1382857316,), (1382857425,), (1382857481,), (1382857539,), (1382860404,), (1382860425,), (1382860427,), (1382860429,), (1382860479,), (1382860486,), (1382860510,), (1382860522,), (1382860524,), (1382860527,), (1382860550,), (1382860552,), (1382860556,), (1382860604,), (1382860610,), (1382860615,), (1382860620,), (1382860623,), (1382860625,), (1382860629,), (1382860631,), (1382860644,), (1382860646,), (1382860647,), (1382860648,), (1382860661,), (1382860663,), (1382860666,), (1382860668,), (1382860685,), (1382860688,), (1382860714,), (1382860715,), (1382860717,), (1382860720,), (1382860723,), (1382860726,), (1382860748,), (1382860751,), (1382860755,), (1382860757,), (1382860759,), (1382860761,), (1382860765,), (1382860769,), (1382860773,), (1382860777,), (1382860780,), (1382860790,), (1382860796,), (1382860801,), (1382860808,), (1382860811,), (1382860816,), (1382860820,), (1382860824,), (1382860834,), (1382860842,), (1382860880,), (1382860925,), (1382860873,), (1382860876,), (1382860895,), (1382860897,), (1382860901,), (1382860906,), (1382860911,), (1382860915,), (1382860932,), (1382860937,), (1382860941,), (1382860945,), (1382860957,), (1382860959,), (1382860964,), (1382860972,), (1382860976,), (1382860988,), (1382860991,), (1382860994,), (1382861018,), (1382861020,), (1382861023,), (1382861026,), (1382861044,), (1382861051,), (1382861054,), (1382861058,), (1382861071,), (1382861075,), (1382861079,), (1382861099,), (1382861116,), (1382861120,), (1382861124,), (1382861128,), (1382861141,), (1382861144,), (1382861147,), (1382861156,), (1382861167,), (1382861172,), (1382861179,), (1382861184,), (1382861188,), (1382861191,), (1382861205,), (1382861209,), (1382861213,), (1382861216,), (1382861229,), (1382861230,), (1382861233,), (1382861235,), (1382861239,), (1382861240,), (1382861278,), (1382861285,), (1382861290,), (1382861293,), (1382861894,), (1382862553,), (1382861716,), (1382861776,), (1382861829,), (1382862194,), (1382862250,), (1382862289,), (1382862359,), (1382862389,), (1382862419,), (1382862524,), (1382862587,), (1382862590,), (1382862597,), (1382862625,), (1382862743,), (1382862756,), (1382862782,), (1382862815,), (1382862820,), (1382863133,), (1382863160,), (1382863527,), (1382863557,), (1382863588,), (1382863619,), (1382863636,), (1382863707,), (1382863736,), (1382863762,), (1382863933,), (1382863964,), (1382864002,), (1382864037,), (1382864313,), (1382864345,), (1382864372,), (1382864405,), (1382864437,), (1382864628,), (1382864639,), (1382864644,), (1382864650,), (1382864768,), (1382864798,), (1382864834,), (1382864867,), (1382865043,), (1382865048,), (1382865052,), (1382865055,), (1382865075,), (1382865077,), (1382865080,), (1382865100,), (1382865103,), (1382865106,), (1382865110,), (1382865116,), (1382865122,), (1382865145,), (1382865147,), (1382865171,), (1382865173,), (1382865177,), (1382865166,), (1382865168,), (1382865188,), (1382865191,), (1382865207,), (1382865209,), (1382865211,), (1382865214,), (1382865217,), (1382865234,), (1382865237,), (1382865242,), (1382865248,), (1382865252,), (1382865260,), (1382865275,), (1382865277,), (1382865279,), (1382865285,), (1382865288,), (1382865303,), (1382865307,), (1382865312,), (1382865317,), (1382865321,), (1382865323,), (1382865342,), (1382865343,), (1382865344,), (1382865348,), (1382865352,), (1382865362,), (1382865365,), (1382865367,), (1382865410,), (1382865412,), (1382865414,), (1382865439,), (1382865442,), (1382865448,), (1382865454,), (1382865483,), (1382865486,), (1382865491,), (1382865495,), (1382865497,), (1382865506,), (1382865511,), (1382865517,), (1382865522,), (1382865528,), (1382865532,), (1382865540,), (1382865541,), (1382865551,), (1382865555,), (1382865560,), (1382865572,), (1382865575,), (1382865579,), (1382865585,), (1382865588,), (1382865591,), (1382865599,), (1382865608,), (1382865611,), (1382865615,), (1382865618,), (1382865620,), (1382865622,), (1382865650,), (1382865644,), (1382865645,), (1382865646,), (1382865675,), (1382865678,), (1382865680,), (1382865684,), (1382865699,), (1382865701,), (1382865703,), (1382865737,), (1382865741,), (1382865745,), (1382865749,), (1382865761,), (1382865762,), (1382865766,), (1382865768,), (1382865774,), (1382865779,), (1382865807,), (1382865809,), (1382865811,), (1382865828,), (1382865831,), (1382865834,), (1382865836,), (1382865839,), (1382865842,), (1382865868,), (1382865871,), (1382865872,), (1382865876,), (1382865895,), (1382865899,), (1382865905,), (1382865928,), (1382865929,), (1382865931,), (1382865936,), (1382865964,), (1382865967,), (1382866001,), (1382866003,), (1382866005,), (1382866007,), (1382866014,), (1382866041,), (1382866046,), (1382866049,), (1382866054,), (1382866059,), (1382866083,), (1382866085,), (1382866110,), (1382866116,), (1382866121,), (1382866154,), (1382866217,), (1382866144,), (1382866146,), (1382866148,), (1382866181,), (1382866184,), (1382866188,), (1382866192,), (1382866194,), (1382866197,), (1382866213,), (1382866225,), (1382866227,), (1382866231,), (1382866235,), (1382866250,), (1382866253,), (1382866256,), (1382866287,), (1382866290,), (1382866294,), (1382866298,), (1382866327,), (1382866339,), (1382866344,), (1382866349,), (1382866353,), (1382866359,), (1382866373,), (1382866375,), (1382866377,), (1382866382,), (1382866386,), (1382866390,), (1382866401,), (1382866404,), (1382866407,), (1382866430,), (1382866433,), (1382866435,), (1382866438,), (1382866459,), (1382866462,), (1382866466,), (1382866470,), (1382866474,), (1382866478,), (1382866485,), (1382866487,), (1382866489,), (1382866508,), (1382866510,), (1382866512,), (1382866513,), (1382866514,), (1382866524,), (1382866525,), (1382866534,), (1382866535,), (1382866538,), (1382866540,), (1382866549,), (1382866552,), (1382866554,), (1382866558,), (1382866562,), (1382866565,), (1382866979,), (1382867014,), (1382867055,), (1382867118,), (1382867181,), (1382867408,), (1382867465,), (1382867540,), (1382868085,), (1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,), (1382870075,), (1382870077,), (1382870079,), (1382870080,), (1382870085,), (1382870093,), (1382870106,), (1382870112,), (1382870127,), (1382870131,), (1382870133,), (1382870135,), (1382870153,), (1382870162,), (1382870169,), (1382870172,), (1382870185,), (1382870187,), (1382870189,), (1382870224,), (1382870227,), (1382870230,), (1382870264,), (1382870305,), (1382870308,), (1382870311,), (1382870317,), (1382870349,), (1382870353,), (1382870358,), (1382870362,), (1382870366,), (1382870379,), (1382870381,), (1382870384,), (1382870387,), (1382870390,), (1382870407,), (1382870409,), (1382870412,), (1382870417,), (1382870425,), (1382870429,), (1382870433,), (1382870442,), (1382870444,), (1382870472,), (1382870474,), (1382870476,), (1382870480,), (1382870466,), (1382870470,), (1382870489,), (1382870494,), (1382870503,), (1382870507,), (1382870517,), (1382870519,), (1382870524,), (1382870527,), (1382870563,), (1382870566,), (1382870571,), (1382870578,), (1382870583,), (1382870599,), (1382870604,), (1382870614,), (1382870656,), (1382870688,), (1382871001,), (1382871003,), (1382871005,), (1382871009,), (1382871014,), (1382871037,), (1382871041,), (1382871048,), (1382871084,), (1382871086,), (1382871088,), (1382871092,), (1382871095,), (1382871108,), (1382871113,), (1382871119,), (1382871122,), (1382871129,), (1382871136,), (1382871144,), (1382871146,), (1382871172,), (1382871175,), (1382871178,), (1382871184,), (1382871191,), (1382871195,), (1382871210,), (1382871212,), (1382871214,), (1382871216,), (1382871218,), (1382871220,), (1382871231,), (1382871235,), (1382871239,), (1382871241,), (1382871244,), (1382871248,), (1382871250,), (1382871254,), (1382871276,), (1382871278,), (1382871279,), (1382871284,), (1382871330,), (1382871319,), (1382871323,), (1382871326,), (1382871355,), (1382871356,), (1382871358,), (1382871361,), (1382871377,), (1382871386,), (1382871391,), (1382871409,), (1382871410,), (1382871411,), (1382871415,), (1382871421,), (1382871435,), (1382871439,), (1382871444,), (1382871451,), (1382871453,), (1382871455,), (1382871459,), (1382871461,), (1382871463,), (1382871472,), (1382871503,), (1382871506,), (1382871508,), (1382871510,), (1382871514,), (1382871518,), (1382871535,), (1382871537,), (1382871541,), (1382871547,), (1382871551,), (1382871555,), (1382871562,), (1382871565,), (1382871568,), (1382871582,), (1382871586,), (1382871591,), (1382871595,), (1382871618,), (1382871619,), (1382871621,), (1382871624,), (1382871627,), (1382871656,), (1382871659,), (1382871661,), (1382871699,), (1382871701,), (1382871703,), (1382871706,), (1382871710,), (1382871712,), (1382871728,), (1382871729,), (1382871730,), (1382871816,), (1382871847,), (1382871876,), (1382872101,), (1382872103,), (1382872105,), (1382872110,), (1382872115,), (1382872124,), (1382872128,), (1382872130,), (1382872159,), (1382872147,), (1382872150,), (1382872154,), (1382872157,), (1382872168,), (1382872169,), (1382872170,), (1382872232,), (1382872235,), (1382872239,), (1382872259,), (1382872260,), (1382872286,), (1382872288,), (1382872292,), (1382872295,), (1382872297,), (1382872299,), (1382872307,), (1382872314,), (1382872319,), (1382872323,), (1382872329,), (1382872335,), (1382872361,), (1382872364,), (1382872367,), (1382872369,), (1382872371,), (1382872374,), (1382872386,), (1382872392,), (1382872395,), (1382872402,), (1382872405,), (1382872408,), (1382872415,), (1382872418,), (1382872421,), (1382872428,), (1382872432,), (1382872435,), (1382872438,), (1382872441,), (1382872443,), (1382872456,), (1382872458,), (1382872459,), (1382872502,), (1382872506,), (1382872509,), (1382872513,), (1382872516,), (1382872518,), (1382872541,), (1382872543,), (1382872555,), (1382872589,), (1382872621,), (1382872656,), (1382872771,), (1382872831,), (1382872888,), (1382872952,), (1382873014,), (1382873152,), (1382873181,), (1382873240,), (1382873293,), (1382873574,), (1382873579,), (1382873606,), (1382874111,), (1382873992,), (1382874044,), (1382874084,), (1382874390,), (1382874417,), (1382874428,), (1382874433,), (1382874640,), (1382874644,), (1382874647,), (1382874651,), (1382874656,), (1382874659,), (1382874671,), (1382874673,), (1382874677,), (1382874681,), (1382874686,), (1382874692,), (1382874702,), (1382874703,), (1382874707,), (1382874714,), (1382874718,), (1382874723,), (1382874736,), (1382874737,), (1382874740,), (1382874742,), (1382874745,), (1382874749,), (1382874764,), (1382874769,), (1382874782,), (1382891378,), (1383007096,), (1383007134,), (1383008224,), (1383009464,), (1383010284,), (1383010344,), (1383010403,), (1383011124,), (1383011860,), (1383012458,), (1383012598,), (1383012639,), (1383012935,), (1383013683,), (1383014404,), (1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,), (1383015562,), (1383015690,), (1383016097,), (1383017120,), (1383017153,), (1383017186,), (1383017218,), (1383018231,), (1383018614,), (1383018867,), (1383019053,), (1383051176,), (1383051179,), (1383051515,), (1383051792,), (1383052780,), (1383053143,), (1383053170,), (1383053217,), (1383053320,), (1383053358,), (1383053687,), (1383061596,), (1383062014,), (1383062251,), (1383062272,), (1383062305,), (1383062339,), (1383062342,), (1383062412,), (1383062415,), (1383062436,), (1383062593,), (1383063453,), (1383082721,), (1383082728,), (1383083101,), (1383084525,), (1383084555,), (1383084680,), (1383084728,), (1383084755,), (1383084848,), (1383085493,), (1383144398,), (1383147104,), (1383147120,), (1383147150,), (1383147183,), (1383147230,), (1383148075,), (1383148684,), (1383147981,), (1383148013,), (1383148044,), (1383148405,), (1383148466,), (1383148522,), (1383148581,), (1383148639,), (1383148991,), (1383149029,), (1383149261,), (1383149265,), (1383149269,), (1383149738,), (1383149781,), (1383149800,), (1383149804,), (1383149808,), (1383149835,), (1383149837,), (1383149842,), (1383149846,), (1383149853,), (1383149862,), (1383149864,), (1383149866,), (1383149869,), (1383149886,), (1383149890,), (1383149895,), (1383149903,), (1383149927,), (1383149930,), (1383149933,), (1383149937,), (1383150253,), (1383150288,), (1383150321,), (1383150605,), (1383150637,), (1383150669,), (1383150701,), (1383150732,), (1383151038,), (1383151067,), (1383151102,), (1383151135,), (1383151174,), (1383151217,), (1383151316,), (1383151322,), (1383151324,), (1383151332,), (1383151361,), (1383151428,), (1383151516,), (1383152582,), (1383152647,), (1383152707,), (1383152768,), (1383152818,), (1383152849,), (1383152946,), (1383153012,), (1383153073,), (1383153374,), (1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,), (1383155714,), (1383155755,), (1383155802,), (1383155833,), (1383155864,), (1383155916,), (1383156303,), (1383156344,), (1383156405,), (1383156462,), (1383156524,), (1383156559,), (1383156677,), (1383156685,), (1383156690,), (1383156709,), (1383156786,), (1383156803,), (1383156825,), (1383156830,), (1383156835,), (1383156839,), (1383156842,), (1383156845,), (1383156880,), (1383156885,), (1383156887,), (1383156890,), (1383156894,), (1383156918,), (1383156920,), (1383156922,), (1383156952,), (1383156954,), (1383156957,), (1383156963,), (1383156982,), (1383156987,), (1383156993,), (1383156997,), (1383157001,), (1383157004,), (1383157154,), (1383157183,), (1383157213,), (1383157246,), (1383157280,), (1383157542,), (1383157619,), (1383157653,), (1383157688,), (1383157895,), (1383158041,), (1383157837,), (1383157840,), (1383157863,), (1383158003,), (1383158009,), (1383158014,), (1383158018,), (1383158023,), (1383158025,), (1383158035,), (1383158036,), (1383158054,), (1383158059,), (1383158063,), (1383158066,), (1383158073,), (1383158074,), (1383158075,), (1383158080,), (1383158088,), (1383158103,), (1383158105,), (1383158109,), (1383158114,), (1383158118,), (1383158122,), (1383158147,), (1383158152,), (1383158157,), (1383158162,), (1383158188,), (1383158189,), (1383158190,), (1383158194,), (1383158213,), (1383158215,), (1383158218,), (1383158221,), (1383158226,), (1383158230,), (1383158265,), (1383158273,), (1383158275,), (1383158311,), (1383158317,), (1383158319,), (1383158323,), (1383158327,), (1383158331,), (1383158383,), (1383158388,), (1383158391,), (1383158396,), (1383158400,), (1383158405,), (1383158433,), (1383158436,), (1383158442,), (1383158447,), (1383158450,), (1383158451,), (1383158467,), (1383158470,), (1383158480,), (1383158483,), (1383158519,), (1383158520,), (1383158521,), (1383158524,), (1383158526,), (1383158529,), (1383158543,), (1383158545,), (1383158547,), (1383158548,), (1383158553,), (1383158555,), (1383158571,), (1383158575,), (1383158579,), (1383158582,), (1383158584,), (1383158597,), (1383158605,), (1383158609,), (1383158628,), (1383158616,), (1383158620,), (1383158622,), (1383158624,), (1383158626,), (1383158661,), (1383158671,), (1383158682,), (1383158685,), (1383158690,), (1383158704,), (1383158709,), (1383158711,), (1383158714,), (1383158718,), (1383158720,), (1383158749,), (1383158751,), (1383158753,), (1383158758,), (1383158761,), (1383158780,), (1383158785,), (1383158790,), (1383158826,), (1383158831,), (1383158833,), (1383158838,), (1383158843,), (1383158885,), (1383158889,), (1383158897,), (1383158902,), (1383158906,), (1383158911,), (1383158918,), (1383158920,), (1383158923,), (1383158927,), (1383158933,), (1383158937,), (1383158943,), (1383158947,), (1383158955,), (1383158959,), (1383158962,), (1383158966,), (1383158997,), (1383159000,), (1383159003,), (1383159007,), (1383159011,), (1383159013,), (1383159032,), (1383159034,), (1383159071,), (1383159077,), (1383159088,), (1383159095,), (1383159102,), (1383159104,), (1383159150,), (1383159153,), (1383159155,), (1383159157,), (1383159162,), (1383159184,), (1383159186,), (1383159188,), (1383159193,), (1383159215,), (1383159217,), (1383159219,), (1383159222,), (1383159265,), (1383159327,), (1383159246,), (1383159250,), (1383159253,), (1383159256,), (1383159261,), (1383159281,), (1383159283,), (1383159288,), (1383159292,), (1383159296,), (1383159304,), (1383159307,), (1383159316,), (1383159323,), (1383159338,), (1383159339,), (1383159342,), (1383159343,), (1383159344,), (1383159345,), (1383159348,), (1383159350,), (1383159353,), (1383159354,), (1383159357,), (1383159358,), (1383159363,), (1383159370,), (1383159378,), (1383159383,), (1383159386,), (1383159393,), (1383159396,), (1383159399,), (1383159425,), (1383159428,), (1383159429,), (1383159432,), (1383159437,), (1383159441,), (1383159482,), (1383159486,), (1383159489,), (1383159493,), (1383159496,), (1383159498,), (1383159514,), (1383159515,), (1383159517,), (1383159520,), (1383159524,), (1383159546,), (1383159548,), (1383159550,), (1383159555,), (1383159560,), (1383159578,), (1383159582,), (1383159585,), (1383159590,), (1383159596,), (1383159609,), (1383159612,), (1383159615,), (1383159620,), (1383159624,), (1383159627,), (1383159638,), (1383159644,), (1383159648,), (1383159653,), (1383159658,), (1383159663,), (1383159668,), (1383159671,), (1383159682,), (1383159685,), (1383159700,), (1383159702,), (1383159711,), (1383159713,), (1383159715,), (1383159719,), (1383160414,), (1383160478,), (1383160538,), (1383161491,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10092025': {'nb_upload': 10, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26719327]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992] map_info['map_portfolio_photo'] : {26719327: [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992]} final : True mtd_id 4302 list_pids : [1383015593, 1383015371, 1383015330, 1383015324, 1383015284, 1383015248, 1383015113, 1383015052, 1383015045, 1383014992] Looping around the photos to save general results len do output : 1 /26719327Didn'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, '3693247') ('4302', '26719327', '1383015593', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015371', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015330', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015324', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015284', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015248', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015113', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015052', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383015045', None, None, None, None, None, '3693247') ('4302', None, None, None, None, None, None, None, '3693247') ('4302', '26719327', '1383014992', None, None, None, None, None, '3693247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '26719327', 'None', None, None, None, None, '3693247'), ('4302', '26719327', '1383015593', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015371', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015330', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015324', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015284', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015248', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015113', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015052', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383015045', None, None, None, None, None, '3693247'), ('4302', '26719327', '1383014992', None, None, None, None, None, '3693247')] time used for this insertion : 0.018482446670532227 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.285349130630493 time spend to save output : 0.018749237060546875 total time spend for step 5 : 7.30409836769104 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 (3693247) 2.24user 2.29system 0:14.90elapsed 30%CPU (0avgtext+0avgdata 153164maxresident)k 34712inputs+5512outputs (109major+74697minor)pagefaults 0swaps