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 : 196531 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 (2715370) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2715370) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931365 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2715370'] with mtr_portfolio_ids : ['21931365'] and first list_photo_ids : [] new path : /proc/196531/ Name: python3 Umask: 0002 State: R (running) Tgid: 196531 Ngid: 0 Pid: 196531 PPid: 196530 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 196531 NSpid: 196531 NSpgid: 194510 NSsid: 194510 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98112 kB VmRSS: 98112 kB RssAnon: 59796 kB RssFile: 38316 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 50 nonvoluntary_ctxt_switches: 79 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '196531', 'Ngid': '0', 'Pid': '196531', 'PPid': '196530', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '196531', 'NSpid': '196531', 'NSpgid': '194510', 'NSsid': '194510', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98112 kB', 'VmRSS': '98112 kB', 'RssAnon': '59796 kB', 'RssFile': '38316 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '50', 'nonvoluntary_ctxt_switches': '79'} ('datou_batch_current', '196531', '1106932', '0', '1106932', '865680', '98112', b'', 'marlene', '2715370') 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 (21931365) 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 (2715370 ) ) 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 (21931365) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349178929, 'portfolio_id': 21931365}, {'photo_id': 1349178035, 'portfolio_id': 21931365}, {'photo_id': 1349178030, 'portfolio_id': 21931365}, {'photo_id': 1349178015, 'portfolio_id': 21931365}, {'photo_id': 1349177830, 'portfolio_id': 21931365}, {'photo_id': 1349175916, 'portfolio_id': 21931365}, {'photo_id': 1349175718, 'portfolio_id': 21931365}, {'photo_id': 1349174339, 'portfolio_id': 21931365}] map_portfolio_id_photo_id: {21931365: [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339]} ##### 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.02071857452392578 #### 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 Wed Apr 2 05:34: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21931365) 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 : 21931365 get user id for portfolio 21931365 get sub ptf for main ptf 21931365, type 3726 and hashtags ['flou', 'Teint_Dans_La_Masse', 'metal', 'autre_refus', 'Carton_brun', 'plastique', 'environnement', 'Carton_gris', 'papier', 'kraft', 'cartonnette', 'mal_croppe'] 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`=21931365 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','metal','autre_refus','Carton_brun','plastique','environnement','Carton_gris','papier','kraft','cartonnette','mal_croppe')) 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`=21931365 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','metal','autre_refus','Carton_brun','plastique','environnement','Carton_gris','papier','kraft','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21931365, 'sub_port_id': 21931419, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435698, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}, 'flou': {'main_port_id': 21931365, 'sub_port_id': 21931420, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435699, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}, 'Carton_gris': {'main_port_id': 21931365, 'sub_port_id': 21931421, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435700, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}, 'mal_croppe': {'main_port_id': 21931365, 'sub_port_id': 21931422, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435701, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}, 'cartonnette': {'main_port_id': 21931365, 'sub_port_id': 21931423, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435702, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}, 'kraft': {'main_port_id': 21931365, 'sub_port_id': 21931424, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435703, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}, 'environnement': {'main_port_id': 21931365, 'sub_port_id': 21931425, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435704, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 21931365, 'sub_port_id': 21931426, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435705, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}, 'metal': {'main_port_id': 21931365, 'sub_port_id': 21931427, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435706, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}, 'plastique': {'main_port_id': 21931365, 'sub_port_id': 21931428, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435707, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}, 'autre_refus': {'main_port_id': 21931365, 'sub_port_id': 21931429, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435708, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}, 'Carton_brun': {'main_port_id': 21931365, 'sub_port_id': 21931430, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435709, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21931419 , 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=21931365 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 (21931419) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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 21931420 , 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=21931365 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 (21931420) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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 21931421 , 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=21931365 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 (21931421) result : ((1349179040,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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 21931422 , 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=21931365 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 (21931422) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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 21931423 , 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=21931365 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 (21931423) result : ((1349179041,), (1349179042,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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 21931424 , 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=21931365 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 (21931424) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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 21931425 , 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=21931365 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 (21931425) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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 21931426 , 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=21931365 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 (21931426) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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 21931427 , 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=21931365 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 (21931427) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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 21931428 , 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=21931365 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 (21931428) result : ((1349178434,), (1349178435,), (1349178436,), (1349179044,), (1349179045,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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 21931429 , 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=21931365 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 (21931429) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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 21931430 , 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=21931365 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 (21931430) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21931365) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,)) 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`=21931365 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','metal','autre_refus','Carton_brun','plastique','environnement','Carton_gris','papier','kraft','cartonnette','mal_croppe')) 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`=21931365 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','metal','autre_refus','Carton_brun','plastique','environnement','Carton_gris','papier','kraft','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21931365, 'sub_port_id': 21931431, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435710, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}, 'flou': {'main_port_id': 21931365, 'sub_port_id': 21931432, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435711, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}, 'Carton_gris': {'main_port_id': 21931365, 'sub_port_id': 21931433, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435712, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}, 'mal_croppe': {'main_port_id': 21931365, 'sub_port_id': 21931434, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435713, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}, 'cartonnette': {'main_port_id': 21931365, 'sub_port_id': 21931435, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435714, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}, 'kraft': {'main_port_id': 21931365, 'sub_port_id': 21931436, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435715, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}, 'environnement': {'main_port_id': 21931365, 'sub_port_id': 21931437, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435716, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 21931365, 'sub_port_id': 21931438, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435717, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}, 'metal': {'main_port_id': 21931365, 'sub_port_id': 21931439, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435718, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}, 'plastique': {'main_port_id': 21931365, 'sub_port_id': 21931440, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435719, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}, 'autre_refus': {'main_port_id': 21931365, 'sub_port_id': 21931441, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435720, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}, 'Carton_brun': {'main_port_id': 21931365, 'sub_port_id': 21931442, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14435721, 'last_updated_at': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 2, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 2, 35, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931431,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931419 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931432,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931420 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931433,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931421 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931434,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931422 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931435,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931423 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931436,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931424 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931437,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931425 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931438,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931426 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931439,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931427 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931440,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931428 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931441,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931429 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21931442,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21931430 lien utilise dans velours : https://www.fotonower.com/velours/21931431,21931432,21931433,21931434,21931435,21931436,21931437,21931438,21931439,21931440,21931441,21931442?tags=papier,flou,Carton_gris,mal_croppe,cartonnette,kraft,environnement,Teint_Dans_La_Masse,metal,plastique,autre_refus,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21931365]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339] map_info['map_portfolio_photo'] : {21931365: [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339]} final : False mtd_id 4302 list_pids : [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339] Looping around the photos to save general results len do output : 1 /21931365. 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, '2715370') ('4302', '21931365', '1349178929', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178035', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178030', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178015', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349177830', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349175916', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349175718', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349174339', None, None, None, None, None, '2715370') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '21931365', "{'papier': 21931419, 'flou': 21931420, 'Carton_gris': 21931421, 'mal_croppe': 21931422, 'cartonnette': 21931423, 'kraft': 21931424, 'environnement': 21931425, 'Teint_Dans_La_Masse': 21931426, 'metal': 21931427, 'plastique': 21931428, 'autre_refus': 21931429, 'Carton_brun': 21931430}", None, None, None, None, '2715370'), ('4302', '21931365', '1349178929', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349178035', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349178030', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349178015', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349177830', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349175916', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349175718', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349174339', None, None, None, None, None, '2715370')] time used for this insertion : 1.3625094890594482 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.554157018661499 time spend to save output : 1.3627820014953613 total time spend for step 1 : 3.9169390201568604 step2:final Wed Apr 2 05:35:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (21931365) 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 21931365 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349174339,1349175718,1349175916,1349177830,1349178035,1349178030,1349178015,1349178929); 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([21931365]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',)} new output for save of step final : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',)} [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339] map_info['map_portfolio_photo'] : {21931365: [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339]} final : False mtd_id 4302 list_pids : [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339] Looping around the photos to save general results len do output : 8 /1349178929.Didn't retrieve data . /1349178035.Didn't retrieve data . /1349178030.Didn't retrieve data . /1349178015.Didn't retrieve data . /1349177830.Didn't retrieve data . /1349175916.Didn't retrieve data . /1349175718.Didn't retrieve data . /1349174339.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, '2715370') ('4302', '21931365', '1349178929', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178035', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178030', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178015', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349177830', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349175916', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349175718', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349174339', None, None, None, None, None, '2715370') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '21931365', '1349178929', '0.08432430922921529', None, None, None, None, '2715370'), ('4302', '21931365', '1349178035', '0.08432430922921529', None, None, None, None, '2715370'), ('4302', '21931365', '1349178030', '0.08432430922921529', None, None, None, None, '2715370'), ('4302', '21931365', '1349178015', '0.08432430922921529', None, None, None, None, '2715370'), ('4302', '21931365', '1349177830', '0.08432430922921529', None, None, None, None, '2715370'), ('4302', '21931365', '1349175916', '0.08432430922921529', None, None, None, None, '2715370'), ('4302', '21931365', '1349175718', '0.08432430922921529', None, None, None, None, '2715370'), ('4302', '21931365', '1349174339', '0.08432430922921529', None, None, None, None, '2715370')] time used for this insertion : 0.013302087783813477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0634763240814209 time spend to save output : 0.013775348663330078 total time spend for step 2 : 0.07725167274475098 step3:velours_tree Wed Apr 2 05:35:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21931365: [{'papier': 21931419, 'flou': 21931420, 'Carton_gris': 21931421, 'mal_croppe': 21931422, 'cartonnette': 21931423, 'kraft': 21931424, 'environnement': 21931425, 'Teint_Dans_La_Masse': 21931426, 'metal': 21931427, 'plastique': 21931428, 'autre_refus': 21931429, 'Carton_brun': 21931430}]} input_args_next_step : {21931365: ()} output_args : {21931365: [{'papier': 21931419, 'flou': 21931420, 'Carton_gris': 21931421, 'mal_croppe': 21931422, 'cartonnette': 21931423, 'kraft': 21931424, 'environnement': 21931425, 'Teint_Dans_La_Masse': 21931426, 'metal': 21931427, 'plastique': 21931428, 'autre_refus': 21931429, 'Carton_brun': 21931430}]} args : 21931365 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 21931419, 'flou': 21931420, 'Carton_gris': 21931421, 'mal_croppe': 21931422, 'cartonnette': 21931423, 'kraft': 21931424, 'environnement': 21931425, 'Teint_Dans_La_Masse': 21931426, 'metal': 21931427, 'plastique': 21931428, 'autre_refus': 21931429, 'Carton_brun': 21931430},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21931365) 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([21931365]) 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.27443504333496094 time spend to save output : 4.100799560546875e-05 total time spend for step 3 : 0.2744760513305664 step4:send_mail_cod Wed Apr 2 05:35:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',)} input_args_next_step : {1349178929: ()} output_args : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',)} args : 1349178929 depend.output_id : 0 input_args_next_step : {1349178929: ('0.08432430922921529',), 1349178035: ()} output_args : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',)} args : 1349178035 depend.output_id : 0 input_args_next_step : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ()} output_args : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',)} args : 1349178030 depend.output_id : 0 input_args_next_step : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ()} output_args : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',)} args : 1349178015 depend.output_id : 0 input_args_next_step : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ()} output_args : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',)} args : 1349177830 depend.output_id : 0 input_args_next_step : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ()} output_args : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',)} args : 1349175916 depend.output_id : 0 input_args_next_step : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ()} output_args : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',)} args : 1349175718 depend.output_id : 0 input_args_next_step : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ()} output_args : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',)} args : 1349174339 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 : {21931365: [{'papier': 21931419, 'flou': 21931420, 'Carton_gris': 21931421, 'mal_croppe': 21931422, 'cartonnette': 21931423, 'kraft': 21931424, 'environnement': 21931425, 'Teint_Dans_La_Masse': 21931426, 'metal': 21931427, 'plastique': 21931428, 'autre_refus': 21931429, 'Carton_brun': 21931430}]} input_args_next_step : {1349178929: ('0.08432430922921529',), 1349178035: ('0.08432430922921529',), 1349178030: ('0.08432430922921529',), 1349178015: ('0.08432430922921529',), 1349177830: ('0.08432430922921529',), 1349175916: ('0.08432430922921529',), 1349175718: ('0.08432430922921529',), 1349174339: ('0.08432430922921529',), 21931365: ()} output_args : {21931365: [{'papier': 21931419, 'flou': 21931420, 'Carton_gris': 21931421, 'mal_croppe': 21931422, 'cartonnette': 21931423, 'kraft': 21931424, 'environnement': 21931425, 'Teint_Dans_La_Masse': 21931426, 'metal': 21931427, 'plastique': 21931428, 'autre_refus': 21931429, 'Carton_brun': 21931430}]} args : 21931365 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 :9, first value : ('0.08432430922921529',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21931365) 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 (1349178929,1349178035,1349178030,1349178015,1349177830,1349175916,1349175718,1349174339) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349174339 begin to download photo : 1349175916 begin to download photo : 1349178015 begin to download photo : 1349178035 download finish for photo 1349178015 begin to download photo : 1349178030 download finish for photo 1349174339 begin to download photo : 1349175718 download finish for photo 1349178030 download finish for photo 1349175916 begin to download photo : 1349177830 download finish for photo 1349175718 download finish for photo 1349177830 download finish for photo 1349178035 begin to download photo : 1349178929 download finish for photo 1349178929 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette219314201743564904/ imagette219314221743564904/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P21931365_02-04-2025_05_35_04.pdf 21931420 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=21931420 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219314201743564904 21931422 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=21931422 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219314221743564904 21931423 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=21931423 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349179041: '1743467732_4033992_1349178929_e3579f5eaab299c2e1f5c331f038f521_rle_crop_3742150184_0.png', 1349179042: '1743467732_4033992_1349178929_e3579f5eaab299c2e1f5c331f038f521_rle_crop_3742150188_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7d176933ead4cfb0d5cefbf7e24895a8_39028564.png change filename to text .imagette219314231743564904/ imagette219314231743564904/1743467732_4033992_1349178929_e3579f5eaab299c2e1f5c331f038f521_rle_crop_3742150188_0.png.png imagette219314231743564904/1743467732_4033992_1349178929_e3579f5eaab299c2e1f5c331f038f521_rle_crop_3742150184_0.png.png imagette219314241743564904/ imagette219314271743564904/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/147c28bacb1885d6f2d70a673dab84b4_7599391.png imagette219314231743564904 21931424 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=21931424 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219314241743564904 21931427 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=21931427 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219314271743564904 21931428 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=21931428 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349178434: '1743467451_4032140_1349178030_d35f47bca44939e45548534c709a5089_rle_crop_3742149515_0.png', 1349178435: '1743467451_4032140_1349178015_d486f72137fe197783faf36f37323db4_rle_crop_3742149528_0.png', 1349178436: '1743467451_4032140_1349178015_d486f72137fe197783faf36f37323db4_rle_crop_3742149527_0.png', 1349179044: '1743467732_4033992_1349178929_e3579f5eaab299c2e1f5c331f038f521_rle_crop_3742150192_0.png', 1349179045: '1743467732_4033992_1349178929_e3579f5eaab299c2e1f5c331f038f521_rle_crop_3742150191_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/514136d7b1bba66143c56665e6b8b341_30187083.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2cdf6a7c84a686ce2a3c50e18895e257_73129004.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/80ffe76a5f2807901f830aacc997ab5a_40776284.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/9870f7bd373c59f12e6a041617ec26f2_37968751.png change filename to text .imagette219314281743564904/ imagette219314281743564904/1743467451_4032140_1349178030_d35f47bca44939e45548534c709a5089_rle_crop_3742149515_0.png.png imagette219314281743564904/1743467451_4032140_1349178015_d486f72137fe197783faf36f37323db4_rle_crop_3742149528_0.png.png imagette219314281743564904/1743467451_4032140_1349178015_d486f72137fe197783faf36f37323db4_rle_crop_3742149527_0.png.png imagette219314281743564904/1743467732_4033992_1349178929_e3579f5eaab299c2e1f5c331f038f521_rle_crop_3742150191_0.png.png imagette219314281743564904/1743467732_4033992_1349178929_e3579f5eaab299c2e1f5c331f038f521_rle_crop_3742150192_0.png.png imagette219314291743564905/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/4cd5abda42a0a786f1a646865b2679bd_81132466.png imagette219314281743564904 21931429 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=21931429 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219314291743564905 21931421 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=21931421 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349179040: '1743467732_4033992_1349178929_e3579f5eaab299c2e1f5c331f038f521_rle_crop_3742150186_0.png'} change filename to text .imagette219314211743564905/ imagette219314211743564905/1743467732_4033992_1349178929_e3579f5eaab299c2e1f5c331f038f521_rle_crop_3742150186_0.png.png imagette219314261743564905/ imagette219314301743564905/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/6bcd594a62c267be69dcc365d7b1cf27_55923644.png imagette219314211743564905 21931426 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=21931426 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219314261743564905 21931430 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=21931430 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219314301743564905 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21931365 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21931431,21931432,21931433,21931434,21931435,21931436,21931437,21931438,21931439,21931440,21931441,21931442?tags=papier,flou,Carton_gris,mal_croppe,cartonnette,kraft,environnement,Teint_Dans_La_Masse,metal,plastique,autre_refus,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1349178929] : ('0.08432430922921529',) no score found for photo 1349178929 We are sending mail with results at report@fotonower.com args[1349178035] : ('0.08432430922921529',) no score found for photo 1349178035 We are sending mail with results at report@fotonower.com args[1349178030] : ('0.08432430922921529',) no score found for photo 1349178030 We are sending mail with results at report@fotonower.com args[1349178015] : ('0.08432430922921529',) no score found for photo 1349178015 We are sending mail with results at report@fotonower.com args[1349177830] : ('0.08432430922921529',) no score found for photo 1349177830 We are sending mail with results at report@fotonower.com args[1349175916] : ('0.08432430922921529',) no score found for photo 1349175916 We are sending mail with results at report@fotonower.com args[1349175718] : ('0.08432430922921529',) no score found for photo 1349175718 We are sending mail with results at report@fotonower.com args[1349174339] : ('0.08432430922921529',) no score found for photo 1349174339 We are sending mail with results at report@fotonower.com refus_total : 0.08432430922921529 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=21931365 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_P21931365_02-04-2025_05_35_04.pdf results_Auto_P21931365_02-04-2025_05_35_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21931365_02-04-2025_05_35_04.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','21931365','results_Auto_P21931365_02-04-2025_05_35_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21931365_02-04-2025_05_35_04.pdf','pdf','','0.11','0.08432430922921529') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21931365]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339] map_info['map_portfolio_photo'] : {21931365: [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339]} final : False mtd_id 4302 list_pids : [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339] 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, '2715370') ('4302', '21931365', '1349178929', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178035', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178030', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178015', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349177830', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349175916', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349175718', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349174339', None, None, None, None, None, '2715370') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '21931365', '1349178929', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349178035', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349178030', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349178015', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349177830', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349175916', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349175718', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349174339', None, None, None, None, None, '2715370')] time used for this insertion : 0.4806807041168213 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.316331148147583 time spend to save output : 0.4809267520904541 total time spend for step 4 : 4.797257900238037 step5:split_time_score Wed Apr 2 05:35:07 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 : ['21931365'] 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 : [('21931365',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21931365) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349178015: {'path': 'temp/1743564903_196531_1349178015_d486f72137fe197783faf36f37323db4.jpg', 'extension': 'jpg'}, 1349178030: {'path': 'temp/1743564903_196531_1349178030_d35f47bca44939e45548534c709a5089.jpg', 'extension': 'jpg'}, 1349174339: {'path': 'temp/1743564903_196531_1349174339_c1098e48848e6eef7a4cd3c3194d3cb0.jpg', 'extension': 'jpg'}, 1349175718: {'path': 'temp/1743564903_196531_1349175718_5d86baf9ad544993fa1835d4817daa41.jpg', 'extension': 'jpg'}, 1349175916: {'path': 'temp/1743564903_196531_1349175916_14839b7b87d2f965de05d2a932463a37.jpg', 'extension': 'jpg'}, 1349177830: {'path': 'temp/1743564903_196531_1349177830_eed9b528200631ef302582abb2bab7db.jpg', 'extension': 'jpg'}, 1349178035: {'path': 'temp/1743564903_196531_1349178035_b8c5fb8100c8133ca5839efd95e890ff.jpg', 'extension': 'jpg'}, 1349178929: {'path': 'temp/1743564903_196531_1349178929_e3579f5eaab299c2e1f5c331f038f521.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 = 21931365; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21931365 group by h (('02', 8),) 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=21931365 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 (21931365) 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 (21931365) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01042025 21931365 Nombre de photos uploadées : 8 / 23040 (0%) 01042025 21931365 Nombre de photos taguées (types de déchets): 0 / 8 (0%) 01042025 21931365 Nombre de photos taguées (volume) : 0 / 8 (0%) [{'photo_id': 1349174339, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c1098e48848e6eef7a4cd3c3194d3cb0.jpg', 'username': None, 'uploaded_at': 1743466687, 'text': 'image_01042025_02_15_54_10138.jpg'}, {'photo_id': 1349175718, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5d86baf9ad544993fa1835d4817daa41.jpg', 'username': None, 'uploaded_at': 1743466867, 'text': 'image_01042025_02_17_23_10140.jpg'}, {'photo_id': 1349175916, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/14839b7b87d2f965de05d2a932463a37.jpg', 'username': None, 'uploaded_at': 1743466927, 'text': 'image_01042025_02_20_04_10139.jpg'}, {'photo_id': 1349177830, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/eed9b528200631ef302582abb2bab7db.jpg', 'username': None, 'uploaded_at': 1743467347, 'text': 'image_01042025_02_21_34_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ???????? elapsed_time : fill_and_build_computed_from_old_data 0.0005402565002441406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21931365, '2025-04-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1705632,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023216962814331055 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= 1705632 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21931365, 'dashboard_result_id': 9801854, '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_P21931365_01-04-2025_02_35_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21931419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21931420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21931421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21931422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21931423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21931424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21931425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21931426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21931427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21931428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21931429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21931430, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21931497, 'dashboard_result_id': 9801855, '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_P21931497_01-04-2025_02_51_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21931499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21931500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21931501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21931502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21931503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21931504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21931505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21931506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21931507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21931508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21931509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21931510, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21932408, 'dashboard_result_id': 9801856, '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_P21932408_01-04-2025_04_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21932410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21932411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21932412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21932413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21932414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21932415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21932416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21932417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21932418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21932419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21932420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21932421, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21933164, 'dashboard_result_id': 9801857, '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_P21933164_01-04-2025_05_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933178, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21933416, 'dashboard_result_id': 9801858, '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_P21933416_01-04-2025_06_06_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933430, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21933884, 'dashboard_result_id': 9801859, '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_P21933884_01-04-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21933912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933923, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21934417, 'dashboard_result_id': 9801860, '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_P21934417_01-04-2025_06_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21934420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21934421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21934422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21934423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21934424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21934425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21934426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21934427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21934428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21934429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21934430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21934431, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21934914, 'dashboard_result_id': 9801861, '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_P21934914_01-04-2025_06_20_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21934963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21934964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21934965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21934966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21934967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21934968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21934969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21934970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21934971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21934972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21934973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21934974, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21935562, 'dashboard_result_id': 9801862, '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_P21935562_01-04-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21935589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21935590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21935591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21935592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21935593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21935594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21935595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21935596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21935597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21935598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21935599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21935600, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21935870, 'dashboard_result_id': 9801863, '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_P21935870_01-04-2025_06_40_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21935921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21935922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21935923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21935924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21935925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21935926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21935927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21935928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21935929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21935930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21935931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21935932, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21936299, 'dashboard_result_id': 9801864, '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_P21936299_01-04-2025_07_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936313, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21936767, 'dashboard_result_id': 9801865, '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_P21936767_01-04-2025_07_23_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936842, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21937221, 'dashboard_result_id': 9801866, '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_P21937221_01-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21937228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21937229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21937230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21937231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21937232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21937233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21937234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21937235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21937236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21937237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21937238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21937239, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21938116, 'dashboard_result_id': 9801867, '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_P21938116_01-04-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21938122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21938123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21938124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21938125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21938126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21938127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21938128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21938129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21938130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21938131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21938132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21938133, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21938715, 'dashboard_result_id': 9801868, '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_P21938715_01-04-2025_08_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21938742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21938743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21938744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21938745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21938746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21938747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21938748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21938749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21938750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21938751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21938752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21938753, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21939479, 'dashboard_result_id': 9801869, '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_P21939479_01-04-2025_08_19_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21939482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21939483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21939484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21939485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21939486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21939487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21939488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21939489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21939490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21939491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21939492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21939493, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21940075, 'dashboard_result_id': 9801870, '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_P21940075_01-04-2025_08_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21940079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21940080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21940081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21940082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21940083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21940084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21940085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21940086, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21940087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21940088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21940089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21940090, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21940655, 'dashboard_result_id': 9801871, '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_P21940655_01-04-2025_08_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21940690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21940691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21940692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21940693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21940694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21940695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21940696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21940697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21940698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21940699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21940700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21940701, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21941026, 'dashboard_result_id': 9801872, '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_P21941026_02-04-2025_01_12_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21941055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21941056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21941057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21941058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21941059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21941060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21941061, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21941062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21941063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21941064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21941065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21941066, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21945514, 'dashboard_result_id': 9801873, '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_P21945514_01-04-2025_14_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945529, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21945658, 'dashboard_result_id': 9801874, '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_P21945658_01-04-2025_14_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945673, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21945960, 'dashboard_result_id': 9801875, '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_P21945960_01-04-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945974, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21946263, 'dashboard_result_id': 9801876, '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_P21946263_01-04-2025_15_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21946271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946280, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21946690, 'dashboard_result_id': 9801877, '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_P21946690_01-04-2025_15_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21946710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946721, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21947123, 'dashboard_result_id': 9801878, '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_P21947123_01-04-2025_15_37_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21947174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21947175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21947176, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21947177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21947178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21947179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21947180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21947181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21947182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21947183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21947184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21947185, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21947606, 'dashboard_result_id': 9801879, '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_P21947606_01-04-2025_15_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21947609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21947610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21947611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21947612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21947613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21947614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21947615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21947616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21947617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21947618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21947619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21947620, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21947903, 'dashboard_result_id': 9801880, '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_P21947903_01-04-2025_16_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21947907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21947908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21947909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21947910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21947911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21947912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21947913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21947914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21947915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21947916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21947917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21947918, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21948384, 'dashboard_result_id': 9801881, '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_P21948384_01-04-2025_16_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21948388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21948389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21948390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21948391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21948392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21948393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21948394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21948395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21948396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21948397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21948398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21948399, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21949089, 'dashboard_result_id': 9801882, '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_P21949089_01-04-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21949102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949104, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21949258, 'dashboard_result_id': 9801883, '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_P21949258_01-04-2025_16_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21949273, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21949788, 'dashboard_result_id': 9801884, '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_P21949788_01-04-2025_17_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21949815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949826, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21950402, 'dashboard_result_id': 9801885, '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_P21950402_01-04-2025_17_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21950405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21950406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21950407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21950408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21950409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21950410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21950411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21950412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21950413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21950414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21950415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21950416, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21951031, 'dashboard_result_id': 9801886, '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_P21951031_01-04-2025_17_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21951035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21951036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21951037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21951038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21951039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21951040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21951041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21951042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21951043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21951044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21951045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21951046, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21952036, 'dashboard_result_id': 9801887, '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_P21952036_01-04-2025_18_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21952039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21952040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21952041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21952042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21952043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21952044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21952045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21952046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21952047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21952048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21952049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21952050, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21952498, 'dashboard_result_id': 9801888, '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_P21952498_01-04-2025_18_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21952503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21952504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21952505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21952506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21952507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21952508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21952509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21952510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21952511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21952512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21952513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21952515, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21953111, 'dashboard_result_id': 9801889, '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_P21953111_01-04-2025_18_51_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21953149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21953150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21953151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21953152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21953153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21953154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21953155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21953156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21953157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21953158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21953159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21953160, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21953698, 'dashboard_result_id': 9801890, '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_P21953698_01-04-2025_19_02_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21953727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21953728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21953729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21953730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21953731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21953732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21953733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21953734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21953735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21953736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21953737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21953738, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21954306, 'dashboard_result_id': 9801891, '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_P21954306_01-04-2025_19_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21954309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21954310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21954311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21954312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21954313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21954314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21954315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21954316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21954317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21954318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21954319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21954320, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21954804, 'dashboard_result_id': 9801892, '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_P21954804_01-04-2025_19_33_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21954831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21954832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21954833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21954834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21954835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21954836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21954837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21954838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21954839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21954840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21954841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21954842, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21955357, 'dashboard_result_id': 9801893, '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_P21955357_01-04-2025_19_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21955409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21955410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21955411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21955412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21955413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21955414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21955415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21955416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21955417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21955418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21955419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21955420, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21955879, 'dashboard_result_id': 9801894, '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_P21955879_01-04-2025_20_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21955882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21955883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21955884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21955885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21955886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21955887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21955888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21955889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21955890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21955891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21955892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21955893, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21956398, 'dashboard_result_id': 9801895, '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_P21956398_01-04-2025_20_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21956425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21956426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21956427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21956428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21956429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21956430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21956431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21956432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21956433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21956434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21956435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21956436, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21956983, 'dashboard_result_id': 9801896, '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_P21956983_01-04-2025_20_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21957012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21957013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21957014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21957015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21957016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21957017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21957018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21957019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21957020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21957021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21957022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21957023, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21957541, 'dashboard_result_id': 9801897, '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_P21957541_01-04-2025_21_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21957567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21957568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21957569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21957570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21957571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21957572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21957573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21957574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21957575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21957576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21957577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21957578, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1717449, 'mtr_portfolio_id': 21958543, 'dashboard_result_id': 9801898, '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_P21958543_01-04-2025_21_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21958546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21958547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21958548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21958549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21958550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21958551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21958552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21958553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21958554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21958555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21958556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21958557, '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 = 21931365 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': 2715370, 'mtr_portfolio_id': 21931365, 'created_at': datetime.datetime(2025, 4, 2, 5, 35, 2), 'result': '0.08432430922921529', 'result_long': None, 'result_double': None}] Qualite : 0.08432430922921529 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21931365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21931365_02-04-2025_05_35_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21931365 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_P21931365_02-04-2025_05_35_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21931419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21931420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21931421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21931422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21931423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21931424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21931425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21931426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21931427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21931428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21931429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21931430, 'pht': 3726}}" where mtr_portfolio_id = 21931365 and dashboard_run_id = 1717449 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`=21931365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801854, 0.08432430922921529, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21931365_02-04-2025_05_35_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21931419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21931420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21931421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21931422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21931423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21931424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21931425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21931426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21931427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21931428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21931429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21931430, '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 = 21931497 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': 2711280, 'mtr_portfolio_id': 21931497, 'created_at': datetime.datetime(2025, 4, 1, 2, 51), 'result': '0.05378249651879018', 'result_long': None, 'result_double': None}] Qualite : 0.05378249651879018 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21931497 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21931497_01-04-2025_02_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21931497 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_P21931497_01-04-2025_02_51_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21931499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21931500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21931501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21931502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21931503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21931504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21931505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21931506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21931507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21931508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21931509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21931510, 'pht': 3726}}" where mtr_portfolio_id = 21931497 and dashboard_run_id = 1717449 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`=21931497 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801855, 0.05378249651879018, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21931497_01-04-2025_02_51_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21931499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21931500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21931501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21931502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21931503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21931504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21931505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21931506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21931507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21931508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21931509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21931510, '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 = 21932408 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': 2711401, 'mtr_portfolio_id': 21932408, 'created_at': datetime.datetime(2025, 4, 1, 4, 3), 'result': '0.14507383145224567', 'result_long': None, 'result_double': None}] Qualite : 0.14507383145224567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21932408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21932408_01-04-2025_04_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21932408 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_P21932408_01-04-2025_04_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21932410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21932411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21932412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21932413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21932414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21932415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21932416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21932417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21932418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21932419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21932420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21932421, 'pht': 3726}}" where mtr_portfolio_id = 21932408 and dashboard_run_id = 1717449 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`=21932408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801856, 0.14507383145224567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21932408_01-04-2025_04_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21932410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21932411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21932412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21932413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21932414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21932415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21932416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21932417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21932418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21932419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21932420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21932421, '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 = 21933164 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': 2711497, 'mtr_portfolio_id': 21933164, 'created_at': datetime.datetime(2025, 4, 1, 5, 16, 58), 'result': '0.10245077482147406', 'result_long': None, 'result_double': None}] Qualite : 0.10245077482147406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21933164 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933164_01-04-2025_05_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21933164 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_P21933164_01-04-2025_05_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933178, 'pht': 3726}}" where mtr_portfolio_id = 21933164 and dashboard_run_id = 1717449 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`=21933164 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801857, 0.10245077482147406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933164_01-04-2025_05_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933178, '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 = 21933416 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': 2711598, 'mtr_portfolio_id': 21933416, 'created_at': datetime.datetime(2025, 4, 1, 6, 5, 59), 'result': '0.04344756803708486', 'result_long': None, 'result_double': None}] Qualite : 0.04344756803708486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21933416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933416_01-04-2025_06_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21933416 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_P21933416_01-04-2025_06_06_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933430, 'pht': 3726}}" where mtr_portfolio_id = 21933416 and dashboard_run_id = 1717449 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`=21933416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801858, 0.04344756803708486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933416_01-04-2025_06_06_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933430, '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 = 21933884 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': 2711610, 'mtr_portfolio_id': 21933884, 'created_at': datetime.datetime(2025, 4, 1, 5, 49, 30), 'result': '0.04014615871914352', 'result_long': None, 'result_double': None}] Qualite : 0.04014615871914352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21933884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933884_01-04-2025_05_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21933884 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_P21933884_01-04-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21933912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933923, 'pht': 3726}}" where mtr_portfolio_id = 21933884 and dashboard_run_id = 1717449 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`=21933884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801859, 0.04014615871914352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933884_01-04-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21933912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933923, '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 = 21934417 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': 2711638, 'mtr_portfolio_id': 21934417, 'created_at': datetime.datetime(2025, 4, 1, 6, 2, 59), 'result': '0.04317725021261593', 'result_long': None, 'result_double': None}] Qualite : 0.04317725021261593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21934417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21934417_01-04-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21934417 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_P21934417_01-04-2025_06_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21934420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21934421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21934422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21934423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21934424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21934425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21934426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21934427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21934428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21934429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21934430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21934431, 'pht': 3726}}" where mtr_portfolio_id = 21934417 and dashboard_run_id = 1717449 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`=21934417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801860, 0.04317725021261593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21934417_01-04-2025_06_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21934420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21934421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21934422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21934423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21934424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21934425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21934426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21934427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21934428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21934429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21934430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21934431, '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 = 21934914 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': 2711684, 'mtr_portfolio_id': 21934914, 'created_at': datetime.datetime(2025, 4, 1, 6, 20, 59), 'result': '0.06418167610118711', 'result_long': None, 'result_double': None}] Qualite : 0.06418167610118711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21934914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21934914_01-04-2025_06_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21934914 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_P21934914_01-04-2025_06_20_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21934963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21934964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21934965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21934966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21934967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21934968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21934969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21934970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21934971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21934972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21934973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21934974, 'pht': 3726}}" where mtr_portfolio_id = 21934914 and dashboard_run_id = 1717449 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`=21934914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801861, 0.06418167610118711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21934914_01-04-2025_06_20_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21934963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21934964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21934965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21934966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21934967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21934968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21934969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21934970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21934971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21934972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21934973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21934974, '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 = 21935562 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': 2711718, 'mtr_portfolio_id': 21935562, 'created_at': datetime.datetime(2025, 4, 1, 6, 33, 1), 'result': '0.059926937124881854', 'result_long': None, 'result_double': None}] Qualite : 0.059926937124881854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21935562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21935562_01-04-2025_06_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21935562 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_P21935562_01-04-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21935589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21935590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21935591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21935592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21935593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21935594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21935595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21935596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21935597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21935598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21935599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21935600, 'pht': 3726}}" where mtr_portfolio_id = 21935562 and dashboard_run_id = 1717449 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`=21935562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801862, 0.059926937124881854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21935562_01-04-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21935589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21935590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21935591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21935592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21935593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21935594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21935595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21935596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21935597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21935598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21935599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21935600, '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 = 21935870 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': 2711743, 'mtr_portfolio_id': 21935870, 'created_at': datetime.datetime(2025, 4, 1, 6, 40, 29), 'result': '0.07344210490215151', 'result_long': None, 'result_double': None}] Qualite : 0.07344210490215151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21935870 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21935870_01-04-2025_06_40_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21935870 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_P21935870_01-04-2025_06_40_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21935921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21935922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21935923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21935924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21935925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21935926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21935927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21935928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21935929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21935930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21935931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21935932, 'pht': 3726}}" where mtr_portfolio_id = 21935870 and dashboard_run_id = 1717449 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`=21935870 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801863, 0.07344210490215151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21935870_01-04-2025_06_40_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21935921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21935922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21935923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21935924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21935925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21935926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21935927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21935928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21935929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21935930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21935931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21935932, '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 = 21936299 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': 2711772, 'mtr_portfolio_id': 21936299, 'created_at': datetime.datetime(2025, 4, 1, 7, 3, 1), 'result': '0.06826110648920385', 'result_long': None, 'result_double': None}] Qualite : 0.06826110648920385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21936299 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21936299_01-04-2025_07_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21936299 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_P21936299_01-04-2025_07_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936313, 'pht': 3726}}" where mtr_portfolio_id = 21936299 and dashboard_run_id = 1717449 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`=21936299 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801864, 0.06826110648920385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21936299_01-04-2025_07_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936313, '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 = 21936767 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': 2711821, 'mtr_portfolio_id': 21936767, 'created_at': datetime.datetime(2025, 4, 1, 7, 23), 'result': '0.059080308654420946', 'result_long': None, 'result_double': None}] Qualite : 0.059080308654420946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21936767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21936767_01-04-2025_07_23_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21936767 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_P21936767_01-04-2025_07_23_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936842, 'pht': 3726}}" where mtr_portfolio_id = 21936767 and dashboard_run_id = 1717449 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`=21936767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801865, 0.059080308654420946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21936767_01-04-2025_07_23_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936842, '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 = 21937221 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': 2711895, 'mtr_portfolio_id': 21937221, 'created_at': datetime.datetime(2025, 4, 1, 7, 33, 1), 'result': '0.05532164991775658', 'result_long': None, 'result_double': None}] Qualite : 0.05532164991775658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21937221 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21937221_01-04-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21937221 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_P21937221_01-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21937228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21937229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21937230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21937231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21937232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21937233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21937234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21937235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21937236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21937237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21937238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21937239, 'pht': 3726}}" where mtr_portfolio_id = 21937221 and dashboard_run_id = 1717449 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`=21937221 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801866, 0.05532164991775658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21937221_01-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21937228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21937229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21937230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21937231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21937232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21937233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21937234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21937235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21937236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21937237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21937238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21937239, '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 = 21938116 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': 2711967, 'mtr_portfolio_id': 21938116, 'created_at': datetime.datetime(2025, 4, 1, 7, 48, 59), 'result': '0.045723350067073176', 'result_long': None, 'result_double': None}] Qualite : 0.045723350067073176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21938116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21938116_01-04-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21938116 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_P21938116_01-04-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21938122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21938123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21938124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21938125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21938126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21938127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21938128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21938129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21938130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21938131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21938132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21938133, 'pht': 3726}}" where mtr_portfolio_id = 21938116 and dashboard_run_id = 1717449 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`=21938116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801867, 0.045723350067073176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21938116_01-04-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21938122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21938123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21938124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21938125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21938126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21938127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21938128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21938129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21938130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21938131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21938132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21938133, '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 = 21938715 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': 2712013, 'mtr_portfolio_id': 21938715, 'created_at': datetime.datetime(2025, 4, 1, 8, 2, 58), 'result': '0.05708466206649813', 'result_long': None, 'result_double': None}] Qualite : 0.05708466206649813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21938715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21938715_01-04-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21938715 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_P21938715_01-04-2025_08_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21938742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21938743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21938744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21938745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21938746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21938747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21938748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21938749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21938750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21938751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21938752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21938753, 'pht': 3726}}" where mtr_portfolio_id = 21938715 and dashboard_run_id = 1717449 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`=21938715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801868, 0.05708466206649813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21938715_01-04-2025_08_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21938742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21938743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21938744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21938745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21938746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21938747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21938748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21938749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21938750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21938751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21938752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21938753, '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 = 21939479 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': 2712075, 'mtr_portfolio_id': 21939479, 'created_at': datetime.datetime(2025, 4, 1, 8, 19, 30), 'result': '0.05484564983328607', 'result_long': None, 'result_double': None}] Qualite : 0.05484564983328607 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21939479 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21939479_01-04-2025_08_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21939479 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_P21939479_01-04-2025_08_19_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21939482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21939483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21939484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21939485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21939486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21939487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21939488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21939489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21939490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21939491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21939492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21939493, 'pht': 3726}}" where mtr_portfolio_id = 21939479 and dashboard_run_id = 1717449 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`=21939479 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801869, 0.05484564983328607, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21939479_01-04-2025_08_19_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21939482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21939483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21939484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21939485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21939486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21939487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21939488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21939489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21939490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21939491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21939492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21939493, '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 = 21940075 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': 2712121, 'mtr_portfolio_id': 21940075, 'created_at': datetime.datetime(2025, 4, 1, 8, 32, 58), 'result': '0.043821238207443894', 'result_long': None, 'result_double': None}] Qualite : 0.043821238207443894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21940075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21940075_01-04-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21940075 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_P21940075_01-04-2025_08_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21940079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21940080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21940081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21940082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21940083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21940084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21940085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21940086, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21940087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21940088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21940089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21940090, 'pht': 3726}}" where mtr_portfolio_id = 21940075 and dashboard_run_id = 1717449 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`=21940075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801870, 0.043821238207443894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21940075_01-04-2025_08_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21940079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21940080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21940081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21940082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21940083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21940084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21940085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21940086, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21940087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21940088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21940089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21940090, '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 = 21940655 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': 2712187, 'mtr_portfolio_id': 21940655, 'created_at': datetime.datetime(2025, 4, 1, 8, 48, 59), 'result': '0.05551886121152252', 'result_long': None, 'result_double': None}] Qualite : 0.05551886121152252 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21940655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21940655_01-04-2025_08_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21940655 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_P21940655_01-04-2025_08_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21940690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21940691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21940692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21940693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21940694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21940695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21940696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21940697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21940698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21940699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21940700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21940701, 'pht': 3726}}" where mtr_portfolio_id = 21940655 and dashboard_run_id = 1717449 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`=21940655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801871, 0.05551886121152252, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21940655_01-04-2025_08_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21940690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21940691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21940692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21940693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21940694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21940695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21940696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21940697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21940698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21940699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21940700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21940701, '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 = 21941026 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': 2712219, 'mtr_portfolio_id': 21941026, 'created_at': datetime.datetime(2025, 4, 2, 1, 12, 34), 'result': '0.05380190881903319', 'result_long': None, 'result_double': None}] Qualite : 0.05380190881903319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21941026 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21941026_02-04-2025_01_12_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21941026 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_P21941026_02-04-2025_01_12_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21941055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21941056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21941057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21941058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21941059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21941060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21941061, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21941062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21941063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21941064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21941065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21941066, 'pht': 3726}}" where mtr_portfolio_id = 21941026 and dashboard_run_id = 1717449 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`=21941026 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801872, 0.05380190881903319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21941026_02-04-2025_01_12_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21941055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21941056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21941057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21941058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21941059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21941060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21941061, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21941062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21941063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21941064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21941065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21941066, '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 = 21945514 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': 2713127, 'mtr_portfolio_id': 21945514, 'created_at': datetime.datetime(2025, 4, 1, 14, 17), 'result': '0.0804719207173195', 'result_long': None, 'result_double': None}] Qualite : 0.0804719207173195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21945514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945514_01-04-2025_14_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21945514 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_P21945514_01-04-2025_14_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945529, 'pht': 3726}}" where mtr_portfolio_id = 21945514 and dashboard_run_id = 1717449 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`=21945514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801873, 0.0804719207173195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945514_01-04-2025_14_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945529, '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 = 21945658 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': 2713139, 'mtr_portfolio_id': 21945658, 'created_at': datetime.datetime(2025, 4, 1, 14, 33, 1), 'result': '0.039204723560648885', 'result_long': None, 'result_double': None}] Qualite : 0.039204723560648885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21945658 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945658_01-04-2025_14_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21945658 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_P21945658_01-04-2025_14_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945673, 'pht': 3726}}" where mtr_portfolio_id = 21945658 and dashboard_run_id = 1717449 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`=21945658 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801874, 0.039204723560648885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945658_01-04-2025_14_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945673, '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 = 21945960 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': 2713190, 'mtr_portfolio_id': 21945960, 'created_at': datetime.datetime(2025, 4, 1, 14, 48, 59), 'result': '0.07152602491044605', 'result_long': None, 'result_double': None}] Qualite : 0.07152602491044605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21945960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945960_01-04-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21945960 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_P21945960_01-04-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945974, 'pht': 3726}}" where mtr_portfolio_id = 21945960 and dashboard_run_id = 1717449 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`=21945960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801875, 0.07152602491044605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945960_01-04-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945974, '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 = 21946263 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': 2713229, 'mtr_portfolio_id': 21946263, 'created_at': datetime.datetime(2025, 4, 1, 15, 5), 'result': '0.046229559805410304', 'result_long': None, 'result_double': None}] Qualite : 0.046229559805410304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21946263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946263_01-04-2025_15_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21946263 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_P21946263_01-04-2025_15_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21946271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946280, 'pht': 3726}}" where mtr_portfolio_id = 21946263 and dashboard_run_id = 1717449 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`=21946263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801876, 0.046229559805410304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946263_01-04-2025_15_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21946271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946280, '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 = 21946690 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': 2713283, 'mtr_portfolio_id': 21946690, 'created_at': datetime.datetime(2025, 4, 1, 15, 16, 57), 'result': '0.03950082123681036', 'result_long': None, 'result_double': None}] Qualite : 0.03950082123681036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21946690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946690_01-04-2025_15_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21946690 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_P21946690_01-04-2025_15_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21946710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946721, 'pht': 3726}}" where mtr_portfolio_id = 21946690 and dashboard_run_id = 1717449 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`=21946690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801877, 0.03950082123681036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946690_01-04-2025_15_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21946710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946721, '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 = 21947123 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': 2713321, 'mtr_portfolio_id': 21947123, 'created_at': datetime.datetime(2025, 4, 1, 15, 36, 59), 'result': '0.05726463817749887', 'result_long': None, 'result_double': None}] Qualite : 0.05726463817749887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21947123 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21947123_01-04-2025_15_37_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21947123 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_P21947123_01-04-2025_15_37_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21947174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21947175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21947176, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21947177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21947178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21947179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21947180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21947181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21947182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21947183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21947184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21947185, 'pht': 3726}}" where mtr_portfolio_id = 21947123 and dashboard_run_id = 1717449 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`=21947123 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801878, 0.05726463817749887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21947123_01-04-2025_15_37_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21947174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21947175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21947176, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21947177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21947178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21947179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21947180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21947181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21947182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21947183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21947184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21947185, '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 = 21947606 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': 2713382, 'mtr_portfolio_id': 21947606, 'created_at': datetime.datetime(2025, 4, 1, 15, 46, 59), 'result': '0.036946816233262195', 'result_long': None, 'result_double': None}] Qualite : 0.036946816233262195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21947606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21947606_01-04-2025_15_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21947606 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_P21947606_01-04-2025_15_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21947609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21947610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21947611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21947612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21947613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21947614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21947615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21947616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21947617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21947618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21947619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21947620, 'pht': 3726}}" where mtr_portfolio_id = 21947606 and dashboard_run_id = 1717449 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`=21947606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801879, 0.036946816233262195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21947606_01-04-2025_15_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21947609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21947610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21947611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21947612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21947613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21947614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21947615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21947616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21947617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21947618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21947619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21947620, '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 = 21947903 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': 2713418, 'mtr_portfolio_id': 21947903, 'created_at': datetime.datetime(2025, 4, 1, 16, 2, 59), 'result': '0.04875771426930936', 'result_long': None, 'result_double': None}] Qualite : 0.04875771426930936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21947903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21947903_01-04-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21947903 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_P21947903_01-04-2025_16_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21947907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21947908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21947909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21947910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21947911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21947912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21947913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21947914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21947915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21947916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21947917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21947918, 'pht': 3726}}" where mtr_portfolio_id = 21947903 and dashboard_run_id = 1717449 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`=21947903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801880, 0.04875771426930936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21947903_01-04-2025_16_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21947907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21947908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21947909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21947910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21947911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21947912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21947913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21947914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21947915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21947916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21947917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21947918, '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 = 21948384 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': 2713470, 'mtr_portfolio_id': 21948384, 'created_at': datetime.datetime(2025, 4, 1, 16, 16, 58), 'result': '0.05244900971459089', 'result_long': None, 'result_double': None}] Qualite : 0.05244900971459089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21948384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21948384_01-04-2025_16_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21948384 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_P21948384_01-04-2025_16_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21948388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21948389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21948390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21948391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21948392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21948393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21948394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21948395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21948396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21948397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21948398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21948399, 'pht': 3726}}" where mtr_portfolio_id = 21948384 and dashboard_run_id = 1717449 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`=21948384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801881, 0.05244900971459089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21948384_01-04-2025_16_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21948388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21948389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21948390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21948391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21948392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21948393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21948394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21948395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21948396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21948397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21948398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21948399, '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 = 21949089 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': 2713547, 'mtr_portfolio_id': 21949089, 'created_at': datetime.datetime(2025, 4, 1, 16, 33), 'result': '0.05376118984120812', 'result_long': None, 'result_double': None}] Qualite : 0.05376118984120812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21949089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21949089_01-04-2025_16_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21949089 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_P21949089_01-04-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21949102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949104, 'pht': 3726}}" where mtr_portfolio_id = 21949089 and dashboard_run_id = 1717449 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`=21949089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801882, 0.05376118984120812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21949089_01-04-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21949102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949104, '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 = 21949258 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': 2713564, 'mtr_portfolio_id': 21949258, 'created_at': datetime.datetime(2025, 4, 1, 16, 47, 1), 'result': '0.03980079340073193', 'result_long': None, 'result_double': None}] Qualite : 0.03980079340073193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21949258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21949258_01-04-2025_16_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21949258 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_P21949258_01-04-2025_16_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21949273, 'pht': 3726}}" where mtr_portfolio_id = 21949258 and dashboard_run_id = 1717449 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`=21949258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801883, 0.03980079340073193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21949258_01-04-2025_16_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21949273, '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 = 21949788 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': 2713610, 'mtr_portfolio_id': 21949788, 'created_at': datetime.datetime(2025, 4, 1, 17, 2, 58), 'result': '0.059239150326573425', 'result_long': None, 'result_double': None}] Qualite : 0.059239150326573425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21949788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21949788_01-04-2025_17_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21949788 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_P21949788_01-04-2025_17_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21949815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949826, 'pht': 3726}}" where mtr_portfolio_id = 21949788 and dashboard_run_id = 1717449 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`=21949788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801884, 0.059239150326573425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21949788_01-04-2025_17_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21949815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949826, '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 = 21950402 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': 2713671, 'mtr_portfolio_id': 21950402, 'created_at': datetime.datetime(2025, 4, 1, 17, 19, 29), 'result': '0.05969570519763254', 'result_long': None, 'result_double': None}] Qualite : 0.05969570519763254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21950402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21950402_01-04-2025_17_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21950402 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_P21950402_01-04-2025_17_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21950405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21950406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21950407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21950408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21950409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21950410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21950411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21950412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21950413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21950414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21950415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21950416, 'pht': 3726}}" where mtr_portfolio_id = 21950402 and dashboard_run_id = 1717449 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`=21950402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801885, 0.05969570519763254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21950402_01-04-2025_17_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21950405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21950406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21950407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21950408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21950409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21950410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21950411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21950412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21950413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21950414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21950415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21950416, '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 = 21951031 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': 2713709, 'mtr_portfolio_id': 21951031, 'created_at': datetime.datetime(2025, 4, 1, 17, 32, 59), 'result': '0.05483160810308454', 'result_long': None, 'result_double': None}] Qualite : 0.05483160810308454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21951031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21951031_01-04-2025_17_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21951031 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_P21951031_01-04-2025_17_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21951035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21951036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21951037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21951038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21951039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21951040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21951041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21951042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21951043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21951044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21951045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21951046, 'pht': 3726}}" where mtr_portfolio_id = 21951031 and dashboard_run_id = 1717449 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`=21951031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801886, 0.05483160810308454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21951031_01-04-2025_17_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21951035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21951036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21951037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21951038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21951039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21951040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21951041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21951042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21951043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21951044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21951045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21951046, '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 = 21952036 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': 2713857, 'mtr_portfolio_id': 21952036, 'created_at': datetime.datetime(2025, 4, 1, 18, 16, 59), 'result': '0.046004655053649535', 'result_long': None, 'result_double': None}] Qualite : 0.046004655053649535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21952036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21952036_01-04-2025_18_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21952036 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_P21952036_01-04-2025_18_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21952039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21952040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21952041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21952042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21952043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21952044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21952045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21952046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21952047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21952048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21952049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21952050, 'pht': 3726}}" where mtr_portfolio_id = 21952036 and dashboard_run_id = 1717449 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`=21952036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801887, 0.046004655053649535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21952036_01-04-2025_18_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21952039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21952040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21952041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21952042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21952043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21952044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21952045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21952046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21952047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21952048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21952049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21952050, '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 = 21952498 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': 2713895, 'mtr_portfolio_id': 21952498, 'created_at': datetime.datetime(2025, 4, 1, 18, 32, 57), 'result': '0.04038077538518041', 'result_long': None, 'result_double': None}] Qualite : 0.04038077538518041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21952498 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21952498_01-04-2025_18_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21952498 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_P21952498_01-04-2025_18_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21952503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21952504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21952505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21952506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21952507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21952508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21952509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21952510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21952511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21952512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21952513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21952515, 'pht': 3726}}" where mtr_portfolio_id = 21952498 and dashboard_run_id = 1717449 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`=21952498 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801888, 0.04038077538518041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21952498_01-04-2025_18_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21952503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21952504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21952505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21952506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21952507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21952508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21952509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21952510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21952511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21952512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21952513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21952515, '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 = 21953111 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': 2713963, 'mtr_portfolio_id': 21953111, 'created_at': datetime.datetime(2025, 4, 1, 18, 51, 1), 'result': '0.05453315739014316', 'result_long': None, 'result_double': None}] Qualite : 0.05453315739014316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21953111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21953111_01-04-2025_18_51_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21953111 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_P21953111_01-04-2025_18_51_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21953149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21953150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21953151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21953152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21953153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21953154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21953155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21953156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21953157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21953158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21953159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21953160, 'pht': 3726}}" where mtr_portfolio_id = 21953111 and dashboard_run_id = 1717449 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`=21953111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801889, 0.05453315739014316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21953111_01-04-2025_18_51_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21953149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21953150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21953151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21953152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21953153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21953154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21953155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21953156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21953157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21953158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21953159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21953160, '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 = 21953698 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': 2714009, 'mtr_portfolio_id': 21953698, 'created_at': datetime.datetime(2025, 4, 1, 19, 2, 37), 'result': '0.04985346500792857', 'result_long': None, 'result_double': None}] Qualite : 0.04985346500792857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21953698 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21953698_01-04-2025_19_02_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21953698 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_P21953698_01-04-2025_19_02_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21953727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21953728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21953729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21953730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21953731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21953732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21953733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21953734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21953735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21953736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21953737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21953738, 'pht': 3726}}" where mtr_portfolio_id = 21953698 and dashboard_run_id = 1717449 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`=21953698 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801890, 0.04985346500792857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21953698_01-04-2025_19_02_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21953727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21953728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21953729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21953730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21953731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21953732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21953733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21953734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21953735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21953736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21953737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21953738, '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 = 21954306 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': 2714059, 'mtr_portfolio_id': 21954306, 'created_at': datetime.datetime(2025, 4, 1, 19, 16, 59), 'result': '0.05368276805882935', 'result_long': None, 'result_double': None}] Qualite : 0.05368276805882935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21954306 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21954306_01-04-2025_19_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21954306 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_P21954306_01-04-2025_19_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21954309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21954310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21954311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21954312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21954313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21954314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21954315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21954316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21954317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21954318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21954319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21954320, 'pht': 3726}}" where mtr_portfolio_id = 21954306 and dashboard_run_id = 1717449 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`=21954306 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801891, 0.05368276805882935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21954306_01-04-2025_19_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21954309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21954310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21954311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21954312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21954313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21954314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21954315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21954316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21954317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21954318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21954319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21954320, '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 = 21954804 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': 2714097, 'mtr_portfolio_id': 21954804, 'created_at': datetime.datetime(2025, 4, 1, 19, 33, 2), 'result': '0.04164730087004363', 'result_long': None, 'result_double': None}] Qualite : 0.04164730087004363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21954804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21954804_01-04-2025_19_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21954804 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_P21954804_01-04-2025_19_33_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21954831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21954832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21954833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21954834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21954835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21954836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21954837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21954838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21954839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21954840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21954841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21954842, 'pht': 3726}}" where mtr_portfolio_id = 21954804 and dashboard_run_id = 1717449 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`=21954804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801892, 0.04164730087004363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21954804_01-04-2025_19_33_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21954831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21954832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21954833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21954834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21954835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21954836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21954837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21954838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21954839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21954840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21954841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21954842, '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 = 21955357 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': 2714161, 'mtr_portfolio_id': 21955357, 'created_at': datetime.datetime(2025, 4, 1, 19, 46, 56), 'result': '0.03403660790079572', 'result_long': None, 'result_double': None}] Qualite : 0.03403660790079572 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21955357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21955357_01-04-2025_19_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21955357 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_P21955357_01-04-2025_19_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21955409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21955410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21955411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21955412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21955413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21955414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21955415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21955416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21955417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21955418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21955419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21955420, 'pht': 3726}}" where mtr_portfolio_id = 21955357 and dashboard_run_id = 1717449 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`=21955357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801893, 0.03403660790079572, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21955357_01-04-2025_19_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21955409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21955410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21955411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21955412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21955413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21955414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21955415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21955416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21955417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21955418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21955419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21955420, '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 = 21955879 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': 2714202, 'mtr_portfolio_id': 21955879, 'created_at': datetime.datetime(2025, 4, 1, 20, 2, 58), 'result': '0.03716086597855739', 'result_long': None, 'result_double': None}] Qualite : 0.03716086597855739 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21955879 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21955879_01-04-2025_20_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21955879 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_P21955879_01-04-2025_20_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21955882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21955883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21955884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21955885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21955886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21955887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21955888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21955889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21955890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21955891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21955892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21955893, 'pht': 3726}}" where mtr_portfolio_id = 21955879 and dashboard_run_id = 1717449 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`=21955879 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801894, 0.03716086597855739, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21955879_01-04-2025_20_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21955882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21955883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21955884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21955885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21955886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21955887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21955888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21955889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21955890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21955891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21955892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21955893, '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 = 21956398 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': 2714264, 'mtr_portfolio_id': 21956398, 'created_at': datetime.datetime(2025, 4, 1, 20, 18, 58), 'result': '0.04277538744998801', 'result_long': None, 'result_double': None}] Qualite : 0.04277538744998801 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21956398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21956398_01-04-2025_20_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21956398 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_P21956398_01-04-2025_20_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21956425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21956426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21956427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21956428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21956429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21956430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21956431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21956432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21956433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21956434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21956435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21956436, 'pht': 3726}}" where mtr_portfolio_id = 21956398 and dashboard_run_id = 1717449 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`=21956398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801895, 0.04277538744998801, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21956398_01-04-2025_20_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21956425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21956426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21956427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21956428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21956429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21956430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21956431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21956432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21956433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21956434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21956435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21956436, '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 = 21956983 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': 2714302, 'mtr_portfolio_id': 21956983, 'created_at': datetime.datetime(2025, 4, 1, 20, 33, 1), 'result': '0.05416592307491753', 'result_long': None, 'result_double': None}] Qualite : 0.05416592307491753 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21956983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21956983_01-04-2025_20_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21956983 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_P21956983_01-04-2025_20_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21957012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21957013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21957014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21957015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21957016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21957017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21957018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21957019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21957020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21957021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21957022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21957023, 'pht': 3726}}" where mtr_portfolio_id = 21956983 and dashboard_run_id = 1717449 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`=21956983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801896, 0.05416592307491753, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21956983_01-04-2025_20_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21957012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21957013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21957014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21957015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21957016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21957017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21957018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21957019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21957020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21957021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21957022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21957023, '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 = 21957541 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': 2714357, 'mtr_portfolio_id': 21957541, 'created_at': datetime.datetime(2025, 4, 1, 21, 2, 59), 'result': '0.040493702562354184', 'result_long': None, 'result_double': None}] Qualite : 0.040493702562354184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21957541 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21957541_01-04-2025_21_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21957541 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_P21957541_01-04-2025_21_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21957567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21957568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21957569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21957570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21957571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21957572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21957573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21957574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21957575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21957576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21957577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21957578, 'pht': 3726}}" where mtr_portfolio_id = 21957541 and dashboard_run_id = 1717449 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`=21957541 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801897, 0.040493702562354184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21957541_01-04-2025_21_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21957567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21957568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21957569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21957570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21957571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21957572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21957573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21957574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21957575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21957576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21957577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21957578, '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 = 21958543 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': 2714472, 'mtr_portfolio_id': 21958543, 'created_at': datetime.datetime(2025, 4, 1, 21, 18, 57), 'result': '0.04773785008374333', 'result_long': None, 'result_double': None}] Qualite : 0.04773785008374333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21958543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21958543_01-04-2025_21_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21958543 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_P21958543_01-04-2025_21_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21958546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21958547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21958548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21958549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21958550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21958551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21958552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21958553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21958554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21958555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21958556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21958557, 'pht': 3726}}" where mtr_portfolio_id = 21958543 and dashboard_run_id = 1717449 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`=21958543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9801898, 0.04773785008374333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21958543_01-04-2025_21_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21958546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21958547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21958548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21958549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21958550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21958551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21958552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21958553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21958554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21958555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21958556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21958557, '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 (21931365,21931497,21932408,21933164,21933416,21933884,21934417,21934914,21935562,21935870,21936299,21936767,21937221,21938116,21938715,21939479,21940075,21940655,21941026,21945514,21945658,21945960,21946263,21946690,21947123,21947606,21947903,21948384,21949089,21949258,21949788,21950402,21951031,21952036,21952498,21953111,21953698,21954306,21954804,21955357,21955879,21956398,21956983,21957541,21958543) result : ((1349174339,), (1349175718,), (1349175916,), (1349177830,), (1349178015,), (1349178030,), (1349178035,), (1349178929,), (1349178926,), (1349179049,), (1349179211,), (1349179232,), (1349179935,), (1349179937,), (1349180254,), (1349180773,), (1349190323,), (1349190451,), (1349190471,), (1349190702,), (1349190704,), (1349190720,), (1349190742,), (1349190764,), (1349190815,), (1349191220,), (1349191491,), (1349192547,), (1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,), (1349202435,), (1349202437,), (1349202438,), (1349202439,), (1349202444,), (1349202451,), (1349202458,), (1349202459,), (1349202460,), (1349202462,), (1349202464,), (1349202468,), (1349202470,), (1349202472,), (1349202474,), (1349202476,), (1349202494,), (1349202495,), (1349202524,), (1349202560,), (1349202561,), (1349202563,), (1349202565,), (1349202592,), (1349202604,), (1349202606,), (1349202608,), (1349202625,), (1349202760,), (1349202761,), (1349202762,), (1349202764,), (1349202826,), (1349202881,), (1349202882,), (1349202888,), (1349202905,), (1349202931,), (1349203025,), (1349203026,), (1349203041,), (1349203194,), (1349203200,), (1349203202,), (1349203214,), (1349203217,), (1349203346,), (1349203347,), (1349203350,), (1349203370,), (1349203372,), (1349203374,), (1349203517,), (1349203519,), (1349203521,), (1349203524,), (1349203574,), (1349203575,), (1349203797,), (1349204045,), (1349204151,), (1349204152,), (1349204168,), (1349204187,), (1349204299,), (1349204281,), (1349204283,), (1349204285,), (1349204287,), (1349204369,), (1349204372,), (1349204374,), (1349204376,), (1349204423,), (1349204482,), (1349204504,), (1349204506,), (1349204508,), (1349204529,), (1349204530,), (1349204605,), (1349204607,), (1349204609,), (1349204719,), (1349204721,), (1349204723,), (1349204725,), (1349204750,), (1349204752,), (1349204753,), (1349204754,), (1349204813,), (1349204828,), (1349204938,), (1349204942,), (1349204944,), (1349204967,), (1349204981,), (1349205027,), (1349205078,), (1349205082,), (1349205085,), (1349205086,), (1349205174,), (1349205179,), (1349205181,), (1349205183,), (1349205184,), (1349205273,), (1349205306,), (1349205356,), (1349205382,), (1349205386,), (1349205388,), (1349205404,), (1349205406,), (1349205440,), (1349205517,), (1349205579,), (1349205581,), (1349205643,), (1349205662,), (1349205666,), (1349205782,), (1349205844,), (1349205885,), (1349205887,), (1349205889,), (1349205893,), (1349205912,), (1349206063,), (1349206072,), (1349206078,), (1349206144,), (1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,), (1349207683,), (1349207759,), (1349207834,), (1349208290,), (1349208325,), (1349208371,), (1349208399,), (1349208426,), (1349208566,), (1349208570,), (1349208574,), (1349208588,), (1349208615,), (1349208649,), (1349208805,), (1349208810,), (1349208823,), (1349208828,), (1349208848,), (1349208852,), (1349208856,), (1349208887,), (1349208893,), (1349208908,), (1349208913,), (1349208943,), (1349208951,), (1349208975,), (1349209040,), (1349209044,), (1349209049,), (1349209060,), (1349209063,), (1349209066,), (1349209089,), (1349209092,), (1349209096,), (1349209100,), (1349209124,), (1349209269,), (1349209333,), (1349209336,), (1349209339,), (1349209343,), (1349209347,), (1349209406,), (1349209448,), (1349209452,), (1349209471,), (1349209479,), (1349209487,), (1349209491,), (1349209495,), (1349209591,), (1349209595,), (1349209599,), (1349209624,), (1349209631,), (1349209640,), (1349209666,), (1349209670,), (1349209674,), (1349209678,), (1349209683,), (1349209686,), (1349209788,), (1349209768,), (1349209774,), (1349209777,), (1349209783,), (1349209787,), (1349209849,), (1349209854,), (1349209856,), (1349209860,), (1349209920,), (1349209931,), (1349209938,), (1349209972,), (1349209975,), (1349209978,), (1349210016,), (1349210019,), (1349210022,), (1349210062,), (1349210065,), (1349210094,), (1349210102,), (1349210105,), (1349210130,), (1349210133,), (1349210136,), (1349210139,), (1349210167,), (1349210169,), (1349210171,), (1349210174,), (1349210177,), (1349210180,), (1349210197,), (1349210207,), (1349210210,), (1349210213,), (1349210214,), (1349210241,), (1349210242,), (1349210243,), (1349210244,), (1349210247,), (1349210277,), (1349210278,), (1349210279,), (1349210282,), (1349210285,), (1349210288,), (1349210318,), (1349210319,), (1349210329,), (1349210337,), (1349210362,), (1349210364,), (1349210366,), (1349210367,), (1349210396,), (1349210401,), (1349210402,), (1349210480,), (1349210437,), (1349210447,), (1349210472,), (1349210475,), (1349210478,), (1349210519,), (1349210520,), (1349210521,), (1349210522,), (1349210563,), (1349210567,), (1349210570,), (1349210571,), (1349210593,), (1349210604,), (1349210605,), (1349210607,), (1349210609,), (1349210612,), (1349210643,), (1349210645,), (1349210647,), (1349210649,), (1349210670,), (1349210672,), (1349210674,), (1349210675,), (1349210677,), (1349210697,), (1349210699,), (1349210700,), (1349210702,), (1349210727,), (1349210728,), (1349210736,), (1349210739,), (1349210742,), (1349210764,), (1349210766,), (1349210769,), (1349210771,), (1349210774,), (1349210802,), (1349210806,), (1349210809,), (1349210840,), (1349210843,), (1349210846,), (1349210850,), (1349210852,), (1349210855,), (1349210869,), (1349211116,), (1349211206,), (1349211218,), (1349211394,), (1349211364,), (1349211376,), (1349211391,), (1349211392,), (1349211465,), (1349211467,), (1349211469,), (1349211494,), (1349211495,), (1349211496,), (1349211516,), (1349211517,), (1349211518,), (1349211519,), (1349211616,), (1349211621,), (1349211622,), (1349211643,), (1349211645,), (1349211646,), (1349211648,), (1349211649,), (1349211778,), (1349211779,), (1349211783,), (1349211889,), (1349211891,), (1349211893,), (1349211894,), (1349211895,), (1349211896,), (1349211940,), (1349211949,), (1349211974,), (1349211976,), (1349211978,), (1349211980,), (1349211983,), (1349212004,), (1349212006,), (1349212008,), (1349212010,), (1349212126,), (1349212127,), (1349212129,), (1349212131,), (1349212133,), (1349212135,), (1349212163,), (1349212171,), (1349212173,), (1349212391,), (1349212419,), (1349212450,), (1349212475,), (1349212504,), (1349212530,), (1349212654,), (1349212695,), (1349212712,), (1349212721,), (1349212778,), (1349213172,), (1349212933,), (1349212984,), (1349213037,), (1349213409,), (1349213442,), (1349213480,), (1349213511,), (1349213543,), (1349213970,), (1349213994,), (1349214022,), (1349214064,), (1349214120,), (1349214484,), (1349214537,), (1349214595,), (1349215027,), (1349215122,), (1349215151,), (1349215172,), (1349215180,), (1349215249,), (1349215254,), (1349215319,), (1349215338,), (1349215362,), (1349215395,), (1349215486,), (1349215516,), (1349215528,), (1349215531,), (1349215636,), (1349215637,), (1349215641,), (1349215645,), (1349215648,), (1349215658,), (1349215806,), (1349215809,), (1349215812,), (1349215817,), (1349215888,), (1349215915,), (1349215926,), (1349215930,), (1349215933,), (1349215938,), (1349215942,), (1349215943,), (1349215958,), (1349215962,), (1349215965,), (1349215968,), (1349215998,), (1349216004,), (1349216008,), (1349216017,), (1349216040,), (1349216054,), (1349216075,), (1349216078,), (1349216081,), (1349216095,), (1349216107,), (1349216130,), (1349216132,), (1349216135,), (1349216145,), (1349216150,), (1349216151,), (1349215861,), (1349215867,), (1349215872,), (1349215877,), (1349215884,), (1349215896,), (1349215898,), (1349215901,), (1349215905,), (1349215909,), (1349215950,), (1349215955,), (1349215975,), (1349215977,), (1349215983,), (1349215987,), (1349215990,), (1349215992,), (1349216066,), (1349216067,), (1349216068,), (1349216173,), (1349216177,), (1349216193,), (1349216240,), (1349216247,), (1349216262,), (1349216436,), (1349216446,), (1349216456,), (1349216484,), (1349216517,), (1349216520,), (1349216662,), (1349216673,), (1349216718,), (1349216728,), (1349216737,), (1349216818,), (1349216820,), (1349216830,), (1349216848,), (1349216854,), (1349216888,), (1349216892,), (1349216922,), (1349217000,), (1349217217,), (1349217225,), (1349217239,), (1349217328,), (1349217274,), (1349217286,), (1349217313,), (1349217322,), (1349217345,), (1349217383,), (1349217410,), (1349217439,), (1349217458,), (1349217579,), (1349217584,), (1349217588,), (1349217591,), (1349217594,), (1349217632,), (1349217640,), (1349217651,), (1349217890,), (1349217918,), (1349217923,), (1349217962,), (1349217974,), (1349218080,), (1349218110,), (1349218141,), (1349218157,), (1349218162,), (1349218193,), (1349218196,), (1349218199,), (1349218207,), (1349218275,), (1349218309,), (1349218337,), (1349218373,), (1349218378,), (1349218415,), (1349218419,), (1349218422,), (1349218425,), (1349218429,), (1349218538,), (1349218539,), (1349218543,), (1349218548,), (1349218552,), (1349218556,), (1349218582,), (1349218589,), (1349218593,), (1349218628,), (1349218637,), (1349218642,), (1349218646,), (1349218651,), (1349218729,), (1349218733,), (1349218740,), (1349218746,), (1349218750,), (1349218762,), (1349218825,), (1349218882,), (1349218911,), (1349218920,), (1349218952,), (1349218954,), (1349219073,), (1349219029,), (1349219030,), (1349219061,), (1349219064,), (1349219157,), (1349219169,), (1349219492,), (1349219497,), (1349219501,), (1349219504,), (1349219548,), (1349219549,), (1349219553,), (1349219829,), (1349219849,), (1349219921,), (1349219947,), (1349219951,), (1349220050,), (1349220054,), (1349220057,), (1349220062,), (1349220066,), (1349220130,), (1349220132,), (1349220137,), (1349220163,), (1349220164,), (1349220166,), (1349220196,), (1349220218,), (1349220220,), (1349220251,), (1349220303,), (1349220384,), (1349220386,), (1349220408,), (1349220410,), (1349220415,), (1349220495,), (1349220997,), (1349221004,), (1349221013,), (1349221169,), (1349221175,), (1349221180,), (1349221184,), (1349221186,), (1349221692,), (1349221765,), (1349221801,), (1349221837,), (1349221942,), (1349221954,), (1349221988,), (1349222025,), (1349222333,), (1349222277,), (1349222311,), (1349222594,), (1349222603,), (1349222612,), (1349222617,), (1349222632,), (1349222647,), (1349222908,), (1349222936,), (1349222947,), (1349222956,), (1349222965,), (1349222998,), (1349223108,), (1349223115,), (1349223137,), (1349223168,), (1349223198,), (1349223432,), (1349223465,), (1349223497,), (1349223521,), (1349223551,), (1349223586,), (1349223797,), (1349223827,), (1349223870,), (1349223907,), (1349223942,), (1349224087,), (1349224100,), (1349224114,), (1349224122,), (1349224296,), (1349224306,), (1349224319,), (1349224402,), (1349224469,), (1349224588,), (1349224594,), (1349224600,), (1349224606,), (1349224609,), (1349224612,), (1349224649,), (1349224654,), (1349224661,), (1349224735,), (1349224744,), (1349224751,), (1349224758,), (1349224764,), (1349224769,), (1349224797,), (1349224801,), (1349224806,), (1349224811,), (1349224817,), (1349224859,), (1349224864,), (1349224884,), (1349224997,), (1349225007,), (1349225016,), (1349225020,), (1349225058,), (1349225062,), (1349225066,), (1349225069,), (1349225072,), (1349225078,), (1349225125,), (1349225117,), (1349225118,), (1349225120,), (1349225123,), (1349225170,), (1349225174,), (1349225176,), (1349225231,), (1349225237,), (1349225239,), (1349225284,), (1349225292,), (1349225300,), (1349225344,), (1349225345,), (1349225356,), (1349225365,), (1349225564,), (1349225579,), (1349225588,), (1349225625,), (1349225636,), (1349225641,), (1349225654,), (1349225657,), (1349225661,), (1349225664,), (1349225713,), (1349225716,), (1349225719,), (1349225722,), (1349225727,), (1349225761,), (1349225765,), (1349225770,), (1349225772,), (1349225810,), (1349225813,), (1349225817,), (1349225821,), (1349225831,), (1349225877,), (1349225880,), (1349225883,), (1349225892,), (1349225896,), (1349225930,), (1349225935,), (1349225938,), (1349225946,), (1349225950,), (1349226018,), (1349226021,), (1349226025,), (1349226070,), (1349226074,), (1349226076,), (1349226080,), (1349226112,), (1349226117,), (1349226123,), (1349226127,), (1349226132,), (1349226138,), (1349226164,), (1349226176,), (1349226192,), (1349226199,), (1349226204,), (1349226208,), (1349226250,), (1349226239,), (1349226242,), (1349226246,), (1349226706,), (1349226943,), (1349226952,), (1349226966,), (1349226970,), (1349226973,), (1349226989,), (1349227035,), (1349227039,), (1349227057,), (1349227187,), (1349227192,), (1349227196,), (1349227200,), (1349227249,), (1349227259,), (1349227266,), (1349227272,), (1349227445,), (1349227466,), (1349227471,), (1349227476,), (1349227486,), (1349227492,), (1349227532,), (1349227540,), (1349227545,), (1349227549,), (1349227555,), (1349227645,), (1349227655,), (1349227659,), (1349227674,), (1349227818,), (1349227824,), (1349227827,), (1349227833,), (1349227838,), (1349227847,), (1349227862,), (1349227865,), (1349227869,), (1349227874,), (1349227879,), (1349227883,), (1349227938,), (1349227908,), (1349227919,), (1349227926,), (1349227931,), (1349227934,), (1349227961,), (1349227974,), (1349227988,), (1349227990,), (1349228116,), (1349228131,), (1349228144,), (1349228168,), (1349228173,), (1349228412,), (1349228414,), (1349228431,), (1349228439,), (1349228445,), (1349228547,), (1349228559,), (1349228567,), (1349228761,), (1349228773,), (1349228782,), (1349228798,), (1349228805,), (1349228816,), (1349228837,), (1349228840,), (1349228846,), (1349228848,), (1349228858,), (1349228891,), (1349228896,), (1349228902,), (1349229092,), (1349229107,), (1349229110,), (1349229126,), (1349229139,), (1349229184,), (1349229187,), (1349229245,), (1349229248,), (1349229466,), (1349229517,), (1349229520,), (1349229525,), (1349229530,), (1349230523,), (1349230529,), (1349230618,), (1349230654,), (1349230675,), (1349255470,), (1349281060,), (1349285186,), (1349285192,), (1349285195,), (1349285241,), (1349285244,), (1349285247,), (1349285282,), (1349285286,), (1349285288,), (1349285290,), (1349285311,), (1349285348,), (1349285716,), (1349285641,), (1349285667,), (1349285688,), (1349285967,), (1349285984,), (1349285995,), (1349286007,), (1349286012,), (1349286072,), (1349286074,), (1349286077,), (1349286081,), (1349286234,), (1349286239,), (1349286244,), (1349286247,), (1349286283,), (1349286291,), (1349286296,), (1349286302,), (1349286306,), (1349286311,), (1349286352,), (1349286355,), (1349286361,), (1349286365,), (1349286371,), (1349286377,), (1349286404,), (1349286407,), (1349286409,), (1349286443,), (1349286449,), (1349286454,), (1349286459,), (1349286498,), (1349286503,), (1349286777,), (1349286781,), (1349286883,), (1349286826,), (1349286877,), (1349286902,), (1349286905,), (1349286909,), (1349286914,), (1349286945,), (1349286949,), (1349286956,), (1349286968,), (1349287004,), (1349287008,), (1349287016,), (1349287023,), (1349288220,), (1349288224,), (1349288913,), (1349288896,), (1349288901,), (1349288905,), (1349288910,), (1349288931,), (1349288937,), (1349288941,), (1349288945,), (1349288948,), (1349288970,), (1349288974,), (1349288977,), (1349289011,), (1349289015,), (1349289020,), (1349289024,), (1349289115,), (1349289378,), (1349289548,), (1349289552,), (1349289557,), (1349289561,), (1349289564,), (1349289567,), (1349289588,), (1349289592,), (1349289596,), (1349289601,), (1349289606,), (1349289610,), (1349289644,), (1349289661,), (1349289818,), (1349289822,), (1349289827,), (1349289832,), (1349291352,), (1349291339,), (1349291388,), (1349291393,), (1349291397,), (1349291400,), (1349291404,), (1349291408,), (1349291427,), (1349291512,), (1349291515,), (1349291522,), (1349291526,), (1349291576,), (1349291579,), (1349291737,), (1349291745,), (1349291749,), (1349291751,), (1349291771,), (1349291774,), (1349291778,), (1349291806,), (1349291810,), (1349291813,), (1349291816,), (1349291910,), (1349291914,), (1349291917,), (1349291920,), (1349292012,), (1349292014,), (1349292017,), (1349292020,), (1349292068,), (1349292072,), (1349292093,), (1349292261,), (1349292285,), (1349292289,), (1349292294,), (1349292297,), (1349292322,), (1349292326,), (1349292330,), (1349292390,), (1349292383,), (1349292386,), (1349292426,), (1349292430,), (1349292457,), (1349292460,), (1349292596,), (1349292599,), (1349292603,), (1349292610,), (1349292696,), (1349292698,), (1349292703,), (1349292712,), (1349292718,), (1349292806,), (1349292812,), (1349292859,), (1349292863,), (1349292866,), (1349292886,), (1349292953,), (1349292956,), (1349292961,), (1349292965,), (1349292969,), (1349293878,), (1349293995,), (1349294734,), (1349294632,), (1349294720,), (1349294723,), (1349294728,), (1349294759,), (1349294762,), (1349294808,), (1349294812,), (1349294877,), (1349294881,), (1349294885,), (1349294890,), (1349294894,), (1349294900,), (1349294929,), (1349294932,), (1349294935,), (1349294983,), (1349294988,), (1349295174,), (1349295545,), (1349295569,), (1349295577,), (1349295591,), (1349295602,), (1349295713,), (1349295766,), (1349295770,), (1349295773,), (1349295814,), (1349295819,), (1349296006,), (1349296009,), (1349296014,), (1349296028,), (1349296054,), (1349296059,), (1349296065,), (1349296070,), (1349296073,), (1349296111,), (1349296112,), (1349296119,), (1349296152,), (1349296157,), (1349296163,), (1349296169,), (1349296187,), (1349296192,), (1349296197,), (1349296202,), (1349296205,), (1349296209,), (1349296239,), (1349296243,), (1349296249,), (1349296260,), (1349296266,), (1349296290,), (1349296293,), (1349296296,), (1349296325,), (1349296329,), (1349296336,), (1349296340,), (1349296345,), (1349296351,), (1349296373,), (1349296377,), (1349296383,), (1349296387,), (1349296391,), (1349296396,), (1349296425,), (1349296450,), (1349296469,), (1349296490,), (1349297200,), (1349297271,), (1349297326,), (1349297378,), (1349297428,), (1349297508,), (1349298148,), (1349298075,), (1349298512,), (1349298530,), (1349298576,), (1349298606,), (1349298628,), (1349298961,), (1349299002,), (1349299039,), (1349299075,), (1349299091,), (1349299099,), (1349299258,), (1349299279,), (1349299306,), (1349299646,), (1349299655,), (1349299660,), (1349299704,), (1349299709,), (1349299752,), (1349299757,), (1349299763,), (1349299770,), (1349299788,), (1349299809,), (1349299813,), (1349299819,), (1349299825,), (1349299840,), (1349299902,), (1349299929,), (1349299936,), (1349300037,), (1349300041,), (1349300044,), (1349300048,), (1349300054,), (1349300060,), (1349300090,), (1349300095,), (1349300100,), (1349300111,), (1349300117,), (1349300122,), (1349300221,), (1349300223,), (1349300254,), (1349300266,), (1349300332,), (1349300337,), (1349300340,), (1349300344,), (1349300347,), (1349300475,), (1349300478,), (1349300481,), (1349300484,), (1349300487,), (1349300494,), (1349300539,), (1349300541,), (1349300545,), (1349300553,), (1349300559,), (1349300564,), (1349300647,), (1349300650,), (1349300654,), (1349300657,), (1349300696,), (1349301111,), (1349301630,), (1349301635,), (1349301637,), (1349301639,), (1349301661,), (1349301665,), (1349301668,), (1349301671,), (1349301674,), (1349301693,), (1349301697,), (1349301735,), (1349301737,), (1349301740,), (1349301827,), (1349301820,), (1349301823,), (1349301916,), (1349301929,), (1349301969,), (1349301974,), (1349301987,), (1349301990,), (1349302008,), (1349302011,), (1349302014,), (1349302105,), (1349302108,), (1349302114,), (1349302175,), (1349302179,), (1349302237,), (1349302242,), (1349302244,), (1349302248,), (1349302251,), (1349302254,), (1349302281,), (1349302283,), (1349302285,), (1349302287,), (1349302290,), (1349302377,), (1349302384,), (1349302413,), (1349302641,), (1349302644,), (1349302646,), (1349302647,), (1349302649,), (1349302730,), (1349302733,), (1349302737,), (1349302740,), (1349302743,), (1349302746,), (1349302774,), (1349302779,), (1349302785,), (1349302787,), (1349302822,), (1349302825,), (1349302831,), (1349302833,), (1349302865,), (1349302869,), (1349302877,), (1349302886,), (1349302896,), (1349302906,), (1349302949,), (1349302953,), (1349302956,), (1349302958,), (1349302960,), (1349302961,), (1349302978,), (1349302983,), (1349302987,), (1349303013,), (1349303020,), (1349303024,), (1349303027,), (1349303031,), (1349303033,), (1349303065,), (1349303052,), (1349303054,), (1349303059,), (1349303094,), (1349303100,), (1349303106,), (1349303117,), (1349303130,), (1349303133,), (1349303217,), (1349303222,), (1349303230,), (1349303251,), (1349303257,), (1349303260,), (1349303277,), (1349303280,), (1349303336,), (1349303355,), (1349303394,), (1349303398,), (1349303410,), (1349303419,), (1349303439,), (1349303486,), (1349303488,), (1349303491,), (1349303494,), (1349303497,), (1349303500,), (1349303524,), (1349303526,), (1349303529,), (1349303531,), (1349303571,), (1349303573,), (1349303583,), (1349303621,), (1349303629,), (1349303632,), (1349303718,), (1349303720,), (1349303723,), (1349303727,), (1349303797,), (1349303800,), (1349303806,), (1349303816,), (1349303825,), (1349303861,), (1349303863,), (1349303866,), (1349303868,), (1349303976,), (1349303996,), (1349304236,), (1349304267,), (1349304288,), (1349304302,), (1349304326,), (1349304354,), (1349304426,), (1349304441,), (1349304502,), (1349304816,), (1349304632,), (1349304665,), (1349304706,), (1349304748,), (1349304782,), (1349305053,), (1349305108,), (1349305124,), (1349305156,), (1349305493,), (1349305540,), (1349305577,), (1349305609,), (1349305858,), (1349305902,), (1349305950,), (1349305993,), (1349306026,), (1349306043,), (1349306310,), (1349306336,), (1349306389,), (1349306423,), (1349306462,), (1349306492,), (1349306653,), (1349306667,), (1349306689,), (1349306716,), (1349306942,), (1349306958,), (1349306980,), (1349307001,), (1349307019,), (1349307068,), (1349307284,), (1349307969,), (1349307972,), (1349307996,), (1349308004,), (1349308023,), (1349308063,), (1349308066,), (1349308069,), (1349308074,), (1349308127,), (1349308131,), (1349308138,), (1349308141,), (1349308307,), (1349308315,), (1349308319,), (1349308323,), (1349308330,), (1349308333,), (1349308351,), (1349308357,), (1349308365,), (1349308374,), (1349308433,), (1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,), (1349313504,), (1349313551,), (1349314231,), (1349314297,), (1349315048,), (1349315137,), (1349315927,), (1349315976,), (1349316053,), (1349316109,), (1349316768,), (1349316836,), (1349316908,), (1349316944,), (1349316957,), (1349317328,), (1349317352,), (1349317374,), (1349317394,), (1349317757,), (1349317773,), (1349317792,), (1349317795,), (1349317799,), (1349317896,), (1349317921,), (1349317950,), (1349317975,), (1349318004,), (1349318021,), (1349318354,), (1349318409,), (1349318461,), (1349318478,), (1349318812,), (1349318839,), (1349318873,), (1349318957,), (1349318972,), (1349319017,), (1349319315,), (1349319322,), (1349319326,), (1349319334,), (1349319483,), (1349319486,), (1349319489,), (1349319515,), (1349319522,), (1349319540,), (1349319558,), (1349319563,), (1349319568,), (1349319572,), (1349319607,), (1349319614,), (1349319618,), (1349319621,), (1349319625,), (1349319627,), (1349319668,), (1349319654,), (1349319657,), (1349319661,), (1349319664,), (1349319736,), (1349319745,), (1349319761,), (1349319776,), (1349319860,), (1349319864,), (1349319867,), (1349319879,), (1349319884,), (1349319923,), (1349319926,), (1349319930,), (1349319934,), (1349319940,), (1349319964,), (1349319977,), (1349319982,), (1349320032,), (1349320035,), (1349320040,), (1349320045,), (1349320072,), (1349320075,), (1349320083,), (1349320097,), (1349320100,), (1349320129,), (1349320133,), (1349320136,), (1349320140,), (1349320143,), (1349320180,), (1349320183,), (1349320186,), (1349320188,), (1349320211,), (1349320214,), (1349320220,), (1349320224,), (1349320228,), (1349320230,), (1349320255,), (1349320266,), (1349320268,), (1349320401,), (1349320417,), (1349320425,), (1349320432,), (1349320436,), (1349320462,), (1349320465,), (1349320469,), (1349320473,), (1349320477,), (1349320480,), (1349320504,), (1349320507,), (1349320511,), (1349320590,), (1349320578,), (1349320581,), (1349320587,), (1349320614,), (1349320619,), (1349320623,), (1349320628,), (1349320633,), (1349320642,), (1349320666,), (1349320669,), (1349320673,), (1349320826,), (1349320839,), (1349320844,), (1349320851,), (1349321005,), (1349321023,), (1349321026,), (1349321029,), (1349321033,), (1349321074,), (1349321085,), (1349321091,), (1349321094,), (1349321149,), (1349321153,), (1349321158,), (1349321205,), (1349321207,), (1349321210,), (1349321213,), (1349321258,), (1349321262,), (1349321266,), (1349321270,), (1349321273,), (1349321320,), (1349321324,), (1349321335,), (1349321364,), (1349321473,), (1349321478,), (1349321482,), (1349321486,), (1349321521,), (1349321523,), (1349321527,), (1349321531,), (1349321535,), (1349321539,), (1349321562,), (1349321565,), (1349321570,), (1349321575,), (1349321598,), (1349321601,), (1349321605,), (1349321610,), (1349321648,), (1349321651,), (1349321655,), (1349321659,), (1349321661,), (1349321667,), (1349321740,), (1349321724,), (1349321728,), (1349321732,), (1349321736,), (1349321909,), (1349321913,), (1349321968,), (1349321971,), (1349322019,), (1349322022,), (1349322025,), (1349322027,), (1349322031,), (1349322183,), (1349322195,), (1349322209,), (1349322213,), (1349322268,), (1349322281,), (1349322298,), (1349322303,), (1349322403,), (1349322423,), (1349322432,), (1349322441,), (1349322454,), (1349322504,), (1349322507,), (1349322510,), (1349322560,), (1349322564,), (1349322620,), (1349322651,), (1349322709,), (1349323016,), (1349323019,), (1349323023,), (1349323052,), (1349323056,), (1349323060,), (1349323064,), (1349323070,), (1349323075,), (1349323093,), (1349323103,), (1349323113,), (1349323125,), (1349323129,), (1349323145,), (1349323148,), (1349323154,), (1349323185,), (1349323211,), (1349323224,), (1349323412,), (1349323442,), (1349323464,), (1349323467,), (1349323741,), (1349323778,), (1349323808,), (1349323834,), (1349323866,), (1349323957,), (1349324443,), (1349324225,), (1349324271,), (1349324356,), (1349324389,), (1349324854,), (1349324902,), (1349324939,), (1349325454,), (1349325475,), (1349325501,), (1349325554,), (1349325592,), (1349325613,), (1349325855,), (1349325885,), (1349325917,), (1349325947,), (1349325974,), (1349326217,), (1349326244,), (1349326259,), (1349326303,), (1349326560,), (1349326563,), (1349326584,), (1349326608,), (1349326713,), (1349326717,), (1349326721,), (1349326725,), (1349326729,), (1349326766,), (1349326770,), (1349326775,), (1349326780,), (1349326789,), (1349326839,), (1349326849,), (1349326853,), (1349326861,), (1349326978,), (1349326983,), (1349326994,), (1349327018,), (1349327026,), (1349327030,), (1349327136,), (1349327140,), (1349327144,), (1349327148,), (1349327151,), (1349327155,), (1349327196,), (1349327202,), (1349327205,), (1349327370,), (1349327397,), (1349327404,), (1349327408,), (1349327415,), (1349327419,), (1349327443,), (1349327450,), (1349327456,), (1349327461,), (1349327470,), (1349327483,), (1349327539,), (1349327543,), (1349327546,), (1349327551,), (1349327661,), (1349327618,), (1349327630,), (1349327646,), (1349327718,), (1349327720,), (1349327723,), (1349327728,), (1349327733,), (1349327764,), (1349327769,), (1349327774,), (1349327811,), (1349327815,), (1349327818,), (1349327820,), (1349327823,), (1349327827,), (1349327858,), (1349327861,), (1349327864,), (1349327867,), (1349327909,), (1349327913,), (1349327917,), (1349328030,), (1349328046,), (1349328053,), (1349328058,), (1349328121,), (1349328124,), (1349328128,), (1349328132,), (1349328136,), (1349328141,), (1349328376,), (1349328496,), (1349328527,), (1349328545,), (1349328623,), (1349328625,), (1349328631,), (1349328660,), (1349328697,), (1349328701,), (1349328715,), (1349328720,), (1349328726,), (1349328743,), (1349328746,), (1349328750,), (1349328753,), (1349328757,), (1349328805,), (1349328810,), (1349328860,), (1349328864,), (1349328867,), (1349328899,), (1349328910,), (1349328921,), (1349328926,), (1349328931,), (1349328976,), (1349328967,), (1349328970,), (1349328972,), (1349329263,), (1349329315,), (1349329367,), (1349329443,), (1349329497,), (1349329677,), (1349329680,), (1349329682,), (1349329708,), (1349329788,), (1349329830,), (1349329835,), (1349329910,), (1349329927,), (1349329932,), (1349330003,), (1349330075,), (1349330080,), (1349330083,), (1349330100,), (1349330204,), (1349330335,), (1349330337,), (1349330341,), (1349330345,), (1349330393,), (1349330396,), (1349330399,), (1349330402,), (1349330405,), (1349330408,), (1349330533,), (1349330549,), (1349330559,), (1349330562,), (1349330565,), (1349330713,), (1349330764,), (1349330818,), (1349331287,), (1349331343,), (1349331399,), (1349331477,), (1349331557,), (1349331606,), (1349331614,), (1349331617,), (1349331725,), (1349331789,), (1349331852,), (1349331996,), (1349331960,), (1349331984,), (1349331992,), (1349332164,), (1349332177,), (1349332181,), (1349332306,), (1349332309,), (1349332315,), (1349332322,), (1349332444,), (1349332452,), (1349332467,), (1349332471,), (1349332475,), (1349332545,), (1349332550,), (1349332557,), (1349332563,), (1349332633,), (1349332636,), (1349332640,), (1349332646,), (1349332653,), (1349332689,), (1349332691,), (1349332694,), (1349332698,), (1349332702,), (1349332827,), (1349332936,), (1349332940,), (1349332943,), (1349332947,), (1349332952,), (1349332955,), (1349333053,), (1349333108,), (1349333147,), (1349333188,), (1349333232,), (1349334232,), (1349334321,), (1349334383,), (1349334439,), (1349335017,), (1349334907,), (1349334934,), (1349334968,), (1349335000,), (1349335230,), (1349335242,), (1349335247,), (1349335257,), (1349335421,), (1349335425,), (1349335437,), (1349335493,), (1349335632,), (1349335636,), (1349335640,), (1349335645,), (1349335648,), (1349335652,), (1349335699,), (1349335703,), (1349335706,), (1349335710,), (1349335716,), (1349335753,), (1349335756,), (1349335761,), (1349335788,), (1349335791,), (1349335795,), (1349335799,), (1349335803,), (1349335807,), (1349335834,), (1349335848,), (1349335853,), (1349335872,), (1349335990,), (1349336004,), (1349336008,), (1349336017,), (1349336037,), (1349336100,), (1349336110,), (1349336112,), (1349336116,), (1349336126,), (1349336149,), (1349336652,), (1349336797,), (1349336707,), (1349336719,), (1349336745,), (1349336759,), (1349336771,), (1349336895,), (1349336939,), (1349336943,), (1349336946,), (1349336948,), (1349337030,), (1349337038,), (1349337040,), (1349337072,), (1349337181,), (1349337184,), (1349337188,), (1349337189,), (1349337375,), (1349337376,), (1349337384,), (1349337431,), (1349337433,), (1349337436,), (1349337438,), (1349337442,), (1349337477,), (1349337479,), (1349337481,), (1349337482,), (1349337484,), (1349337486,), (1349337510,), (1349337514,), (1349337517,), (1349337520,), (1349337522,), (1349337549,), (1349337551,), (1349337566,), (1349337629,), (1349337634,), (1349337638,), (1349337641,), (1349337644,), (1349337671,), (1349337675,), (1349337722,), (1349337801,), (1349337884,), (1349338205,), (1349338210,), (1349338214,), (1349338217,), (1349338362,), (1349338460,), (1349338480,), (1349338484,), (1349338487,), (1349338491,), (1349338504,), (1349338544,), (1349338549,), (1349338554,), (1349338558,), (1349338615,), (1349338604,), (1349338610,), (1349338613,), (1349338680,), (1349338684,), (1349338694,), (1349338730,), (1349338734,), (1349338880,), (1349338884,), (1349338889,), (1349338895,), (1349338899,), (1349338900,), (1349339054,), (1349339149,), (1349339157,), (1349339161,), (1349339164,), (1349339221,), (1349339226,), (1349339253,), (1349339260,), (1349339328,), (1349339330,), (1349339333,), (1349339336,), (1349339339,), (1349339399,), (1349339402,), (1349339406,), (1349339409,), (1349339454,), (1349339461,), (1349339464,), (1349339466,), (1349339468,), (1349339509,), (1349339512,), (1349339514,), (1349339589,), (1349339618,), (1349339645,), (1349339674,), (1349339699,), (1349339702,), (1349339737,), (1349339741,), (1349339747,), (1349339753,), (1349344258,), (1349344245,), (1349345308,), (1349345313,), (1349345318,), (1349345324,), (1349345553,), (1349345556,), (1349345732,), (1349345735,), (1349345739,), (1349345769,), (1349345773,), (1349345813,), (1349345816,), (1349345820,), (1349345963,), (1349346042,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01042025': {'nb_upload': 8, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21931365]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339] map_info['map_portfolio_photo'] : {21931365: [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339]} final : True mtd_id 4302 list_pids : [1349178929, 1349178035, 1349178030, 1349178015, 1349177830, 1349175916, 1349175718, 1349174339] Looping around the photos to save general results len do output : 1 /21931365Didn'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, '2715370') ('4302', '21931365', '1349178929', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178035', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178030', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349178015', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349177830', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349175916', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349175718', None, None, None, None, None, '2715370') ('4302', None, None, None, None, None, None, None, '2715370') ('4302', '21931365', '1349174339', None, None, None, None, None, '2715370') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '21931365', 'None', None, None, None, None, '2715370'), ('4302', '21931365', '1349178929', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349178035', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349178030', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349178015', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349177830', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349175916', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349175718', None, None, None, None, None, '2715370'), ('4302', '21931365', '1349174339', None, None, None, None, None, '2715370')] time used for this insertion : 0.06716799736022949 save_final save missing photos in datou_result : time spend for datou_step_exec : 24.4092276096344 time spend to save output : 0.06739473342895508 total time spend for step 5 : 24.476622343063354 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 (2715370) 1.95user 2.64system 0:37.73elapsed 12%CPU (0avgtext+0avgdata 158920maxresident)k 10032inputs+6664outputs (19major+63984minor)pagefaults 0swaps