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 : 399059 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 (2747359) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2747359) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302118 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2747359'] with mtr_portfolio_ids : ['22302118'] and first list_photo_ids : [] new path : /proc/399059/ Name: python3 Umask: 0002 State: R (running) Tgid: 399059 Ngid: 0 Pid: 399059 PPid: 399058 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 399059 NSpid: 399059 NSpgid: 398207 NSsid: 398207 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98240 kB VmRSS: 98240 kB RssAnon: 59796 kB RssFile: 38444 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 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: 53 nonvoluntary_ctxt_switches: 142 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '399059', 'Ngid': '0', 'Pid': '399059', 'PPid': '399058', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '399059', 'NSpid': '399059', 'NSpgid': '398207', 'NSsid': '398207', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98240 kB', 'VmRSS': '98240 kB', 'RssAnon': '59796 kB', 'RssFile': '38444 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 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': '53', 'nonvoluntary_ctxt_switches': '142'} ('datou_batch_current', '399059', '1106932', '0', '1106932', '865680', '98240', b'', 'marlene', '2747359') 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 (22302118) 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 (2747359 ) ) 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 (22302118) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351909930, 'portfolio_id': 22302118}, {'photo_id': 1351907220, 'portfolio_id': 22302118}, {'photo_id': 1351907202, 'portfolio_id': 22302118}, {'photo_id': 1351906652, 'portfolio_id': 22302118}, {'photo_id': 1351904521, 'portfolio_id': 22302118}, {'photo_id': 1351904493, 'portfolio_id': 22302118}, {'photo_id': 1351903921, 'portfolio_id': 22302118}, {'photo_id': 1351902987, 'portfolio_id': 22302118}, {'photo_id': 1351902962, 'portfolio_id': 22302118}, {'photo_id': 1351902721, 'portfolio_id': 22302118}] map_portfolio_id_photo_id: {22302118: [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721]} ##### 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.33881568908691406 #### 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 Sat Apr 12 06:04:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22302118) 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 : 22302118 get user id for portfolio 22302118 get sub ptf for main ptf 22302118, type 3726 and hashtags ['flou', 'mal_croppe', 'environnement', 'Teint_Dans_La_Masse', 'kraft', 'cartonnette', 'autre_refus', 'metal', 'papier', 'Carton_brun', 'Carton_gris', 'plastique'] 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`=22302118 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','mal_croppe','environnement','Teint_Dans_La_Masse','kraft','cartonnette','autre_refus','metal','papier','Carton_brun','Carton_gris','plastique')) 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`=22302118 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','mal_croppe','environnement','Teint_Dans_La_Masse','kraft','cartonnette','autre_refus','metal','papier','Carton_brun','Carton_gris','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22302118, 'sub_port_id': 22302144, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765730, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}, 'cartonnette': {'main_port_id': 22302118, 'sub_port_id': 22302145, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765731, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}, 'autre_refus': {'main_port_id': 22302118, 'sub_port_id': 22302146, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765732, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22302118, 'sub_port_id': 22302147, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765733, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}, 'environnement': {'main_port_id': 22302118, 'sub_port_id': 22302148, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765734, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}, 'Carton_gris': {'main_port_id': 22302118, 'sub_port_id': 22302149, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765735, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}, 'Carton_brun': {'main_port_id': 22302118, 'sub_port_id': 22302150, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765736, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}, 'kraft': {'main_port_id': 22302118, 'sub_port_id': 22302151, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765737, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}, 'mal_croppe': {'main_port_id': 22302118, 'sub_port_id': 22302152, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765738, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}, 'flou': {'main_port_id': 22302118, 'sub_port_id': 22302153, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765739, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}, 'plastique': {'main_port_id': 22302118, 'sub_port_id': 22302154, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765740, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}, 'metal': {'main_port_id': 22302118, 'sub_port_id': 22302155, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765741, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 46, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22302144 , 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=22302118 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 (22302144) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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 22302145 , 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=22302118 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 (22302145) result : ((1351904098,), (1351904099,), (1351908011,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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 22302146 , 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=22302118 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 (22302146) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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 22302147 , 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=22302118 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 (22302147) result : ((1351904092,), (1351904094,), (1351904649,), (1351907995,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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 22302148 , 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=22302118 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 (22302148) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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 22302149 , 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=22302118 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 (22302149) result : ((1351907999,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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 22302150 , 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=22302118 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 (22302150) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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 22302151 , 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=22302118 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 (22302151) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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 22302152 , 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=22302118 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 (22302152) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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 22302153 , 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=22302118 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 (22302153) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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 22302154 , 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=22302118 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 (22302154) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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 22302155 , 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=22302118 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 (22302155) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22302118) result : ((1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) 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`=22302118 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','mal_croppe','environnement','Teint_Dans_La_Masse','kraft','cartonnette','autre_refus','metal','papier','Carton_brun','Carton_gris','plastique')) 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`=22302118 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','mal_croppe','environnement','Teint_Dans_La_Masse','kraft','cartonnette','autre_refus','metal','papier','Carton_brun','Carton_gris','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22302118, 'sub_port_id': 22302156, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765742, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}, 'cartonnette': {'main_port_id': 22302118, 'sub_port_id': 22302157, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765743, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}, 'autre_refus': {'main_port_id': 22302118, 'sub_port_id': 22302158, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765744, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22302118, 'sub_port_id': 22302159, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765745, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}, 'environnement': {'main_port_id': 22302118, 'sub_port_id': 22302160, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765746, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}, 'Carton_gris': {'main_port_id': 22302118, 'sub_port_id': 22302161, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765747, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}, 'Carton_brun': {'main_port_id': 22302118, 'sub_port_id': 22302162, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765748, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}, 'kraft': {'main_port_id': 22302118, 'sub_port_id': 22302163, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765749, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}, 'mal_croppe': {'main_port_id': 22302118, 'sub_port_id': 22302164, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765750, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}, 'flou': {'main_port_id': 22302118, 'sub_port_id': 22302165, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765751, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}, 'plastique': {'main_port_id': 22302118, 'sub_port_id': 22302166, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765752, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}, 'metal': {'main_port_id': 22302118, 'sub_port_id': 22302167, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14765753, 'last_updated_at': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 21, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 21, 47, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302156,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302144 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302157,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302145 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302158,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302146 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302159,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302147 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302160,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302148 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302161,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302149 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302162,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302150 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302151 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302164,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302152 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302165,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302153 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302166,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302154 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22302167,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22302155 lien utilise dans velours : https://www.fotonower.com/velours/22302156,22302157,22302158,22302159,22302160,22302161,22302162,22302163,22302164,22302165,22302166,22302167?tags=papier,cartonnette,autre_refus,Teint_Dans_La_Masse,environnement,Carton_gris,Carton_brun,kraft,mal_croppe,flou,plastique,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22302118]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721] map_info['map_portfolio_photo'] : {22302118: [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721]} final : False mtd_id 4302 list_pids : [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721] Looping around the photos to save general results len do output : 1 /22302118. 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, '2747359') ('4302', '22302118', '1351909930', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351907220', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351907202', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351906652', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351904521', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351904493', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351903921', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902987', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902962', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902721', None, None, None, None, None, '2747359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22302118', "{'papier': 22302144, 'cartonnette': 22302145, 'autre_refus': 22302146, 'Teint_Dans_La_Masse': 22302147, 'environnement': 22302148, 'Carton_gris': 22302149, 'Carton_brun': 22302150, 'kraft': 22302151, 'mal_croppe': 22302152, 'flou': 22302153, 'plastique': 22302154, 'metal': 22302155}", None, None, None, None, '2747359'), ('4302', '22302118', '1351909930', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351907220', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351907202', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351906652', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351904521', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351904493', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351903921', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351902987', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351902962', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351902721', None, None, None, None, None, '2747359')] time used for this insertion : 0.01862502098083496 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.448573589324951 time spend to save output : 0.019014596939086914 total time spend for step 1 : 4.467588186264038 step2:final Sat Apr 12 06:04:33 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (22302118) 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 22302118 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351902987,1351902721,1351902962,1351903921,1351904521,1351904493,1351906652,1351907220,1351907202,1351909930); 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([22302118]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} new output for save of step final : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721] map_info['map_portfolio_photo'] : {22302118: [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721]} final : False mtd_id 4302 list_pids : [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721] Looping around the photos to save general results len do output : 10 /1351909930.Didn't retrieve data . /1351907220.Didn't retrieve data . /1351907202.Didn't retrieve data . /1351906652.Didn't retrieve data . /1351904521.Didn't retrieve data . /1351904493.Didn't retrieve data . /1351903921.Didn't retrieve data . /1351902987.Didn't retrieve data . /1351902962.Didn't retrieve data . /1351902721.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, '2747359') ('4302', '22302118', '1351909930', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351907220', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351907202', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351906652', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351904521', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351904493', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351903921', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902987', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902962', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902721', None, None, None, None, None, '2747359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22302118', '1351909930', '0.013492933064411428', None, None, None, None, '2747359'), ('4302', '22302118', '1351907220', '0.013492933064411428', None, None, None, None, '2747359'), ('4302', '22302118', '1351907202', '0.013492933064411428', None, None, None, None, '2747359'), ('4302', '22302118', '1351906652', '0.013492933064411428', None, None, None, None, '2747359'), ('4302', '22302118', '1351904521', '0.013492933064411428', None, None, None, None, '2747359'), ('4302', '22302118', '1351904493', '0.013492933064411428', None, None, None, None, '2747359'), ('4302', '22302118', '1351903921', '0.013492933064411428', None, None, None, None, '2747359'), ('4302', '22302118', '1351902987', '0.013492933064411428', None, None, None, None, '2747359'), ('4302', '22302118', '1351902962', '0.013492933064411428', None, None, None, None, '2747359'), ('4302', '22302118', '1351902721', '0.013492933064411428', None, None, None, None, '2747359')] time used for this insertion : 0.01343083381652832 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06244254112243652 time spend to save output : 0.013899803161621094 total time spend for step 2 : 0.07634234428405762 step3:velours_tree Sat Apr 12 06:04:33 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22302118: [{'papier': 22302144, 'cartonnette': 22302145, 'autre_refus': 22302146, 'Teint_Dans_La_Masse': 22302147, 'environnement': 22302148, 'Carton_gris': 22302149, 'Carton_brun': 22302150, 'kraft': 22302151, 'mal_croppe': 22302152, 'flou': 22302153, 'plastique': 22302154, 'metal': 22302155}]} input_args_next_step : {22302118: ()} output_args : {22302118: [{'papier': 22302144, 'cartonnette': 22302145, 'autre_refus': 22302146, 'Teint_Dans_La_Masse': 22302147, 'environnement': 22302148, 'Carton_gris': 22302149, 'Carton_brun': 22302150, 'kraft': 22302151, 'mal_croppe': 22302152, 'flou': 22302153, 'plastique': 22302154, 'metal': 22302155}]} args : 22302118 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': 22302144, 'cartonnette': 22302145, 'autre_refus': 22302146, 'Teint_Dans_La_Masse': 22302147, 'environnement': 22302148, 'Carton_gris': 22302149, 'Carton_brun': 22302150, 'kraft': 22302151, 'mal_croppe': 22302152, 'flou': 22302153, 'plastique': 22302154, 'metal': 22302155},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22302118) 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([22302118]) 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.3140108585357666 time spend to save output : 5.125999450683594e-05 total time spend for step 3 : 0.31406211853027344 step4:send_mail_cod Sat Apr 12 06:04:33 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} input_args_next_step : {1351909930: ()} output_args : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} args : 1351909930 depend.output_id : 0 input_args_next_step : {1351909930: ('0.013492933064411428',), 1351907220: ()} output_args : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} args : 1351907220 depend.output_id : 0 input_args_next_step : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ()} output_args : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} args : 1351907202 depend.output_id : 0 input_args_next_step : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ()} output_args : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} args : 1351906652 depend.output_id : 0 input_args_next_step : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ()} output_args : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} args : 1351904521 depend.output_id : 0 input_args_next_step : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ()} output_args : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} args : 1351904493 depend.output_id : 0 input_args_next_step : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ()} output_args : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} args : 1351903921 depend.output_id : 0 input_args_next_step : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ()} output_args : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} args : 1351902987 depend.output_id : 0 input_args_next_step : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ()} output_args : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} args : 1351902962 depend.output_id : 0 input_args_next_step : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ()} output_args : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',)} args : 1351902721 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 : {22302118: [{'papier': 22302144, 'cartonnette': 22302145, 'autre_refus': 22302146, 'Teint_Dans_La_Masse': 22302147, 'environnement': 22302148, 'Carton_gris': 22302149, 'Carton_brun': 22302150, 'kraft': 22302151, 'mal_croppe': 22302152, 'flou': 22302153, 'plastique': 22302154, 'metal': 22302155}]} input_args_next_step : {1351909930: ('0.013492933064411428',), 1351907220: ('0.013492933064411428',), 1351907202: ('0.013492933064411428',), 1351906652: ('0.013492933064411428',), 1351904521: ('0.013492933064411428',), 1351904493: ('0.013492933064411428',), 1351903921: ('0.013492933064411428',), 1351902987: ('0.013492933064411428',), 1351902962: ('0.013492933064411428',), 1351902721: ('0.013492933064411428',), 22302118: ()} output_args : {22302118: [{'papier': 22302144, 'cartonnette': 22302145, 'autre_refus': 22302146, 'Teint_Dans_La_Masse': 22302147, 'environnement': 22302148, 'Carton_gris': 22302149, 'Carton_brun': 22302150, 'kraft': 22302151, 'mal_croppe': 22302152, 'flou': 22302153, 'plastique': 22302154, 'metal': 22302155}]} args : 22302118 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.013492933064411428',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22302118) 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 (1351909930,1351907220,1351907202,1351906652,1351904521,1351904493,1351903921,1351902987,1351902962,1351902721) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351902721 begin to download photo : 1351903921 begin to download photo : 1351906652 begin to download photo : 1351909930 download finish for photo 1351903921 begin to download photo : 1351904493 download finish for photo 1351909930 download finish for photo 1351906652 begin to download photo : 1351907202 download finish for photo 1351902721 begin to download photo : 1351902962 download finish for photo 1351904493 begin to download photo : 1351904521 download finish for photo 1351907202 begin to download photo : 1351907220 download finish for photo 1351902962 begin to download photo : 1351902987 download finish for photo 1351904521 download finish for photo 1351907220 download finish for photo 1351902987 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22302118_12-04-2025_06_04_34.pdf 22302145 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=22302145 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351904098: '1744400231_2293834_1351902987_817af6177931891bf910c00b6f7d0279_rle_crop_3758894916_0.png', 1351904099: '1744400231_2293834_1351902721_9c86e7fa061eb1d6a1c39fc6dbda7481_rle_crop_3758895233_0.png', 1351908011: '1744400712_2298069_1351904493_a3f1b59cf18aca51d2cbc0d3bd8d7334_rle_crop_3758935754_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d17e87f0639060c41651fc5e88ee59f5_86314466.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/453b7c73b0c384fb1475692915aedb68_54210214.png change filename to text .imagette223021451744430674/ imagette223021451744430674/1744400712_2298069_1351904493_a3f1b59cf18aca51d2cbc0d3bd8d7334_rle_crop_3758935754_0.png.png imagette223021451744430674/1744400231_2293834_1351902721_9c86e7fa061eb1d6a1c39fc6dbda7481_rle_crop_3758895233_0.png.png imagette223021451744430674/1744400231_2293834_1351902987_817af6177931891bf910c00b6f7d0279_rle_crop_3758894916_0.png.png imagette223021461744430674/ imagette223021511744430674/ imagette223021521744430674/ imagette223021531744430674/ imagette223021541744430674/ imagette223021551744430674/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/aabfe0bc92342d12025c708a03526fa3_50252960.png imagette223021451744430674 22302146 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=22302146 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223021461744430674 22302151 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=22302151 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223021511744430674 22302152 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=22302152 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223021521744430674 22302153 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=22302153 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223021531744430674 22302154 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=22302154 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223021541744430674 22302155 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=22302155 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223021551744430674 22302147 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=22302147 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351904092: '1744400231_2293834_1351902987_817af6177931891bf910c00b6f7d0279_rle_crop_3758894925_0.png', 1351904094: '1744400231_2293834_1351902721_9c86e7fa061eb1d6a1c39fc6dbda7481_rle_crop_3758895240_0.png', 1351904649: '1744400351_2294796_1351902962_00881c23ca4118d5bb84b44be05cd5a5_rle_crop_3758906549_0.png', 1351907995: '1744400712_2298069_1351904493_a3f1b59cf18aca51d2cbc0d3bd8d7334_rle_crop_3758935757_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5625c693b4ca5a25bcc359ad0f448941_62899135.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5b1cd75b8fca1668b446266af180383d_31285627.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/658bc02a753d8eac345b8e37a32005c2_95145925.png change filename to text .imagette223021471744430674/ imagette223021471744430674/1744400231_2293834_1351902987_817af6177931891bf910c00b6f7d0279_rle_crop_3758894925_0.png.png imagette223021471744430674/1744400231_2293834_1351902721_9c86e7fa061eb1d6a1c39fc6dbda7481_rle_crop_3758895240_0.png.png imagette223021471744430674/1744400712_2298069_1351904493_a3f1b59cf18aca51d2cbc0d3bd8d7334_rle_crop_3758935757_0.png.png imagette223021471744430674/1744400351_2294796_1351902962_00881c23ca4118d5bb84b44be05cd5a5_rle_crop_3758906549_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/4ed6255b413ae1698bd9aadecf346f0c_19626431.png imagette223021471744430674 22302149 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=22302149 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351907999: '1744400712_2298069_1351906652_d39b1c0f2bce7f1261cf47911ed519d4_rle_crop_3758934839_0.png'} change filename to text .imagette223021491744430675/ imagette223021491744430675/1744400712_2298069_1351906652_d39b1c0f2bce7f1261cf47911ed519d4_rle_crop_3758934839_0.png.png imagette223021501744430675/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2d99ffd2529962573b61e8080c8914ce_94142911.png imagette223021491744430675 22302150 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=22302150 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223021501744430675 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22302118 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22302156,22302157,22302158,22302159,22302160,22302161,22302162,22302163,22302164,22302165,22302166,22302167?tags=papier,cartonnette,autre_refus,Teint_Dans_La_Masse,environnement,Carton_gris,Carton_brun,kraft,mal_croppe,flou,plastique,metal your option no_mail is active, we will not send the real mail to your client args[1351909930] : ('0.013492933064411428',) no score found for photo 1351909930 We are sending mail with results at report@fotonower.com args[1351907220] : ('0.013492933064411428',) no score found for photo 1351907220 We are sending mail with results at report@fotonower.com args[1351907202] : ('0.013492933064411428',) no score found for photo 1351907202 We are sending mail with results at report@fotonower.com args[1351906652] : ('0.013492933064411428',) no score found for photo 1351906652 We are sending mail with results at report@fotonower.com args[1351904521] : ('0.013492933064411428',) no score found for photo 1351904521 We are sending mail with results at report@fotonower.com args[1351904493] : ('0.013492933064411428',) no score found for photo 1351904493 We are sending mail with results at report@fotonower.com args[1351903921] : ('0.013492933064411428',) no score found for photo 1351903921 We are sending mail with results at report@fotonower.com args[1351902987] : ('0.013492933064411428',) no score found for photo 1351902987 We are sending mail with results at report@fotonower.com args[1351902962] : ('0.013492933064411428',) no score found for photo 1351902962 We are sending mail with results at report@fotonower.com args[1351902721] : ('0.013492933064411428',) no score found for photo 1351902721 We are sending mail with results at report@fotonower.com refus_total : 0.013492933064411428 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=22302118 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_P22302118_12-04-2025_06_04_34.pdf results_Auto_P22302118_12-04-2025_06_04_34.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22302118_12-04-2025_06_04_34.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','22302118','results_Auto_P22302118_12-04-2025_06_04_34.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22302118_12-04-2025_06_04_34.pdf','pdf','','0.11','0.013492933064411428') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22302118]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721] map_info['map_portfolio_photo'] : {22302118: [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721]} final : False mtd_id 4302 list_pids : [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721] 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, '2747359') ('4302', '22302118', '1351909930', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351907220', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351907202', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351906652', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351904521', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351904493', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351903921', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902987', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902962', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902721', None, None, None, None, None, '2747359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22302118', '1351909930', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351907220', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351907202', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351906652', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351904521', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351904493', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351903921', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351902987', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351902962', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351902721', None, None, None, None, None, '2747359')] time used for this insertion : 0.016152143478393555 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.907487154006958 time spend to save output : 0.016386747360229492 total time spend for step 4 : 2.9238739013671875 step5:split_time_score Sat Apr 12 06:04:36 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 : ['22302118'] 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 : [('22302118',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22302118) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351909930: {'path': 'temp/1744430673_399059_1351909930_d63f324fafdbe3e80c33a9a0d4a4863f.jpg', 'extension': 'jpg'}, 1351903921: {'path': 'temp/1744430673_399059_1351903921_5c1fd86f29253f40519f6d7cd0ed9c7b.jpg', 'extension': 'jpg'}, 1351904493: {'path': 'temp/1744430673_399059_1351904493_a3f1b59cf18aca51d2cbc0d3bd8d7334.jpg', 'extension': 'jpg'}, 1351904521: {'path': 'temp/1744430673_399059_1351904521_211e3cc41fbee2f2c662408a43bff96b.jpg', 'extension': 'jpg'}, 1351906652: {'path': 'temp/1744430673_399059_1351906652_d39b1c0f2bce7f1261cf47911ed519d4.jpg', 'extension': 'jpg'}, 1351907202: {'path': 'temp/1744430673_399059_1351907202_5337d3a4de930ae75cbe83c5eb3b7f67.jpg', 'extension': 'jpg'}, 1351907220: {'path': 'temp/1744430673_399059_1351907220_8fa8d439209e0ff31d5262e9f0404cb5.jpg', 'extension': 'jpg'}, 1351902721: {'path': 'temp/1744430673_399059_1351902721_9c86e7fa061eb1d6a1c39fc6dbda7481.jpg', 'extension': 'jpg'}, 1351902962: {'path': 'temp/1744430673_399059_1351902962_00881c23ca4118d5bb84b44be05cd5a5.jpg', 'extension': 'jpg'}, 1351902987: {'path': 'temp/1744430673_399059_1351902987_817af6177931891bf910c00b6f7d0279.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 = 22302118; (('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 = 22302118 group by h (('21', 10),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22302118 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 (22302118) 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 (22302118) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11042025 22302118 Nombre de photos uploadées : 10 / 23040 (0%) 11042025 22302118 Nombre de photos taguées (types de déchets): 0 / 10 (0%) 11042025 22302118 Nombre de photos taguées (volume) : 0 / 10 (0%) [{'photo_id': 1351902987, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/817af6177931891bf910c00b6f7d0279.jpg', 'username': None, 'uploaded_at': 1744400107, 'text': 'image_11042025_21_33_34_010144m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351902721, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9c86e7fa061eb1d6a1c39fc6dbda7481.jpg', 'username': None, 'uploaded_at': 1744400047, 'text': 'image_11042025_21_33_54_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351902962, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/00881c23ca4118d5bb84b44be05cd5a5.jpg', 'username': None, 'uploaded_at': 1744400107, 'text': 'image_11042025_21_34_13_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351903921, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5c1fd86f29253f40519f6d7cd0ed9c7b.jpg', 'username': None, 'uploaded_at': 1744400227, 'text': 'image_11042025_21_34_44_010138m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 8.821487426757812e-06 ?????????? elapsed_time : fill_and_build_computed_from_old_data 0.0006625652313232422 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22302118, '2025-04-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1733453,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024201631546020508 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= 1733453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22250905, 'dashboard_result_id': 10042820, '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_P22250905_12-04-2025_05_34_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22250907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22250908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22250909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22250910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22250911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22250912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22250913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22250914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22250915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22250916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22250917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22250918, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22251131, 'dashboard_result_id': 10042821, '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_P22251131_12-04-2025_05_35_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251145, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22251556, 'dashboard_result_id': 10042822, '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_P22251556_12-04-2025_05_35_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251571, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22251992, 'dashboard_result_id': 10042823, '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_P22251992_12-04-2025_05_35_38.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22252021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252030, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22252595, 'dashboard_result_id': 10042824, '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_P22252595_12-04-2025_05_36_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22252623, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252634, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22253158, 'dashboard_result_id': 10042825, '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_P22253158_12-04-2025_05_36_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22253207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22253208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22253209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22253210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22253211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22253212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22253213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22253214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22253215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22253216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22253217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22253218, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22253768, 'dashboard_result_id': 10042826, '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_P22253768_12-04-2025_05_37_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22253836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22253837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22253838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22253839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22253840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22253841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22253842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22253843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22253844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22253845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22253846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22253847, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22254301, 'dashboard_result_id': 10042827, '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_P22254301_12-04-2025_05_37_41.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22254342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22254343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22254344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22254345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22254346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22254347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22254348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22254349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22254350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22254351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22254352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22254353, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22255333, 'dashboard_result_id': 10042828, '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_P22255333_12-04-2025_05_38_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22255996, 'dashboard_result_id': 10042829, '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_P22255996_12-04-2025_05_38_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256064, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22256877, 'dashboard_result_id': 10042830, '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_P22256877_12-04-2025_05_39_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256891, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22257532, 'dashboard_result_id': 10042831, '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_P22257532_12-04-2025_05_39_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22257550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22257551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22257552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22257553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22257554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22257555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22257556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22257557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22257558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22257559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22257560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22257561, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22258038, 'dashboard_result_id': 10042832, '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_P22258038_12-04-2025_05_39_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22258117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22258118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22258119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22258120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22258121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22258122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22258123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22258124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22258125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22258126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22258127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22258128, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22258951, 'dashboard_result_id': 10042833, '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_P22258951_12-04-2025_05_40_15.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22258954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22258955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22258956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22258957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22258958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22258959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22258960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22258961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22258962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22258963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22258964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22258965, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22259736, 'dashboard_result_id': 10042834, '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_P22259736_12-04-2025_05_40_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22259853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22259854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22259855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22259856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22259857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22259858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22259859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22259860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22259861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22259862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22259863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22259864, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22262446, 'dashboard_result_id': 10042835, '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_P22262446_12-04-2025_05_41_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22262472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22262473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22262474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22262475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22262476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22262477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22262478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22262479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22262480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22262481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22262482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22262483, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22263332, 'dashboard_result_id': 10042836, '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_P22263332_12-04-2025_05_41_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22263361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22263362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22263363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22263364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22263365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22263366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22263367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22263368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22263369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22263370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22263371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22263372, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22264476, 'dashboard_result_id': 10042837, '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_P22264476_12-04-2025_05_41_56.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22264502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264506, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22264886, 'dashboard_result_id': 10042838, '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_P22264886_12-04-2025_05_41_40.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22264889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264900, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22266161, 'dashboard_result_id': 10042839, '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_P22266161_12-04-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22266210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22266211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22266212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22266213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22266214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22266215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22266216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22266217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22266218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22266219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22266220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22266221, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22267667, 'dashboard_result_id': 10042840, '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_P22267667_12-04-2025_05_42_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22267671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22267672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22267673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22267674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22267675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22267676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22267677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22267678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22267679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22267680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22267681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22267682, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22268821, 'dashboard_result_id': 10042841, '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_P22268821_12-04-2025_05_44_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22268823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22268824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22268825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22268826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22268827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22268828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22268829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22268832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22268838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22268842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22268845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22268846, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22270003, 'dashboard_result_id': 10042842, '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_P22270003_12-04-2025_05_46_09.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22270069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22270070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22270071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22270072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22270073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22270074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22270075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22270076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22270077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22270078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22270079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22270080, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22271022, 'dashboard_result_id': 10042843, '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_P22271022_12-04-2025_05_47_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22271026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22271027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22271028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22271029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22271030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22271031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22271032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22271033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22271034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22271035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22271036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22271037, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22272205, 'dashboard_result_id': 10042844, '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_P22272205_12-04-2025_05_47_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22272221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22272222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22272224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22272225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22272226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22272228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22272229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22272231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22272232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22272233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22272235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22272236, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22273185, 'dashboard_result_id': 10042845, '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_P22273185_12-04-2025_00_04_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22273190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22273191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22273192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22273193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22273194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22273195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22273196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22273197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22273198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22273199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22273200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22273201, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22276503, 'dashboard_result_id': 10042846, '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_P22276503_11-04-2025_13_47_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22276508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276519, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22276699, 'dashboard_result_id': 10042847, '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_P22276699_12-04-2025_05_52_47.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22276730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276738, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22277278, 'dashboard_result_id': 10042848, '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_P22277278_12-04-2025_05_52_46.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22277302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277313, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22277722, 'dashboard_result_id': 10042849, '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_P22277722_12-04-2025_05_52_51.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22277733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277740, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22278478, 'dashboard_result_id': 10042850, '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_P22278478_12-04-2025_05_53_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22278510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278521, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22278867, 'dashboard_result_id': 10042851, '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_P22278867_12-04-2025_05_53_55.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22278901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278909, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22279715, 'dashboard_result_id': 10042852, '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_P22279715_12-04-2025_05_53_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22279801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22279802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22279803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22279804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22279805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22279806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22279807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22279808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22279809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22279810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22279811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22279812, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22280602, 'dashboard_result_id': 10042853, '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_P22280602_12-04-2025_05_54_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22280664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22280665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22280666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22280667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22280668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22280669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22280670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22280671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22280672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22280673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22280674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22280675, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22281285, 'dashboard_result_id': 10042854, '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_P22281285_12-04-2025_05_55_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22281326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22281327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22281328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22281329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22281330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22281331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22281332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22281333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22281334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22281335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22281336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22281337, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22282511, 'dashboard_result_id': 10042855, '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_P22282511_12-04-2025_05_55_47.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22282636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22282637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22282638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22282639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22282640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22282641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22282642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22282643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22282644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22282645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22282646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22282647, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22283551, 'dashboard_result_id': 10042856, '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_P22283551_12-04-2025_05_56_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283600, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22284509, 'dashboard_result_id': 10042857, '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_P22284509_12-04-2025_05_56_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284545, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22285521, 'dashboard_result_id': 10042858, '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_P22285521_12-04-2025_05_57_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285564, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285568, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22286062, 'dashboard_result_id': 10042859, '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_P22286062_12-04-2025_05_57_10.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286079, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22287027, 'dashboard_result_id': 10042860, '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_P22287027_12-04-2025_05_57_53.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22287049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22287050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22287051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22287052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22287053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22287054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22287055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22287056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22287057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22287058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22287059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22287060, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22288233, 'dashboard_result_id': 10042861, '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_P22288233_12-04-2025_05_57_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288237, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288245, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22289888, 'dashboard_result_id': 10042862, '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_P22289888_12-04-2025_05_58_08.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289927, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22290790, 'dashboard_result_id': 10042863, '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_P22290790_12-04-2025_05_58_43.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22290792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22290793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22290794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22290795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22290796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22290797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22290798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22290799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22290800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22290801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290802, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22291494, 'dashboard_result_id': 10042864, '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_P22291494_12-04-2025_05_59_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22291495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22291496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22291497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22291498, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22291499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22291500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22291501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22291502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22291503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22291504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22291505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22291506, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22292559, 'dashboard_result_id': 10042865, '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_P22292559_12-04-2025_05_59_51.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22292585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22292586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22292587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22292588, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22292589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22292590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22292591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22292592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22292593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22292594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22292595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22292596, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22293155, 'dashboard_result_id': 10042866, '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_P22293155_12-04-2025_05_59_46.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22293204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293240, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22294513, 'dashboard_result_id': 10042867, '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_P22294513_12-04-2025_06_00_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294588, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22295582, 'dashboard_result_id': 10042868, '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_P22295582_12-04-2025_06_00_44.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295596, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22296376, 'dashboard_result_id': 10042869, '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_P22296376_12-04-2025_06_01_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22296402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296415, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22297260, 'dashboard_result_id': 10042870, '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_P22297260_12-04-2025_06_01_44.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22297294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22297295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22297296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22297297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22297298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22297299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22297300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22297301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22297302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22297303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22297304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22297305, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22298172, 'dashboard_result_id': 10042871, '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_P22298172_12-04-2025_06_02_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298254, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22299599, 'dashboard_result_id': 10042872, '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_P22299599_12-04-2025_06_03_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22299612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22299613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22299614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22299615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22299616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22299617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22299618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22299619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22299620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22299621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22299622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22299623, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22301428, 'dashboard_result_id': 10042873, '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_P22301428_12-04-2025_06_03_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22301429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22301430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22301431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22301432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22301433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22301434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22301435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22301436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22301437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22301438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22301439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22301440, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1746188, 'mtr_portfolio_id': 22302118, 'dashboard_result_id': 10042874, '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_P22302118_11-04-2025_21_53_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22302144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22302145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22302146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22302147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22302148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22302149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22302150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22302151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22302152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22302153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22302154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22302155, '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 = 22250905 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': 2747305, 'mtr_portfolio_id': 22250905, 'created_at': datetime.datetime(2025, 4, 12, 5, 34, 37), 'result': '0.04563386672342721', 'result_long': None, 'result_double': None}] Qualite : 0.04563386672342721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22250905 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22250905_12-04-2025_05_34_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22250905 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_P22250905_12-04-2025_05_34_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22250907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22250908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22250909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22250910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22250911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22250912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22250913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22250914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22250915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22250916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22250917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22250918, 'pht': 3726}}" where mtr_portfolio_id = 22250905 and dashboard_run_id = 1746188 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`=22250905 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042820, 0.04563386672342721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22250905_12-04-2025_05_34_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22250907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22250908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22250909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22250910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22250911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22250912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22250913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22250914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22250915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22250916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22250917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22250918, '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 = 22251131 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': 2747306, 'mtr_portfolio_id': 22251131, 'created_at': datetime.datetime(2025, 4, 12, 5, 35, 6), 'result': '0.04436577284793913', 'result_long': None, 'result_double': None}] Qualite : 0.04436577284793913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22251131 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251131_12-04-2025_05_35_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22251131 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_P22251131_12-04-2025_05_35_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251145, 'pht': 3726}}" where mtr_portfolio_id = 22251131 and dashboard_run_id = 1746188 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`=22251131 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042821, 0.04436577284793913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251131_12-04-2025_05_35_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251145, '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 = 22251556 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': 2747307, 'mtr_portfolio_id': 22251556, 'created_at': datetime.datetime(2025, 4, 12, 5, 35, 52), 'result': '0.054964419822189976', 'result_long': None, 'result_double': None}] Qualite : 0.054964419822189976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22251556 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251556_12-04-2025_05_35_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22251556 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_P22251556_12-04-2025_05_35_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251571, 'pht': 3726}}" where mtr_portfolio_id = 22251556 and dashboard_run_id = 1746188 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`=22251556 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042822, 0.054964419822189976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251556_12-04-2025_05_35_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251571, '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 = 22251992 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': 2747308, 'mtr_portfolio_id': 22251992, 'created_at': datetime.datetime(2025, 4, 12, 5, 35, 32), 'result': '0.038089659637612024', 'result_long': None, 'result_double': None}] Qualite : 0.038089659637612024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22251992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251992_12-04-2025_05_35_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22251992 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_P22251992_12-04-2025_05_35_38.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22252021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252030, 'pht': 3726}}" where mtr_portfolio_id = 22251992 and dashboard_run_id = 1746188 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`=22251992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042823, 0.038089659637612024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251992_12-04-2025_05_35_38.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22252021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252030, '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 = 22252595 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': 2747309, 'mtr_portfolio_id': 22252595, 'created_at': datetime.datetime(2025, 4, 12, 5, 36, 2), 'result': '0.05520143683214831', 'result_long': None, 'result_double': None}] Qualite : 0.05520143683214831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22252595 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22252595_12-04-2025_05_36_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22252595 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_P22252595_12-04-2025_05_36_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22252623, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252634, 'pht': 3726}}" where mtr_portfolio_id = 22252595 and dashboard_run_id = 1746188 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`=22252595 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042824, 0.05520143683214831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22252595_12-04-2025_05_36_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22252623, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252634, '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 = 22253158 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': 2747310, 'mtr_portfolio_id': 22253158, 'created_at': datetime.datetime(2025, 4, 12, 5, 36, 28), 'result': '0.05096752656257585', 'result_long': None, 'result_double': None}] Qualite : 0.05096752656257585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22253158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22253158_12-04-2025_05_36_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22253158 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_P22253158_12-04-2025_05_36_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22253207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22253208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22253209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22253210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22253211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22253212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22253213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22253214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22253215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22253216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22253217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22253218, 'pht': 3726}}" where mtr_portfolio_id = 22253158 and dashboard_run_id = 1746188 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`=22253158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042825, 0.05096752656257585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22253158_12-04-2025_05_36_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22253207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22253208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22253209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22253210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22253211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22253212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22253213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22253214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22253215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22253216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22253217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22253218, '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 = 22253768 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': 2747311, 'mtr_portfolio_id': 22253768, 'created_at': datetime.datetime(2025, 4, 12, 5, 37), 'result': '0.051260444059286946', 'result_long': None, 'result_double': None}] Qualite : 0.051260444059286946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22253768 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22253768_12-04-2025_05_37_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22253768 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_P22253768_12-04-2025_05_37_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22253836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22253837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22253838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22253839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22253840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22253841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22253842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22253843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22253844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22253845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22253846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22253847, 'pht': 3726}}" where mtr_portfolio_id = 22253768 and dashboard_run_id = 1746188 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`=22253768 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042826, 0.051260444059286946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22253768_12-04-2025_05_37_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22253836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22253837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22253838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22253839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22253840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22253841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22253842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22253843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22253844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22253845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22253846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22253847, '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 = 22254301 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': 2747312, 'mtr_portfolio_id': 22254301, 'created_at': datetime.datetime(2025, 4, 12, 5, 37, 39), 'result': '0.05422572599987955', 'result_long': None, 'result_double': None}] Qualite : 0.05422572599987955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22254301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22254301_12-04-2025_05_37_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22254301 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_P22254301_12-04-2025_05_37_41.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22254342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22254343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22254344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22254345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22254346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22254347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22254348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22254349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22254350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22254351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22254352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22254353, 'pht': 3726}}" where mtr_portfolio_id = 22254301 and dashboard_run_id = 1746188 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`=22254301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042827, 0.05422572599987955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22254301_12-04-2025_05_37_41.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22254342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22254343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22254344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22254345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22254346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22254347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22254348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22254349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22254350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22254351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22254352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22254353, '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 = 22255333 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': 2747313, 'mtr_portfolio_id': 22255333, 'created_at': datetime.datetime(2025, 4, 12, 5, 38, 3), 'result': '0.059557028983503735', 'result_long': None, 'result_double': None}] Qualite : 0.059557028983503735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22255333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255333_12-04-2025_05_38_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22255333 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_P22255333_12-04-2025_05_38_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, 'pht': 3726}}" where mtr_portfolio_id = 22255333 and dashboard_run_id = 1746188 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`=22255333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042828, 0.059557028983503735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255333_12-04-2025_05_38_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, '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 = 22255996 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': 2747314, 'mtr_portfolio_id': 22255996, 'created_at': datetime.datetime(2025, 4, 12, 5, 38, 29), 'result': '0.05607421742119034', 'result_long': None, 'result_double': None}] Qualite : 0.05607421742119034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22255996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255996_12-04-2025_05_38_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22255996 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_P22255996_12-04-2025_05_38_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256064, 'pht': 3726}}" where mtr_portfolio_id = 22255996 and dashboard_run_id = 1746188 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`=22255996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042829, 0.05607421742119034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255996_12-04-2025_05_38_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256064, '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 = 22256877 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': 2747315, 'mtr_portfolio_id': 22256877, 'created_at': datetime.datetime(2025, 4, 12, 5, 39, 1), 'result': '0.05507583195357647', 'result_long': None, 'result_double': None}] Qualite : 0.05507583195357647 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22256877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22256877_12-04-2025_05_39_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22256877 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_P22256877_12-04-2025_05_39_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256891, 'pht': 3726}}" where mtr_portfolio_id = 22256877 and dashboard_run_id = 1746188 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`=22256877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042830, 0.05507583195357647, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22256877_12-04-2025_05_39_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256891, '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 = 22257532 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': 2747316, 'mtr_portfolio_id': 22257532, 'created_at': datetime.datetime(2025, 4, 12, 5, 39, 51), 'result': '0.0276068410941359', 'result_long': None, 'result_double': None}] Qualite : 0.0276068410941359 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22257532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22257532_12-04-2025_05_39_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22257532 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_P22257532_12-04-2025_05_39_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22257550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22257551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22257552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22257553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22257554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22257555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22257556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22257557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22257558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22257559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22257560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22257561, 'pht': 3726}}" where mtr_portfolio_id = 22257532 and dashboard_run_id = 1746188 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`=22257532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042831, 0.0276068410941359, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22257532_12-04-2025_05_39_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22257550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22257551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22257552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22257553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22257554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22257555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22257556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22257557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22257558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22257559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22257560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22257561, '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 = 22258038 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': 2747317, 'mtr_portfolio_id': 22258038, 'created_at': datetime.datetime(2025, 4, 12, 5, 39, 32), 'result': '0.05883088886825789', 'result_long': None, 'result_double': None}] Qualite : 0.05883088886825789 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22258038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22258038_12-04-2025_05_39_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22258038 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_P22258038_12-04-2025_05_39_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22258117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22258118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22258119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22258120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22258121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22258122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22258123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22258124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22258125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22258126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22258127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22258128, 'pht': 3726}}" where mtr_portfolio_id = 22258038 and dashboard_run_id = 1746188 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`=22258038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042832, 0.05883088886825789, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22258038_12-04-2025_05_39_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22258117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22258118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22258119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22258120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22258121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22258122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22258123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22258124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22258125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22258126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22258127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22258128, '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 = 22258951 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': 2747318, 'mtr_portfolio_id': 22258951, 'created_at': datetime.datetime(2025, 4, 12, 5, 40, 11), 'result': '0.056517812264862764', 'result_long': None, 'result_double': None}] Qualite : 0.056517812264862764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22258951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22258951_12-04-2025_05_40_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22258951 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_P22258951_12-04-2025_05_40_15.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22258954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22258955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22258956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22258957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22258958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22258959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22258960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22258961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22258962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22258963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22258964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22258965, 'pht': 3726}}" where mtr_portfolio_id = 22258951 and dashboard_run_id = 1746188 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`=22258951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042833, 0.056517812264862764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22258951_12-04-2025_05_40_15.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22258954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22258955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22258956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22258957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22258958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22258959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22258960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22258961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22258962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22258963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22258964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22258965, '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 = 22259736 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': 2747319, 'mtr_portfolio_id': 22259736, 'created_at': datetime.datetime(2025, 4, 12, 5, 40, 32), 'result': '0.05000282243175666', 'result_long': None, 'result_double': None}] Qualite : 0.05000282243175666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22259736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22259736_12-04-2025_05_40_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22259736 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_P22259736_12-04-2025_05_40_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22259853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22259854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22259855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22259856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22259857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22259858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22259859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22259860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22259861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22259862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22259863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22259864, 'pht': 3726}}" where mtr_portfolio_id = 22259736 and dashboard_run_id = 1746188 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`=22259736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042834, 0.05000282243175666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22259736_12-04-2025_05_40_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22259853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22259854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22259855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22259856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22259857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22259858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22259859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22259860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22259861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22259862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22259863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22259864, '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 = 22262446 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': 2747320, 'mtr_portfolio_id': 22262446, 'created_at': datetime.datetime(2025, 4, 12, 5, 41, 4), 'result': '0.04173420751115737', 'result_long': None, 'result_double': None}] Qualite : 0.04173420751115737 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22262446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22262446_12-04-2025_05_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22262446 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_P22262446_12-04-2025_05_41_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22262472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22262473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22262474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22262475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22262476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22262477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22262478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22262479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22262480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22262481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22262482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22262483, 'pht': 3726}}" where mtr_portfolio_id = 22262446 and dashboard_run_id = 1746188 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`=22262446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042835, 0.04173420751115737, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22262446_12-04-2025_05_41_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22262472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22262473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22262474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22262475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22262476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22262477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22262478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22262479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22262480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22262481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22262482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22262483, '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 = 22263332 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': 2747321, 'mtr_portfolio_id': 22263332, 'created_at': datetime.datetime(2025, 4, 12, 5, 41, 5), 'result': '0.04343810832992967', 'result_long': None, 'result_double': None}] Qualite : 0.04343810832992967 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22263332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22263332_12-04-2025_05_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22263332 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_P22263332_12-04-2025_05_41_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22263361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22263362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22263363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22263364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22263365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22263366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22263367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22263368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22263369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22263370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22263371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22263372, 'pht': 3726}}" where mtr_portfolio_id = 22263332 and dashboard_run_id = 1746188 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`=22263332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042836, 0.04343810832992967, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22263332_12-04-2025_05_41_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22263361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22263362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22263363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22263364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22263365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22263366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22263367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22263368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22263369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22263370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22263371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22263372, '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 = 22264476 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': 2747322, 'mtr_portfolio_id': 22264476, 'created_at': datetime.datetime(2025, 4, 12, 5, 41, 51), 'result': '0.06460752342096775', 'result_long': None, 'result_double': None}] Qualite : 0.06460752342096775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22264476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22264476_12-04-2025_05_41_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22264476 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_P22264476_12-04-2025_05_41_56.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22264502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264506, 'pht': 3726}}" where mtr_portfolio_id = 22264476 and dashboard_run_id = 1746188 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`=22264476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042837, 0.06460752342096775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22264476_12-04-2025_05_41_56.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22264502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264506, '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 = 22264886 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': 2747323, 'mtr_portfolio_id': 22264886, 'created_at': datetime.datetime(2025, 4, 12, 5, 41, 36), 'result': '0.04477746562917932', 'result_long': None, 'result_double': None}] Qualite : 0.04477746562917932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22264886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22264886_12-04-2025_05_41_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22264886 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_P22264886_12-04-2025_05_41_40.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22264889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264900, 'pht': 3726}}" where mtr_portfolio_id = 22264886 and dashboard_run_id = 1746188 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`=22264886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042838, 0.04477746562917932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22264886_12-04-2025_05_41_40.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22264889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22264890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22264891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22264892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22264893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22264894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22264895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22264896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22264897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22264898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22264899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22264900, '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 = 22266161 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': 2747324, 'mtr_portfolio_id': 22266161, 'created_at': datetime.datetime(2025, 4, 12, 5, 41, 58), 'result': '0.05768813183516436', 'result_long': None, 'result_double': None}] Qualite : 0.05768813183516436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22266161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22266161_12-04-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22266161 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_P22266161_12-04-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22266210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22266211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22266212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22266213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22266214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22266215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22266216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22266217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22266218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22266219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22266220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22266221, 'pht': 3726}}" where mtr_portfolio_id = 22266161 and dashboard_run_id = 1746188 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`=22266161 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042839, 0.05768813183516436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22266161_12-04-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22266210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22266211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22266212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22266213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22266214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22266215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22266216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22266217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22266218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22266219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22266220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22266221, '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 = 22267667 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': 2747325, 'mtr_portfolio_id': 22267667, 'created_at': datetime.datetime(2025, 4, 12, 5, 42, 34), 'result': '0.03594243988410294', 'result_long': None, 'result_double': None}] Qualite : 0.03594243988410294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22267667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22267667_12-04-2025_05_42_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22267667 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_P22267667_12-04-2025_05_42_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22267671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22267672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22267673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22267674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22267675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22267676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22267677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22267678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22267679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22267680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22267681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22267682, 'pht': 3726}}" where mtr_portfolio_id = 22267667 and dashboard_run_id = 1746188 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`=22267667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042840, 0.03594243988410294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22267667_12-04-2025_05_42_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22267671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22267672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22267673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22267674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22267675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22267676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22267677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22267678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22267679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22267680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22267681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22267682, '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 = 22268821 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': 2747326, 'mtr_portfolio_id': 22268821, 'created_at': datetime.datetime(2025, 4, 12, 5, 44), 'result': '0.038945728121589925', 'result_long': None, 'result_double': None}] Qualite : 0.038945728121589925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22268821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22268821_12-04-2025_05_44_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22268821 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_P22268821_12-04-2025_05_44_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22268823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22268824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22268825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22268826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22268827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22268828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22268829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22268832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22268838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22268842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22268845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22268846, 'pht': 3726}}" where mtr_portfolio_id = 22268821 and dashboard_run_id = 1746188 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`=22268821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042841, 0.038945728121589925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22268821_12-04-2025_05_44_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22268823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22268824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22268825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22268826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22268827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22268828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22268829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22268832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22268838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22268842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22268845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22268846, '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 = 22270003 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': 2747327, 'mtr_portfolio_id': 22270003, 'created_at': datetime.datetime(2025, 4, 12, 5, 46, 5), 'result': '0.03771434337154465', 'result_long': None, 'result_double': None}] Qualite : 0.03771434337154465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22270003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22270003_12-04-2025_05_46_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22270003 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_P22270003_12-04-2025_05_46_09.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22270069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22270070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22270071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22270072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22270073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22270074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22270075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22270076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22270077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22270078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22270079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22270080, 'pht': 3726}}" where mtr_portfolio_id = 22270003 and dashboard_run_id = 1746188 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`=22270003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042842, 0.03771434337154465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22270003_12-04-2025_05_46_09.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22270069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22270070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22270071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22270072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22270073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22270074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22270075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22270076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22270077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22270078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22270079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22270080, '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 = 22271022 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': 2747328, 'mtr_portfolio_id': 22271022, 'created_at': datetime.datetime(2025, 4, 12, 5, 47, 52), 'result': '0.05036876661543972', 'result_long': None, 'result_double': None}] Qualite : 0.05036876661543972 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22271022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22271022_12-04-2025_05_47_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22271022 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_P22271022_12-04-2025_05_47_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22271026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22271027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22271028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22271029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22271030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22271031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22271032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22271033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22271034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22271035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22271036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22271037, 'pht': 3726}}" where mtr_portfolio_id = 22271022 and dashboard_run_id = 1746188 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`=22271022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042843, 0.05036876661543972, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22271022_12-04-2025_05_47_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22271026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22271027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22271028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22271029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22271030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22271031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22271032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22271033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22271034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22271035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22271036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22271037, '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 = 22272205 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': 2747329, 'mtr_portfolio_id': 22272205, 'created_at': datetime.datetime(2025, 4, 12, 5, 47, 36), 'result': '0.057188567562628925', 'result_long': None, 'result_double': None}] Qualite : 0.057188567562628925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22272205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22272205_12-04-2025_05_47_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22272205 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_P22272205_12-04-2025_05_47_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22272221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22272222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22272224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22272225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22272226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22272228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22272229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22272231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22272232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22272233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22272235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22272236, 'pht': 3726}}" where mtr_portfolio_id = 22272205 and dashboard_run_id = 1746188 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`=22272205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042844, 0.057188567562628925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22272205_12-04-2025_05_47_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22272221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22272222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22272224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22272225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22272226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22272228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22272229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22272231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22272232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22272233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22272235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22272236, '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 = 22273185 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': 2744206, 'mtr_portfolio_id': 22273185, 'created_at': datetime.datetime(2025, 4, 12, 0, 4, 2), 'result': '0.03035381423562678', 'result_long': None, 'result_double': None}] Qualite : 0.03035381423562678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22273185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22273185_12-04-2025_00_04_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22273185 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_P22273185_12-04-2025_00_04_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22273190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22273191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22273192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22273193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22273194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22273195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22273196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22273197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22273198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22273199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22273200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22273201, 'pht': 3726}}" where mtr_portfolio_id = 22273185 and dashboard_run_id = 1746188 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`=22273185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042845, 0.03035381423562678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22273185_12-04-2025_00_04_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22273190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22273191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22273192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22273193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22273194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22273195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22273196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22273197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22273198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22273199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22273200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22273201, '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 = 22276503 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': 2744482, 'mtr_portfolio_id': 22276503, 'created_at': datetime.datetime(2025, 4, 11, 13, 47, 2), 'result': '0.03733633829439681', 'result_long': None, 'result_double': None}] Qualite : 0.03733633829439681 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22276503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22276503_11-04-2025_13_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22276503 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_P22276503_11-04-2025_13_47_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22276508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276519, 'pht': 3726}}" where mtr_portfolio_id = 22276503 and dashboard_run_id = 1746188 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`=22276503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042846, 0.03733633829439681, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22276503_11-04-2025_13_47_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22276508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276519, '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 = 22276699 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': 2747332, 'mtr_portfolio_id': 22276699, 'created_at': datetime.datetime(2025, 4, 12, 5, 52, 44), 'result': '0.05703815199128546', 'result_long': None, 'result_double': None}] Qualite : 0.05703815199128546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22276699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22276699_12-04-2025_05_52_47.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22276699 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_P22276699_12-04-2025_05_52_47.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22276730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276738, 'pht': 3726}}" where mtr_portfolio_id = 22276699 and dashboard_run_id = 1746188 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`=22276699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042847, 0.05703815199128546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22276699_12-04-2025_05_52_47.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22276727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22276728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22276729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22276730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22276731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22276732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22276733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22276734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22276735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22276736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22276737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22276738, '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 = 22277278 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': 2747333, 'mtr_portfolio_id': 22277278, 'created_at': datetime.datetime(2025, 4, 12, 5, 52, 43), 'result': '0.03866450454556978', 'result_long': None, 'result_double': None}] Qualite : 0.03866450454556978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22277278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22277278_12-04-2025_05_52_46.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22277278 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_P22277278_12-04-2025_05_52_46.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22277302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277313, 'pht': 3726}}" where mtr_portfolio_id = 22277278 and dashboard_run_id = 1746188 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`=22277278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042848, 0.03866450454556978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22277278_12-04-2025_05_52_46.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22277302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277313, '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 = 22277722 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': 2747334, 'mtr_portfolio_id': 22277722, 'created_at': datetime.datetime(2025, 4, 12, 5, 52, 48), 'result': '0.06183589714136275', 'result_long': None, 'result_double': None}] Qualite : 0.06183589714136275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22277722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22277722_12-04-2025_05_52_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22277722 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_P22277722_12-04-2025_05_52_51.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22277733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277740, 'pht': 3726}}" where mtr_portfolio_id = 22277722 and dashboard_run_id = 1746188 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`=22277722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042849, 0.06183589714136275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22277722_12-04-2025_05_52_51.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22277733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277740, '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 = 22278478 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': 2747335, 'mtr_portfolio_id': 22278478, 'created_at': datetime.datetime(2025, 4, 12, 5, 53, 1), 'result': '0.02719220396256499', 'result_long': None, 'result_double': None}] Qualite : 0.02719220396256499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22278478 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278478_12-04-2025_05_53_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22278478 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_P22278478_12-04-2025_05_53_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22278510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278521, 'pht': 3726}}" where mtr_portfolio_id = 22278478 and dashboard_run_id = 1746188 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`=22278478 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042850, 0.02719220396256499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278478_12-04-2025_05_53_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22278510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278521, '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 = 22278867 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': 2747336, 'mtr_portfolio_id': 22278867, 'created_at': datetime.datetime(2025, 4, 12, 5, 53, 51), 'result': '0.036367521183187944', 'result_long': None, 'result_double': None}] Qualite : 0.036367521183187944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22278867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278867_12-04-2025_05_53_55.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22278867 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_P22278867_12-04-2025_05_53_55.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22278901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278909, 'pht': 3726}}" where mtr_portfolio_id = 22278867 and dashboard_run_id = 1746188 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`=22278867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042851, 0.036367521183187944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278867_12-04-2025_05_53_55.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22278901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278909, '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 = 22279715 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': 2747337, 'mtr_portfolio_id': 22279715, 'created_at': datetime.datetime(2025, 4, 12, 5, 53, 32), 'result': '0.0444559399836755', 'result_long': None, 'result_double': None}] Qualite : 0.0444559399836755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22279715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22279715_12-04-2025_05_53_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22279715 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_P22279715_12-04-2025_05_53_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22279801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22279802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22279803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22279804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22279805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22279806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22279807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22279808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22279809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22279810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22279811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22279812, 'pht': 3726}}" where mtr_portfolio_id = 22279715 and dashboard_run_id = 1746188 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`=22279715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042852, 0.0444559399836755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22279715_12-04-2025_05_53_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22279801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22279802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22279803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22279804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22279805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22279806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22279807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22279808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22279809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22279810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22279811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22279812, '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 = 22280602 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': 2747338, 'mtr_portfolio_id': 22280602, 'created_at': datetime.datetime(2025, 4, 12, 5, 54, 12), 'result': '0.04351641664218327', 'result_long': None, 'result_double': None}] Qualite : 0.04351641664218327 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22280602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22280602_12-04-2025_05_54_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22280602 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_P22280602_12-04-2025_05_54_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22280664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22280665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22280666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22280667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22280668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22280669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22280670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22280671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22280672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22280673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22280674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22280675, 'pht': 3726}}" where mtr_portfolio_id = 22280602 and dashboard_run_id = 1746188 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`=22280602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042853, 0.04351641664218327, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22280602_12-04-2025_05_54_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22280664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22280665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22280666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22280667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22280668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22280669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22280670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22280671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22280672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22280673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22280674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22280675, '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 = 22281285 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': 2747339, 'mtr_portfolio_id': 22281285, 'created_at': datetime.datetime(2025, 4, 12, 5, 55), 'result': '0.06450056081753988', 'result_long': None, 'result_double': None}] Qualite : 0.06450056081753988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22281285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22281285_12-04-2025_05_55_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22281285 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_P22281285_12-04-2025_05_55_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22281326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22281327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22281328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22281329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22281330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22281331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22281332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22281333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22281334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22281335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22281336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22281337, 'pht': 3726}}" where mtr_portfolio_id = 22281285 and dashboard_run_id = 1746188 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`=22281285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042854, 0.06450056081753988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22281285_12-04-2025_05_55_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22281326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22281327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22281328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22281329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22281330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22281331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22281332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22281333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22281334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22281335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22281336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22281337, '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 = 22282511 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': 2747340, 'mtr_portfolio_id': 22282511, 'created_at': datetime.datetime(2025, 4, 12, 5, 55, 34), 'result': '0.06071375122979614', 'result_long': None, 'result_double': None}] Qualite : 0.06071375122979614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22282511 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22282511_12-04-2025_05_55_47.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22282511 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_P22282511_12-04-2025_05_55_47.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22282636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22282637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22282638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22282639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22282640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22282641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22282642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22282643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22282644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22282645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22282646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22282647, 'pht': 3726}}" where mtr_portfolio_id = 22282511 and dashboard_run_id = 1746188 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`=22282511 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042855, 0.06071375122979614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22282511_12-04-2025_05_55_47.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22282636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22282637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22282638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22282639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22282640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22282641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22282642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22282643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22282644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22282645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22282646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22282647, '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 = 22283551 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': 2747341, 'mtr_portfolio_id': 22283551, 'created_at': datetime.datetime(2025, 4, 12, 5, 56, 1), 'result': '0.061892990607613864', 'result_long': None, 'result_double': None}] Qualite : 0.061892990607613864 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22283551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283551_12-04-2025_05_56_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22283551 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_P22283551_12-04-2025_05_56_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283600, 'pht': 3726}}" where mtr_portfolio_id = 22283551 and dashboard_run_id = 1746188 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`=22283551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042856, 0.061892990607613864, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283551_12-04-2025_05_56_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283600, '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 = 22284509 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': 2747342, 'mtr_portfolio_id': 22284509, 'created_at': datetime.datetime(2025, 4, 12, 5, 56, 35), 'result': '0.0540129918741696', 'result_long': None, 'result_double': None}] Qualite : 0.0540129918741696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22284509 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284509_12-04-2025_05_56_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22284509 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_P22284509_12-04-2025_05_56_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284545, 'pht': 3726}}" where mtr_portfolio_id = 22284509 and dashboard_run_id = 1746188 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`=22284509 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042857, 0.0540129918741696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284509_12-04-2025_05_56_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284545, '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 = 22285521 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': 2747343, 'mtr_portfolio_id': 22285521, 'created_at': datetime.datetime(2025, 4, 12, 5, 57, 2), 'result': '0.04957224798549417', 'result_long': None, 'result_double': None}] Qualite : 0.04957224798549417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22285521 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285521_12-04-2025_05_57_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22285521 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_P22285521_12-04-2025_05_57_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285564, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285568, 'pht': 3726}}" where mtr_portfolio_id = 22285521 and dashboard_run_id = 1746188 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`=22285521 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042858, 0.04957224798549417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285521_12-04-2025_05_57_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285564, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285568, '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 = 22286062 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': 2747344, 'mtr_portfolio_id': 22286062, 'created_at': datetime.datetime(2025, 4, 12, 5, 57, 6), 'result': '0.05994306329030598', 'result_long': None, 'result_double': None}] Qualite : 0.05994306329030598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22286062 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286062_12-04-2025_05_57_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22286062 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_P22286062_12-04-2025_05_57_10.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286079, 'pht': 3726}}" where mtr_portfolio_id = 22286062 and dashboard_run_id = 1746188 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`=22286062 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042859, 0.05994306329030598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286062_12-04-2025_05_57_10.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286079, '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 = 22287027 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': 2747345, 'mtr_portfolio_id': 22287027, 'created_at': datetime.datetime(2025, 4, 12, 5, 57, 49), 'result': '0.05948618325921454', 'result_long': None, 'result_double': None}] Qualite : 0.05948618325921454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22287027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22287027_12-04-2025_05_57_53.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22287027 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_P22287027_12-04-2025_05_57_53.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22287049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22287050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22287051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22287052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22287053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22287054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22287055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22287056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22287057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22287058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22287059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22287060, 'pht': 3726}}" where mtr_portfolio_id = 22287027 and dashboard_run_id = 1746188 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`=22287027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042860, 0.05948618325921454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22287027_12-04-2025_05_57_53.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22287049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22287050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22287051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22287052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22287053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22287054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22287055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22287056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22287057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22287058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22287059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22287060, '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 = 22288233 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': 2747346, 'mtr_portfolio_id': 22288233, 'created_at': datetime.datetime(2025, 4, 12, 5, 57, 32), 'result': '0.03529151085803906', 'result_long': None, 'result_double': None}] Qualite : 0.03529151085803906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22288233 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288233_12-04-2025_05_57_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22288233 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_P22288233_12-04-2025_05_57_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288237, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288245, 'pht': 3726}}" where mtr_portfolio_id = 22288233 and dashboard_run_id = 1746188 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`=22288233 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042861, 0.03529151085803906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288233_12-04-2025_05_57_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288237, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288245, '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 = 22289888 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': 2747347, 'mtr_portfolio_id': 22289888, 'created_at': datetime.datetime(2025, 4, 12, 5, 58, 6), 'result': '0.06474270167972287', 'result_long': None, 'result_double': None}] Qualite : 0.06474270167972287 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22289888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289888_12-04-2025_05_58_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22289888 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_P22289888_12-04-2025_05_58_08.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289927, 'pht': 3726}}" where mtr_portfolio_id = 22289888 and dashboard_run_id = 1746188 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`=22289888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042862, 0.06474270167972287, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289888_12-04-2025_05_58_08.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289927, '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 = 22290790 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': 2747348, 'mtr_portfolio_id': 22290790, 'created_at': datetime.datetime(2025, 4, 12, 5, 58, 40), 'result': '0.055180636859073505', 'result_long': None, 'result_double': None}] Qualite : 0.055180636859073505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22290790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22290790_12-04-2025_05_58_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22290790 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_P22290790_12-04-2025_05_58_43.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22290792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22290793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22290794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22290795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22290796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22290797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22290798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22290799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22290800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22290801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290802, 'pht': 3726}}" where mtr_portfolio_id = 22290790 and dashboard_run_id = 1746188 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`=22290790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042863, 0.055180636859073505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22290790_12-04-2025_05_58_43.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22290792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22290793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22290794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22290795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22290796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22290797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22290798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22290799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22290800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22290801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290802, '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 = 22291494 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': 2747349, 'mtr_portfolio_id': 22291494, 'created_at': datetime.datetime(2025, 4, 12, 5, 59, 4), 'result': '0.0547176597963871', 'result_long': None, 'result_double': None}] Qualite : 0.0547176597963871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22291494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22291494_12-04-2025_05_59_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22291494 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_P22291494_12-04-2025_05_59_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22291495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22291496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22291497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22291498, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22291499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22291500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22291501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22291502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22291503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22291504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22291505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22291506, 'pht': 3726}}" where mtr_portfolio_id = 22291494 and dashboard_run_id = 1746188 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`=22291494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042864, 0.0547176597963871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22291494_12-04-2025_05_59_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22291495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22291496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22291497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22291498, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22291499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22291500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22291501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22291502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22291503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22291504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22291505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22291506, '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 = 22292559 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': 2747350, 'mtr_portfolio_id': 22292559, 'created_at': datetime.datetime(2025, 4, 12, 5, 59, 46), 'result': '0.047828083255591985', 'result_long': None, 'result_double': None}] Qualite : 0.047828083255591985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22292559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22292559_12-04-2025_05_59_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22292559 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_P22292559_12-04-2025_05_59_51.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22292585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22292586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22292587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22292588, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22292589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22292590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22292591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22292592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22292593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22292594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22292595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22292596, 'pht': 3726}}" where mtr_portfolio_id = 22292559 and dashboard_run_id = 1746188 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`=22292559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042865, 0.047828083255591985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22292559_12-04-2025_05_59_51.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22292585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22292586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22292587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22292588, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22292589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22292590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22292591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22292592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22292593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22292594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22292595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22292596, '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 = 22293155 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': 2747351, 'mtr_portfolio_id': 22293155, 'created_at': datetime.datetime(2025, 4, 12, 5, 59, 43), 'result': '0.04017649314517437', 'result_long': None, 'result_double': None}] Qualite : 0.04017649314517437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22293155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293155_12-04-2025_05_59_46.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22293155 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_P22293155_12-04-2025_05_59_46.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22293204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293240, 'pht': 3726}}" where mtr_portfolio_id = 22293155 and dashboard_run_id = 1746188 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`=22293155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042866, 0.04017649314517437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293155_12-04-2025_05_59_46.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22293204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293240, '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 = 22294513 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': 2747352, 'mtr_portfolio_id': 22294513, 'created_at': datetime.datetime(2025, 4, 12, 6, 0, 3), 'result': '0.04857860639144877', 'result_long': None, 'result_double': None}] Qualite : 0.04857860639144877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22294513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294513_12-04-2025_06_00_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22294513 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_P22294513_12-04-2025_06_00_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294588, 'pht': 3726}}" where mtr_portfolio_id = 22294513 and dashboard_run_id = 1746188 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`=22294513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042867, 0.04857860639144877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294513_12-04-2025_06_00_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294588, '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 = 22295582 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': 2747353, 'mtr_portfolio_id': 22295582, 'created_at': datetime.datetime(2025, 4, 12, 6, 0, 41), 'result': '0.05949147035326519', 'result_long': None, 'result_double': None}] Qualite : 0.05949147035326519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22295582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22295582_12-04-2025_06_00_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22295582 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_P22295582_12-04-2025_06_00_44.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295596, 'pht': 3726}}" where mtr_portfolio_id = 22295582 and dashboard_run_id = 1746188 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`=22295582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042868, 0.05949147035326519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22295582_12-04-2025_06_00_44.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295596, '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 = 22296376 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': 2747354, 'mtr_portfolio_id': 22296376, 'created_at': datetime.datetime(2025, 4, 12, 6, 1, 2), 'result': '0.034873380624830266', 'result_long': None, 'result_double': None}] Qualite : 0.034873380624830266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22296376 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296376_12-04-2025_06_01_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22296376 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_P22296376_12-04-2025_06_01_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22296402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296415, 'pht': 3726}}" where mtr_portfolio_id = 22296376 and dashboard_run_id = 1746188 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`=22296376 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042869, 0.034873380624830266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296376_12-04-2025_06_01_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22296402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296415, '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 = 22297260 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': 2747355, 'mtr_portfolio_id': 22297260, 'created_at': datetime.datetime(2025, 4, 12, 6, 1, 40), 'result': '0.0519872441561986', 'result_long': None, 'result_double': None}] Qualite : 0.0519872441561986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22297260 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22297260_12-04-2025_06_01_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22297260 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_P22297260_12-04-2025_06_01_44.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22297294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22297295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22297296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22297297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22297298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22297299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22297300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22297301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22297302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22297303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22297304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22297305, 'pht': 3726}}" where mtr_portfolio_id = 22297260 and dashboard_run_id = 1746188 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`=22297260 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042870, 0.0519872441561986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22297260_12-04-2025_06_01_44.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22297294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22297295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22297296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22297297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22297298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22297299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22297300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22297301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22297302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22297303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22297304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22297305, '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 = 22298172 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': 2747356, 'mtr_portfolio_id': 22298172, 'created_at': datetime.datetime(2025, 4, 12, 6, 2, 40), 'result': '0.05395640739040038', 'result_long': None, 'result_double': None}] Qualite : 0.05395640739040038 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22298172 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298172_12-04-2025_06_02_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22298172 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_P22298172_12-04-2025_06_02_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298254, 'pht': 3726}}" where mtr_portfolio_id = 22298172 and dashboard_run_id = 1746188 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`=22298172 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042871, 0.05395640739040038, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298172_12-04-2025_06_02_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298254, '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 = 22299599 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': 2747357, 'mtr_portfolio_id': 22299599, 'created_at': datetime.datetime(2025, 4, 12, 6, 3, 32), 'result': '0.03976730036594668', 'result_long': None, 'result_double': None}] Qualite : 0.03976730036594668 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22299599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22299599_12-04-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22299599 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_P22299599_12-04-2025_06_03_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22299612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22299613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22299614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22299615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22299616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22299617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22299618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22299619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22299620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22299621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22299622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22299623, 'pht': 3726}}" where mtr_portfolio_id = 22299599 and dashboard_run_id = 1746188 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`=22299599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042872, 0.03976730036594668, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22299599_12-04-2025_06_03_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22299612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22299613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22299614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22299615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22299616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22299617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22299618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22299619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22299620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22299621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22299622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22299623, '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 = 22301428 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': 2747358, 'mtr_portfolio_id': 22301428, 'created_at': datetime.datetime(2025, 4, 12, 6, 3, 59), 'result': '0.10880418623708288', 'result_long': None, 'result_double': None}] Qualite : 0.10880418623708288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22301428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22301428_12-04-2025_06_03_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22301428 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_P22301428_12-04-2025_06_03_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22301429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22301430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22301431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22301432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22301433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22301434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22301435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22301436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22301437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22301438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22301439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22301440, 'pht': 3726}}" where mtr_portfolio_id = 22301428 and dashboard_run_id = 1746188 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`=22301428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042873, 0.10880418623708288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22301428_12-04-2025_06_03_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22301429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22301430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22301431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22301432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22301433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22301434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22301435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22301436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22301437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22301438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22301439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22301440, '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 = 22302118 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': 2747359, 'mtr_portfolio_id': 22302118, 'created_at': datetime.datetime(2025, 4, 12, 6, 4, 33), 'result': '0.013492933064411428', 'result_long': None, 'result_double': None}] Qualite : 0.013492933064411428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22302118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22302118_12-04-2025_06_04_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22302118 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_P22302118_12-04-2025_06_04_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22302144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22302145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22302146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22302147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22302148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22302149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22302150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22302151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22302152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22302153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22302154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22302155, 'pht': 3726}}" where mtr_portfolio_id = 22302118 and dashboard_run_id = 1746188 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`=22302118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10042874, 0.013492933064411428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22302118_12-04-2025_06_04_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22302144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22302145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22302146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22302147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22302148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22302149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22302150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22302151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22302152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22302153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22302154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22302155, '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 (22250905,22251131,22251556,22251992,22252595,22253158,22253768,22254301,22255333,22255996,22256877,22257532,22258038,22258951,22259736,22262446,22263332,22264476,22264886,22266161,22267667,22268821,22270003,22271022,22272205,22273185,22276503,22276699,22277278,22277722,22278478,22278867,22279715,22280602,22281285,22282511,22283551,22284509,22285521,22286062,22287027,22288233,22289888,22290790,22291494,22292559,22293155,22294513,22295582,22296376,22297260,22298172,22299599,22301428,22302118) result : ((1351460406,), (1351462169,), (1351462213,), (1351462215,), (1351462217,), (1351462240,), (1351462246,), (1351462250,), (1351462252,), (1351462275,), (1351462278,), (1351462279,), (1351462283,), (1351462289,), (1351462329,), (1351462331,), (1351462336,), (1351462345,), (1351462357,), (1351462459,), (1351462553,), (1351462608,), (1351462665,), (1351462668,), (1351462672,), (1351462674,), (1351462809,), (1351462815,), (1351462818,), (1351462821,), (1351462835,), (1351463386,), (1351463512,), (1351463497,), (1351463500,), (1351463503,), (1351463507,), (1351463510,), (1351463553,), (1351463557,), (1351463561,), (1351463595,), (1351463597,), (1351463600,), (1351463604,), (1351463608,), (1351463633,), (1351463637,), (1351463640,), (1351463677,), (1351463680,), (1351463732,), (1351463735,), (1351463771,), (1351463942,), (1351463946,), (1351463948,), (1351463950,), (1351463954,), (1351463992,), (1351463994,), (1351463996,), (1351464058,), (1351464061,), (1351464080,), (1351464084,), (1351464093,), (1351464193,), (1351464196,), (1351464199,), (1351464201,), (1351464286,), (1351464376,), (1351464379,), (1351464380,), (1351464382,), (1351464419,), (1351464422,), (1351464460,), (1351464463,), (1351464466,), (1351464497,), (1351464504,), (1351464506,), (1351464509,), (1351464512,), (1351464549,), (1351464552,), (1351464557,), (1351464560,), (1351464790,), (1351464794,), (1351464710,), (1351464732,), (1351464759,), (1351464843,), (1351464848,), (1351464850,), (1351464880,), (1351464892,), (1351464894,), (1351464896,), (1351465014,), (1351465021,), (1351465022,), (1351465024,), (1351465026,), (1351465029,), (1351465122,), (1351465198,), (1351465308,), (1351465324,), (1351465408,), (1351465410,), (1351465413,), (1351465416,), (1351465419,), (1351465458,), (1351465461,), (1351465463,), (1351465464,), (1351465469,), (1351465473,), (1351465500,), (1351465503,), (1351465506,), (1351465591,), (1351465596,), (1351465656,), (1351465660,), (1351465663,), (1351465675,), (1351465685,), (1351465710,), (1351465712,), (1351465713,), (1351465714,), (1351465716,), (1351465739,), (1351465745,), (1351465747,), (1351465857,), (1351465862,), (1351465866,), (1351465871,), (1351465877,), (1351465886,), (1351465909,), (1351465911,), (1351465917,), (1351465946,), (1351466094,), (1351466430,), (1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,), (1351473387,), (1351473418,), (1351473445,), (1351473479,), (1351473505,), (1351473704,), (1351473726,), (1351473745,), (1351473875,), (1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,), (1351476592,), (1351476485,), (1351476571,), (1351476580,), (1351476714,), (1351476716,), (1351476718,), (1351476722,), (1351476791,), (1351476795,), (1351476798,), (1351476801,), (1351476804,), (1351476850,), (1351476893,), (1351476929,), (1351477086,), (1351477094,), (1351477100,), (1351477196,), (1351477483,), (1351477489,), (1351477492,), (1351477522,), (1351477528,), (1351477531,), (1351477535,), (1351477539,), (1351477598,), (1351477602,), (1351477604,), (1351477607,), (1351477722,), (1351477724,), (1351477793,), (1351477815,), (1351477819,), (1351477822,), (1351477906,), (1351477908,), (1351477913,), (1351477914,), (1351477917,), (1351477947,), (1351477950,), (1351477956,), (1351478020,), (1351478207,), (1351478208,), (1351478210,), (1351478231,), (1351478269,), (1351478272,), (1351478444,), (1351478446,), (1351478448,), (1351478455,), (1351478627,), (1351478628,), (1351478638,), (1351478644,), (1351478658,), (1351478703,), (1351478889,), (1351478859,), (1351478874,), (1351478886,), (1351479063,), (1351479103,), (1351479119,), (1351479122,), (1351479124,), (1351479217,), (1351479225,), (1351479245,), (1351479251,), (1351479421,), (1351479445,), (1351479456,), (1351480256,), (1351480572,), (1351480636,), (1351480639,), (1351480881,), (1351480886,), (1351480892,), (1351480899,), (1351480910,), (1351480922,), (1351480925,), (1351480929,), (1351480932,), (1351480936,), (1351480951,), (1351480943,), (1351480948,), (1351480999,), (1351481005,), (1351481011,), (1351481016,), (1351481086,), (1351481093,), (1351481098,), (1351481105,), (1351481110,), (1351481115,), (1351481153,), (1351481159,), (1351481165,), (1351481175,), (1351481183,), (1351482053,), (1351482140,), (1351482166,), (1351482208,), (1351482210,), (1351482214,), (1351482221,), (1351482259,), (1351482365,), (1351482716,), (1351482753,), (1351482797,), (1351482832,), (1351482870,), (1351483151,), (1351483180,), (1351483223,), (1351483268,), (1351483315,), (1351483628,), (1351483654,), (1351483675,), (1351484345,), (1351485486,), (1351485558,), (1351486311,), (1351486347,), (1351486712,), (1351486736,), (1351486753,), (1351487917,), (1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,), (1351492430,), (1351492425,), (1351492562,), (1351492571,), (1351492575,), (1351492582,), (1351492586,), (1351492612,), (1351492615,), (1351492630,), (1351492634,), (1351492638,), (1351492751,), (1351492779,), (1351492782,), (1351492785,), (1351492921,), (1351492934,), (1351492957,), (1351493001,), (1351493032,), (1351493040,), (1351493200,), (1351493234,), (1351493307,), (1351493331,), (1351493431,), (1351493445,), (1351493451,), (1351493471,), (1351493474,), (1351493480,), (1351493536,), (1351493554,), (1351493560,), (1351493564,), (1351493722,), (1351493746,), (1351493755,), (1351493775,), (1351493793,), (1351493804,), (1351493857,), (1351493860,), (1351493863,), (1351493884,), (1351493920,), (1351493946,), (1351494136,), (1351494138,), (1351494210,), (1351494215,), (1351494255,), (1351494342,), (1351494347,), (1351494351,), (1351494354,), (1351494359,), (1351494374,), (1351494533,), (1351494546,), (1351494562,), (1351494605,), (1351494612,), (1351494838,), (1351494876,), (1351494956,), (1351495499,), (1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,), (1351498220,), (1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,), (1351502384,), (1351502387,), (1351502454,), (1351502532,), (1351502948,), (1351503071,), (1351503087,), (1351503206,), (1351503175,), (1351503180,), (1351503191,), (1351503202,), (1351503256,), (1351503260,), (1351503266,), (1351503274,), (1351503443,), (1351503480,), (1351503514,), (1351503726,), (1351503744,), (1351503755,), (1351503772,), (1351503788,), (1351503935,), (1351504031,), (1351504042,), (1351504051,), (1351504063,), (1351504128,), (1351504134,), (1351504143,), (1351504183,), (1351504188,), (1351504262,), (1351504270,), (1351504397,), (1351504401,), (1351504404,), (1351504462,), (1351504467,), (1351504478,), (1351504480,), (1351504483,), (1351504548,), (1351504554,), (1351504558,), (1351504561,), (1351504563,), (1351504579,), (1351504776,), (1351504780,), (1351504800,), (1351504835,), (1351504853,), (1351504882,), (1351504988,), (1351505014,), (1351505018,), (1351505020,), (1351505112,), (1351505159,), (1351505165,), (1351505169,), (1351505174,), (1351505181,), (1351505208,), (1351505215,), (1351505223,), (1351505475,), (1351505486,), (1351505501,), (1351505536,), (1351505539,), (1351505597,), (1351505582,), (1351505585,), (1351505590,), (1351505593,), (1351505673,), (1351505676,), (1351505680,), (1351505683,), (1351505701,), (1351505718,), (1351505757,), (1351505762,), (1351505766,), (1351505769,), (1351505827,), (1351505856,), (1351505887,), (1351505954,), (1351505956,), (1351506078,), (1351506085,), (1351506095,), (1351506098,), (1351506102,), (1351506106,), (1351506120,), (1351506125,), (1351506129,), (1351506213,), (1351506218,), (1351506225,), (1351506227,), (1351506229,), (1351506283,), (1351506320,), (1351506330,), (1351506347,), (1351506530,), (1351506556,), (1351506563,), (1351506644,), (1351506670,), (1351506674,), (1351506686,), (1351506752,), (1351506755,), (1351506760,), (1351506777,), (1351506906,), (1351506909,), (1351506910,), (1351506914,), (1351506916,), (1351507025,), (1351507028,), (1351507030,), (1351507033,), (1351507039,), (1351507058,), (1351507062,), (1351507063,), (1351507070,), (1351507075,), (1351507079,), (1351507123,), (1351507140,), (1351507169,), (1351507187,), (1351507358,), (1351507274,), (1351507307,), (1351507328,), (1351507329,), (1351507335,), (1351507409,), (1351507416,), (1351507419,), (1351507422,), (1351507425,), (1351507514,), (1351507534,), (1351507559,), (1351507741,), (1351507743,), (1351507745,), (1351507751,), (1351507762,), (1351507774,), (1351507802,), (1351507806,), (1351507808,), (1351507810,), (1351507813,), (1351507980,), (1351508011,), (1351508052,), (1351508412,), (1351508434,), (1351508455,), (1351508481,), (1351508603,), (1351508606,), (1351508609,), (1351508633,), (1351508907,), (1351509003,), (1351509052,), (1351509089,), (1351509452,), (1351509487,), (1351509498,), (1351509500,), (1351509515,), (1351509538,), (1351509720,), (1351509740,), (1351509746,), (1351509764,), (1351509777,), (1351509785,), (1351509885,), (1351509887,), (1351509895,), (1351509899,), (1351510051,), (1351510071,), (1351510097,), (1351510401,), (1351510454,), (1351510514,), (1351510551,), (1351510698,), (1351510754,), (1351510778,), (1351510891,), (1351534256,), (1351534804,), (1351534823,), (1351534876,), (1351534927,), (1351534975,), (1351535372,), (1351535400,), (1351535990,), (1351536036,), (1351536074,), (1351536086,), (1351536114,), (1351536677,), (1351536714,), (1351536766,), (1351536820,), (1351536873,), (1351536909,), (1351537242,), (1351537284,), (1351537327,), (1351537377,), (1351538077,), (1351538134,), (1351538172,), (1351538245,), (1351538320,), (1351538386,), (1351538954,), (1351539038,), (1351539085,), (1351539159,), (1351539346,), (1351539377,), (1351539426,), (1351539455,), (1351539484,), (1351539634,), (1351539637,), (1351539642,), (1351539648,), (1351539865,), (1351539900,), (1351539940,), (1351539983,), (1351540011,), (1351540224,), (1351540247,), (1351540513,), (1351540536,), (1351540560,), (1351540580,), (1351540601,), (1351540695,), (1351540697,), (1351540699,), (1351540705,), (1351540709,), (1351540998,), (1351540881,), (1351540907,), (1351541128,), (1351541205,), (1351541250,), (1351541471,), (1351541474,), (1351541481,), (1351541542,), (1351542021,), (1351542055,), (1351542699,), (1351542707,), (1351543161,), (1351543309,), (1351543617,), (1351543633,), (1351543639,), (1351543878,), (1351543910,), (1351543920,), (1351543939,), (1351544323,), (1351544353,), (1351544939,), (1351544994,), (1351545545,), (1351545641,), (1351545696,), (1351545761,), (1351545779,), (1351545841,), (1351546250,), (1351546309,), (1351546396,), (1351546466,), (1351546538,), (1351546593,), (1351546821,), (1351546855,), (1351546910,), (1351547824,), (1351547885,), (1351547973,), (1351548108,), (1351548173,), (1351548245,), (1351548772,), (1351548638,), (1351548682,), (1351548701,), (1351548743,), (1351548936,), (1351549049,), (1351549789,), (1351551455,), (1351551547,), (1351551573,), (1351551747,), (1351551802,), (1351551843,), (1351551910,), (1351552300,), (1351552346,), (1351552844,), (1351552873,), (1351552927,), (1351552976,), (1351553493,), (1351553563,), (1351553617,), (1351553649,), (1351553675,), (1351554396,), (1351554474,), (1351554527,), (1351554608,), (1351555046,), (1351555093,), (1351555151,), (1351555205,), (1351555254,), (1351555289,), (1351555554,), (1351555593,), (1351555655,), (1351555708,), (1351555767,), (1351556418,), (1351556533,), (1351556627,), (1351557382,), (1351557418,), (1351557460,), (1351557492,), (1351557532,), (1351557570,), (1351558204,), (1351558361,), (1351558394,), (1351558450,), (1351558495,), (1351558545,), (1351558580,), (1351558872,), (1351558927,), (1351557930,), (1351558014,), (1351558059,), (1351558114,), (1351558192,), (1351558677,), (1351558723,), (1351558770,), (1351558805,), (1351559096,), (1351559169,), (1351559296,), (1351559416,), (1351559461,), (1351559988,), (1351560046,), (1351560157,), (1351560219,), (1351560941,), (1351560986,), (1351561150,), (1351561248,), (1351561996,), (1351562062,), (1351562116,), (1351562246,), (1351562377,), (1351562752,), (1351562837,), (1351562868,), (1351562921,), (1351562962,), (1351563278,), (1351563322,), (1351563392,), (1351563446,), (1351563915,), (1351563960,), (1351564005,), (1351564031,), (1351564055,), (1351564089,), (1351564211,), (1351564238,), (1351564255,), (1351564265,), (1351564490,), (1351564529,), (1351564569,), (1351564597,), (1351564609,), (1351564706,), (1351564984,), (1351565025,), (1351565033,), (1351565120,), (1351565442,), (1351565542,), (1351565628,), (1351565689,), (1351565764,), (1351565853,), (1351566556,), (1351566630,), (1351566713,), (1351567028,), (1351567132,), (1351567246,), (1351567637,), (1351567670,), (1351567778,), (1351567828,), (1351568870,), (1351568286,), (1351568439,), (1351568568,), (1351568728,), (1351568826,), (1351569010,), (1351569051,), (1351569080,), (1351569116,), (1351569152,), (1351569177,), (1351569367,), (1351569621,), (1351569763,), (1351570052,), (1351570128,), (1351570192,), (1351570256,), (1351570446,), (1351570552,), (1351570909,), (1351571056,), (1351571134,), (1351571233,), (1351571262,), (1351571811,), (1351572049,), (1351572100,), (1351572229,), (1351572252,), (1351572417,), (1351572430,), (1351572520,), (1351572575,), (1351572624,), (1351572695,), (1351573034,), (1351573084,), (1351573150,), (1351573596,), (1351573601,), (1351573605,), (1351573611,), (1351573641,), (1351573674,), (1351573894,), (1351573921,), (1351573934,), (1351574141,), (1351574235,), (1351574260,), (1351574289,), (1351574318,), (1351575241,), (1351575339,), (1351575858,), (1351576637,), (1351576421,), (1351576499,), (1351576560,), (1351576615,), (1351577069,), (1351577136,), (1351577202,), (1351577384,), (1351577726,), (1351577735,), (1351577743,), (1351577782,), (1351577838,), (1351577986,), (1351577988,), (1351577991,), (1351578136,), (1351578187,), (1351578229,), (1351578261,), (1351578723,), (1351578750,), (1351578788,), (1351578832,), (1351578885,), (1351579403,), (1351579480,), (1351579519,), (1351579543,), (1351579602,), (1351579843,), (1351579956,), (1351580385,), (1351580450,), (1351580473,), (1351580514,), (1351580547,), (1351580861,), (1351580949,), (1351581036,), (1351581152,), (1351581219,), (1351581611,), (1351581637,), (1351581694,), (1351582173,), (1351582263,), (1351582327,), (1351582372,), (1351582408,), (1351582780,), (1351582832,), (1351582882,), (1351582935,), (1351582977,), (1351582996,), (1351583607,), (1351583626,), (1351583649,), (1351584028,), (1351583978,), (1351584008,), (1351584017,), (1351584167,), (1351584195,), (1351584227,), (1351584253,), (1351584672,), (1351584685,), (1351584712,), (1351584741,), (1351584797,), (1351584879,), (1351585222,), (1351585364,), (1351585438,), (1351585505,), (1351585561,), (1351585645,), (1351585685,), (1351586072,), (1351586121,), (1351586150,), (1351586182,), (1351586278,), (1351586448,), (1351586465,), (1351586486,), (1351586521,), (1351586569,), (1351586638,), (1351587043,), (1351587116,), (1351587148,), (1351587179,), (1351587239,), (1351587833,), (1351587950,), (1351587992,), (1351588371,), (1351588463,), (1351588535,), (1351588617,), (1351588734,), (1351588839,), (1351589065,), (1351589123,), (1351589180,), (1351589241,), (1351589328,), (1351589408,), (1351589642,), (1351589672,), (1351589926,), (1351589954,), (1351589979,), (1351590010,), (1351590042,), (1351590264,), (1351590297,), (1351590321,), (1351590341,), (1351590368,), (1351590418,), (1351590553,), (1351590580,), (1351590618,), (1351591111,), (1351591000,), (1351591060,), (1351591088,), (1351591437,), (1351591451,), (1351591483,), (1351591518,), (1351591554,), (1351591819,), (1351591843,), (1351591893,), (1351591926,), (1351592438,), (1351592506,), (1351592555,), (1351592632,), (1351592702,), (1351592764,), (1351593193,), (1351593237,), (1351593315,), (1351593988,), (1351594083,), (1351594243,), (1351594397,), (1351594598,), (1351595374,), (1351595529,), (1351595580,), (1351595636,), (1351595700,), (1351595721,), (1351595820,), (1351595875,), (1351595902,), (1351595933,), (1351596076,), (1351596081,), (1351596096,), (1351596137,), (1351596159,), (1351596187,), (1351596519,), (1351596543,), (1351596566,), (1351596668,), (1351597643,), (1351597725,), (1351597763,), (1351597800,), (1351598164,), (1351598174,), (1351598187,), (1351598201,), (1351598228,), (1351598279,), (1351598517,), (1351598558,), (1351598621,), (1351598642,), (1351598683,), (1351598708,), (1351599172,), (1351599262,), (1351599310,), (1351599466,), (1351600367,), (1351600413,), (1351600475,), (1351600524,), (1351600591,), (1351601309,), (1351600855,), (1351601011,), (1351601082,), (1351601160,), (1351601238,), (1351601450,), (1351601457,), (1351601483,), (1351601961,), (1351602068,), (1351603089,), (1351603150,), (1351603175,), (1351603238,), (1351603832,), (1351603938,), (1351604094,), (1351604099,), (1351604252,), (1351604594,), (1351604734,), (1351604851,), (1351604909,), (1351605060,), (1351606414,), (1351606445,), (1351606484,), (1351606779,), (1351606863,), (1351606926,), (1351607162,), (1351607247,), (1351607490,), (1351607710,), (1351607732,), (1351607802,), (1351608622,), (1351608708,), (1351608820,), (1351609235,), (1351609112,), (1351609149,), (1351609178,), (1351609544,), (1351609602,), (1351609653,), (1351610333,), (1351610363,), (1351610875,), (1351611035,), (1351611040,), (1351611144,), (1351611153,), (1351611248,), (1351611274,), (1351611332,), (1351611425,), (1351611491,), (1351611759,), (1351611792,), (1351611866,), (1351611954,), (1351612052,), (1351612240,), (1351612272,), (1351612308,), (1351612329,), (1351612357,), (1351612389,), (1351612396,), (1351612515,), (1351612523,), (1351612641,), (1351612648,), (1351612801,), (1351613059,), (1351613138,), (1351613567,), (1351613593,), (1351613652,), (1351613689,), (1351613716,), (1351613780,), (1351614016,), (1351614083,), (1351614650,), (1351614742,), (1351614807,), (1351614890,), (1351614988,), (1351615091,), (1351615530,), (1351615591,), (1351615691,), (1351616490,), (1351616543,), (1351616564,), (1351616604,), (1351617024,), (1351617868,), (1351618706,), (1351618910,), (1351618961,), (1351619374,), (1351619220,), (1351619256,), (1351619288,), (1351619292,), (1351619332,), (1351619584,), (1351619610,), (1351619637,), (1351619662,), (1351619684,), (1351619962,), (1351619993,), (1351620023,), (1351620191,), (1351620205,), (1351620221,), (1351620259,), (1351620809,), (1351620877,), (1351620902,), (1351621256,), (1351621315,), (1351621400,), (1351621431,), (1351621751,), (1351621784,), (1351621851,), (1351621895,), (1351621918,), (1351621944,), (1351622065,), (1351622103,), (1351622155,), (1351622423,), (1351622475,), (1351622518,), (1351622544,), (1351622598,), (1351622890,), (1351622908,), (1351622920,), (1351622936,), (1351622957,), (1351623385,), (1351623454,), (1351623524,), (1351623563,), (1351623621,), (1351623826,), (1351659108,), (1351659083,), (1351659292,), (1351659508,), (1351659547,), (1351659554,), (1351659622,), (1351659624,), (1351659627,), (1351659675,), (1351659699,), (1351659703,), (1351660249,), (1351660251,), (1351660268,), (1351660288,), (1351660359,), (1351660534,), (1351660558,), (1351660599,), (1351660634,), (1351660727,), (1351660731,), (1351660734,), (1351660746,), (1351660953,), (1351660983,), (1351661013,), (1351661047,), (1351661073,), (1351661409,), (1351661301,), (1351661308,), (1351661317,), (1351662910,), (1351662914,), (1351662970,), (1351662973,), (1351663181,), (1351663759,), (1351663781,), (1351663872,), (1351663893,), (1351663906,), (1351664122,), (1351664150,), (1351664169,), (1351664206,), (1351664298,), (1351664461,), (1351664486,), (1351664510,), (1351664536,), (1351664803,), (1351664821,), (1351664845,), (1351664867,), (1351665220,), (1351665282,), (1351665305,), (1351665361,), (1351665426,), (1351665806,), (1351665857,), (1351665901,), (1351665943,), (1351666409,), (1351666476,), (1351666538,), (1351667097,), (1351667164,), (1351667810,), (1351667874,), (1351667924,), (1351668246,), (1351668292,), (1351668317,), (1351668356,), (1351668386,), (1351669427,), (1351669515,), (1351669638,), (1351669722,), (1351670632,), (1351670461,), (1351670516,), (1351670562,), (1351670832,), (1351670859,), (1351670895,), (1351671218,), (1351671264,), (1351671294,), (1351671338,), (1351671375,), (1351671579,), (1351671609,), (1351671634,), (1351671673,), (1351672180,), (1351672230,), (1351672277,), (1351672329,), (1351672698,), (1351672726,), (1351672767,), (1351672807,), (1351672868,), (1351673424,), (1351673475,), (1351673544,), (1351673619,), (1351673659,), (1351674031,), (1351674065,), (1351674091,), (1351674323,), (1351674329,), (1351674332,), (1351674518,), (1351674551,), (1351674582,), (1351674614,), (1351674897,), (1351674902,), (1351674906,), (1351674910,), (1351675080,), (1351675114,), (1351675135,), (1351675206,), (1351675309,), (1351675612,), (1351675642,), (1351675681,), (1351675714,), (1351676790,), (1351676924,), (1351676946,), (1351676980,), (1351677002,), (1351677383,), (1351677400,), (1351677405,), (1351677440,), (1351677511,), (1351677518,), (1351677637,), (1351677626,), (1351677631,), (1351677839,), (1351677856,), (1351677876,), (1351677910,), (1351677942,), (1351677971,), (1351678104,), (1351678131,), (1351678144,), (1351678148,), (1351678155,), (1351678160,), (1351678288,), (1351678296,), (1351678310,), (1351678384,), (1351678595,), (1351678616,), (1351678635,), (1351678661,), (1351678687,), (1351678955,), (1351678981,), (1351679007,), (1351679035,), (1351679065,), (1351679118,), (1351679256,), (1351679276,), (1351679279,), (1351679283,), (1351679317,), (1351679321,), (1351679352,), (1351679376,), (1351680183,), (1351681224,), (1351681311,), (1351681387,), (1351681415,), (1351681615,), (1351681640,), (1351681686,), (1351681693,), (1351681739,), (1351682480,), (1351682539,), (1351682620,), (1351682871,), (1351682924,), (1351682933,), (1351682955,), (1351682980,), (1351683007,), (1351684076,), (1351684049,), (1351684368,), (1351685083,), (1351685105,), (1351685208,), (1351685213,), (1351685217,), (1351685227,), (1351685332,), (1351685337,), (1351685340,), (1351685346,), (1351685356,), (1351685465,), (1351685470,), (1351685476,), (1351685481,), (1351685729,), (1351685780,), (1351685818,), (1351685860,), (1351686426,), (1351686501,), (1351686548,), (1351686594,), (1351686643,), (1351686685,), (1351687016,), (1351687073,), (1351687080,), (1351687111,), (1351687135,), (1351687217,), (1351687500,), (1351687852,), (1351687905,), (1351687961,), (1351688978,), (1351689083,), (1351689112,), (1351689137,), (1351689167,), (1351689404,), (1351689473,), (1351689529,), (1351689607,), (1351689668,), (1351690598,), (1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,), (1351699053,), (1351699086,), (1351699118,), (1351699129,), (1351699176,), (1351699180,), (1351699293,), (1351699255,), (1351699282,), (1351699288,), (1351699527,), (1351699613,), (1351699739,), (1351699836,), (1351699865,), (1351700243,), (1351700276,), (1351700296,), (1351700311,), (1351700333,), (1351700667,), (1351700718,), (1351700755,), (1351700799,), (1351700878,), (1351700921,), (1351701412,), (1351701464,), (1351701510,), (1351701559,), (1351701815,), (1351701862,), (1351701911,), (1351701958,), (1351702010,), (1351702064,), (1351702690,), (1351702797,), (1351702917,), (1351703016,), (1351703274,), (1351703382,), (1351703474,), (1351703560,), (1351703604,), (1351703681,), (1351703949,), (1351704012,), (1351704047,), (1351704058,), (1351704086,), (1351704139,), (1351704408,), (1351704448,), (1351704510,), (1351704554,), (1351704978,), (1351705056,), (1351705111,), (1351705205,), (1351705258,), (1351705282,), (1351705451,), (1351705495,), (1351705555,), (1351705609,), (1351705641,), (1351705952,), (1351705999,), (1351706016,), (1351706574,), (1351706652,), (1351706728,), (1351706809,), (1351707243,), (1351707319,), (1351707380,), (1351708081,), (1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,), (1351713512,), (1351713588,), (1351713783,), (1351713821,), (1351713878,), (1351713946,), (1351714218,), (1351714265,), (1351714324,), (1351714393,), (1351714815,), (1351714854,), (1351714885,), (1351714912,), (1351716314,), (1351716081,), (1351716122,), (1351716165,), (1351716198,), (1351716253,), (1351716368,), (1351716400,), (1351716424,), (1351717288,), (1351717316,), (1351717424,), (1351717487,), (1351717552,), (1351718008,), (1351718061,), (1351718122,), (1351718144,), (1351718735,), (1351718757,), (1351718844,), (1351718937,), (1351719019,), (1351719948,), (1351720014,), (1351720052,), (1351720641,), (1351720655,), (1351720795,), (1351720873,), (1351720959,), (1351721011,), (1351721340,), (1351721387,), (1351721424,), (1351721460,), (1351721674,), (1351721685,), (1351721694,), (1351721722,), (1351722192,), (1351722252,), (1351722341,), (1351722403,), (1351722501,), (1351722610,), (1351723262,), (1351723442,), (1351723477,), (1351723512,), (1351723571,), (1351723636,), (1351723951,), (1351724000,), (1351724080,), (1351724115,), (1351724167,), (1351724358,), (1351724378,), (1351724405,), (1351724442,), (1351724472,), (1351724517,), (1351724690,), (1351725732,), (1351725780,), (1351725807,), (1351726814,), (1351726345,), (1351726519,), (1351726725,), (1351727310,), (1351727480,), (1351727527,), (1351727582,), (1351727625,), (1351727662,), (1351727882,), (1351727898,), (1351727928,), (1351728106,), (1351728423,), (1351728453,), (1351728539,), (1351728578,), (1351728873,), (1351728876,), (1351728880,), (1351728885,), (1351728912,), (1351729211,), (1351729240,), (1351729266,), (1351729356,), (1351729404,), (1351729785,), (1351729832,), (1351729885,), (1351729921,), (1351729972,), (1351730228,), (1351730230,), (1351730233,), (1351730261,), (1351730269,), (1351730274,), (1351730454,), (1351730486,), (1351730522,), (1351730550,), (1351730934,), (1351730943,), (1351730982,), (1351730998,), (1351731010,), (1351731183,), (1351731234,), (1351731239,), (1351731247,), (1351731254,), (1351731263,), (1351731449,), (1351731485,), (1351731535,), (1351731589,), (1351732361,), (1351732473,), (1351732539,), (1351732657,), (1351732791,), (1351733398,), (1351733427,), (1351733470,), (1351733525,), (1351733557,), (1351733634,), (1351733783,), (1351733827,), (1351733873,), (1351733965,), (1351734062,), (1351734161,), (1351734481,), (1351734283,), (1351734306,), (1351734334,), (1351734378,), (1351734435,), (1351734711,), (1351734717,), (1351734720,), (1351734723,), (1351734728,), (1351734924,), (1351734951,), (1351734987,), (1351735012,), (1351735090,), (1351735304,), (1351735325,), (1351735328,), (1351735335,), (1351735355,), (1351735659,), (1351735694,), (1351735762,), (1351735810,), (1351736283,), (1351736304,), (1351736330,), (1351736352,), (1351736369,), (1351736644,), (1351736655,), (1351736673,), (1351736692,), (1351736722,), (1351736739,), (1351736792,), (1351736855,), (1351736939,), (1351737019,), (1351737240,), (1351737299,), (1351737524,), (1351737539,), (1351737567,), (1351737610,), (1351737620,), (1351737623,), (1351737742,), (1351737791,), (1351737871,), (1351737931,), (1351738383,), (1351738461,), (1351738554,), (1351738665,), (1351738762,), (1351738868,), (1351739239,), (1351739266,), (1351739280,), (1351739342,), (1351739388,), (1351739420,), (1351739791,), (1351739818,), (1351739865,), (1351739905,), (1351739918,), (1351740248,), (1351740284,), (1351740310,), (1351740351,), (1351740394,), (1351740475,), (1351740860,), (1351740890,), (1351740934,), (1351740963,), (1351741005,), (1351741410,), (1351741318,), (1351741331,), (1351741367,), (1351741381,), (1351741403,), (1351741475,), (1351741482,), (1351741492,), (1351741869,), (1351741881,), (1351741888,), (1351741891,), (1351741906,), (1351742225,), (1351742230,), (1351742245,), (1351742320,), (1351742513,), (1351742524,), (1351742597,), (1351742620,), (1351742635,), (1351742661,), (1351742884,), (1351742907,), (1351742935,), (1351742963,), (1351742990,), (1351743019,), (1351743376,), (1351743404,), (1351743785,), (1351743831,), (1351743874,), (1351743926,), (1351743960,), (1351744244,), (1351744310,), (1351744374,), (1351744433,), (1351744476,), (1351744508,), (1351744717,), (1351744742,), (1351744763,), (1351745106,), (1351745133,), (1351745159,), (1351745183,), (1351745215,), (1351745238,), (1351745494,), (1351745518,), (1351745625,), (1351745665,), (1351745713,), (1351746061,), (1351748691,), (1351748555,), (1351748594,), (1351748644,), (1351749208,), (1351749256,), (1351749308,), (1351749628,), (1351749641,), (1351749677,), (1351749706,), (1351750083,), (1351750103,), (1351750123,), (1351750152,), (1351750176,), (1351750199,), (1351750450,), (1351750496,), (1351750531,), (1351750536,), (1351750539,), (1351750553,), (1351750634,), (1351750636,), (1351750638,), (1351750644,), (1351750646,), (1351750655,), (1351751122,), (1351751196,), (1351751272,), (1351751337,), (1351751410,), (1351751524,), (1351751883,), (1351752009,), (1351752057,), (1351752149,), (1351752184,), (1351752216,), (1351752355,), (1351752394,), (1351752422,), (1351752453,), (1351752492,), (1351752542,), (1351752666,), (1351752667,), (1351752718,), (1351752730,), (1351752748,), (1351752839,), (1351752844,), (1351752926,), (1351752927,), (1351752976,), (1351752977,), (1351753083,), (1351753330,), (1351753484,), (1351753633,), (1351753694,), (1351753739,), (1351753787,), (1351753920,), (1351753976,), (1351754007,), (1351754113,), (1351754216,), (1351754262,), (1351754435,), (1351754474,), (1351754518,), (1351754573,), (1351754655,), (1351754708,), (1351754941,), (1351755014,), (1351755053,), (1351755056,), (1351755098,), (1351755227,), (1351755256,), (1351755275,), (1351755313,), (1351756130,), (1351756293,), (1351756528,), (1351756654,), (1351756660,), (1351756809,), (1351756732,), (1351756747,), (1351756773,), (1351757204,), (1351757349,), (1351757597,), (1351757820,), (1351757981,), (1351758036,), (1351758076,), (1351758109,), (1351758128,), (1351758155,), (1351758293,), (1351758326,), (1351758345,), (1351758386,), (1351758412,), (1351759054,), (1351759181,), (1351759368,), (1351760057,), (1351760086,), (1351760110,), (1351760122,), (1351760179,), (1351760273,), (1351760371,), (1351760430,), (1351760501,), (1351760522,), (1351760534,), (1351760808,), (1351760838,), (1351761164,), (1351761182,), (1351761204,), (1351761233,), (1351761281,), (1351761325,), (1351761653,), (1351761722,), (1351761756,), (1351761810,), (1351761852,), (1351762161,), (1351762172,), (1351762179,), (1351762435,), (1351762467,), (1351762470,), (1351762850,), (1351762882,), (1351762890,), (1351762894,), (1351762915,), (1351763219,), (1351763231,), (1351763249,), (1351763256,), (1351763263,), (1351763276,), (1351763282,), (1351763302,), (1351763427,), (1351763343,), (1351763368,), (1351763403,), (1351763536,), (1351763540,), (1351763545,), (1351763549,), (1351763569,), (1351763619,), (1351763678,), (1351763684,), (1351763710,), (1351763714,), (1351763730,), (1351763793,), (1351763796,), (1351763800,), (1351763803,), (1351763955,), (1351763962,), (1351764046,), (1351764095,), (1351764160,), (1351764394,), (1351764414,), (1351764441,), (1351764450,), (1351764466,), (1351764489,), (1351764589,), (1351764590,), (1351764592,), (1351764639,), (1351764646,), (1351764648,), (1351764650,), (1351764675,), (1351764690,), (1351764695,), (1351764704,), (1351764972,), (1351765011,), (1351765164,), (1351765270,), (1351765306,), (1351765386,), (1351765566,), (1351765618,), (1351765638,), (1351765656,), (1351765678,), (1351765952,), (1351765989,), (1351766007,), (1351766020,), (1351766134,), (1351766170,), (1351766191,), (1351766202,), (1351766225,), (1351766607,), (1351766644,), (1351773604,), (1351768584,), (1351773517,), (1351774211,), (1351774270,), (1351774339,), (1351774517,), (1351775439,), (1351775495,), (1351775567,), (1351775613,), (1351775647,), (1351775678,), (1351775940,), (1351776019,), (1351776078,), (1351776215,), (1351776316,), (1351776356,), (1351776605,), (1351776640,), (1351776953,), (1351776983,), (1351777000,), (1351777045,), (1351777075,), (1351777115,), (1351777487,), (1351777524,), (1351777575,), (1351777621,), (1351777650,), (1351778305,), (1351798723,), (1351799618,), (1351799816,), (1351800331,), (1351800505,), (1351800526,), (1351800564,), (1351800671,), (1351801009,), (1351801035,), (1351801082,), (1351801528,), (1351801600,), (1351801637,), (1351801684,), (1351801713,), (1351801902,), (1351801940,), (1351801979,), (1351802219,), (1351802269,), (1351802308,), (1351802337,), (1351802378,), (1351802512,), (1351802519,), (1351802530,), (1351802542,), (1351802546,), (1351802665,), (1351802724,), (1351802769,), (1351803454,), (1351803517,), (1351803591,), (1351803631,), (1351803696,), (1351803751,), (1351803955,), (1351804038,), (1351804115,), (1351804168,), (1351804219,), (1351804481,), (1351804529,), (1351804612,), (1351805053,), (1351805095,), (1351805197,), (1351805225,), (1351805254,), (1351805361,), (1351805380,), (1351805948,), (1351805811,), (1351805879,), (1351806466,), (1351806474,), (1351806528,), (1351806599,), (1351807009,), (1351807057,), (1351807126,), (1351807644,), (1351807780,), (1351807836,), (1351807895,), (1351807942,), (1351808126,), (1351808480,), (1351808541,), (1351808577,), (1351808625,), (1351808769,), (1351809286,), (1351809351,), (1351809400,), (1351809462,), (1351809523,), (1351809619,), (1351810171,), (1351810228,), (1351810293,), (1351810347,), (1351811002,), (1351811119,), (1351811262,), (1351811368,), (1351811532,), (1351812258,), (1351812361,), (1351812476,), (1351812696,), (1351812852,), (1351812955,), (1351813120,), (1351813242,), (1351813388,), (1351813514,), (1351813550,), (1351813654,), (1351814019,), (1351814088,), (1351814164,), (1351814261,), (1351814618,), (1351814654,), (1351814934,), (1351815047,), (1351815220,), (1351815327,), (1351815459,), (1351815606,), (1351816119,), (1351816283,), (1351816416,), (1351816475,), (1351816597,), (1351816728,), (1351817331,), (1351817523,), (1351817706,), (1351818624,), (1351818732,), (1351818793,), (1351818866,), (1351818919,), (1351818966,), (1351819977,), (1351819583,), (1351819651,), (1351819709,), (1351819780,), (1351819897,), (1351820320,), (1351820412,), (1351820437,), (1351820458,), (1351820880,), (1351820942,), (1351821000,), (1351821039,), (1351821105,), (1351821649,), (1351821680,), (1351821864,), (1351821960,), (1351822045,), (1351822111,), (1351822491,), (1351822547,), (1351822592,), (1351822955,), (1351822996,), (1351823021,), (1351823071,), (1351823114,), (1351823582,), (1351823612,), (1351823684,), (1351823710,), (1351823774,), (1351823805,), (1351824041,), (1351824111,), (1351824160,), (1351824961,), (1351825028,), (1351825086,), (1351825160,), (1351825213,), (1351825251,), (1351825515,), (1351825550,), (1351825577,), (1351825616,), (1351826016,), (1351826072,), (1351826100,), (1351826131,), (1351826171,), (1351826211,), (1351826398,), (1351826406,), (1351826412,), (1351826431,), (1351826466,), (1351826510,), (1351826799,), (1351826893,), (1351826921,), (1351827162,), (1351827228,), (1351827256,), (1351827319,), (1351827349,), (1351827763,), (1351827805,), (1351827856,), (1351827967,), (1351828362,), (1351828145,), (1351828182,), (1351828226,), (1351828273,), (1351828294,), (1351828633,), (1351828694,), (1351828754,), (1351828814,), (1351828881,), (1351828921,), (1351829217,), (1351829273,), (1351829834,), (1351829869,), (1351829909,), (1351829932,), (1351829962,), (1351830013,), (1351830498,), (1351830554,), (1351830606,), (1351830835,), (1351830891,), (1351830917,), (1351830948,), (1351830972,), (1351830996,), (1351831153,), (1351831170,), (1351831227,), (1351831238,), (1351831254,), (1351831307,), (1351831316,), (1351831319,), (1351831580,), (1351831622,), (1351831645,), (1351831672,), (1351831700,), (1351832046,), (1351832088,), (1351832113,), (1351832137,), (1351832156,), (1351832213,), (1351832233,), (1351832306,), (1351832547,), (1351832552,), (1351832577,), (1351832602,), (1351832625,), (1351833426,), (1351833531,), (1351833630,), (1351833739,), (1351833776,), (1351834333,), (1351834362,), (1351834395,), (1351834421,), (1351834463,), (1351834499,), (1351834577,), (1351835216,), (1351834605,), (1351834634,), (1351834674,), (1351834838,), (1351834996,), (1351835745,), (1351835801,), (1351835860,), (1351835928,), (1351836679,), (1351836720,), (1351836764,), (1351836844,), (1351837020,), (1351837083,), (1351837293,), (1351837357,), (1351837403,), (1351837464,), (1351837549,), (1351838013,), (1351838063,), (1351838089,), (1351838115,), (1351838573,), (1351838630,), (1351838715,), (1351838756,), (1351838781,), (1351838835,), (1351839340,), (1351839400,), (1351839505,), (1351840118,), (1351840464,), (1351840583,), (1351840676,), (1351840769,), (1351840864,), (1351841222,), (1351841259,), (1351841336,), (1351841343,), (1351841938,), (1351842432,), (1351842632,), (1351842660,), (1351842894,), (1351843263,), (1351843390,), (1351843561,), (1351843726,), (1351843960,), (1351844003,), (1351844077,), (1351844134,), (1351844193,), (1351844260,), (1351844688,), (1351844725,), (1351844752,), (1351844902,), (1351845235,), (1351845280,), (1351845946,), (1351845980,), (1351846011,), (1351846525,), (1351846508,), (1351846511,), (1351846514,), (1351846974,), (1351847009,), (1351847046,), (1351847064,), (1351847104,), (1351847202,), (1351847475,), (1351847497,), (1351847510,), (1351847570,), (1351847644,), (1351847795,), (1351847837,), (1351847864,), (1351847887,), (1351847924,), (1351847990,), (1351848173,), (1351848175,), (1351848177,), (1351848256,), (1351848260,), (1351848282,), (1351848643,), (1351848697,), (1351848739,), (1351848775,), (1351848792,), (1351848818,), (1351849043,), (1351849070,), (1351849097,), (1351849293,), (1351849299,), (1351849303,), (1351849332,), (1351849343,), (1351849462,), (1351849466,), (1351849479,), (1351849494,), (1351849514,), (1351849542,), (1351849580,), (1351849610,), (1351849638,), (1351849654,), (1351849709,), (1351849721,), (1351849749,), (1351849772,), (1351849788,), (1351849797,), (1351849950,), (1351850045,), (1351850106,), (1351850127,), (1351850387,), (1351850410,), (1351850436,), (1351850459,), (1351850485,), (1351850788,), (1351850828,), (1351850840,), (1351850852,), (1351850872,), (1351850893,), (1351850974,), (1351850962,), (1351850968,), (1351851013,), (1351851028,), (1351851040,), (1351851061,), (1351851263,), (1351851279,), (1351851286,), (1351851300,), (1351851310,), (1351851334,), (1351851400,), (1351851409,), (1351851411,), (1351851415,), (1351851556,), (1351851560,), (1351851565,), (1351851927,), (1351851946,), (1351851949,), (1351851954,), (1351852009,), (1351852017,), (1351852084,), (1351852114,), (1351852134,), (1351852144,), (1351852148,), (1351852256,), (1351852275,), (1351852285,), (1351852319,), (1351852368,), (1351852613,), (1351852629,), (1351852653,), (1351852669,), (1351852915,), (1351852951,), (1351852975,), (1351852997,), (1351853024,), (1351853270,), (1351853300,), (1351853330,), (1351853778,), (1351853825,), (1351853900,), (1351853937,), (1351853963,), (1351854516,), (1351854589,), (1351854642,), (1351854703,), (1351854806,), (1351854866,), (1351855433,), (1351855483,), (1351855526,), (1351856032,), (1351856090,), (1351856162,), (1351856199,), (1351856220,), (1351856904,), (1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,), (1351861966,), (1351861973,), (1351861981,), (1351862149,), (1351862173,), (1351862181,), (1351862243,), (1351862257,), (1351862270,), (1351862278,), (1351862295,), (1351862319,), (1351862498,), (1351862540,), (1351862577,), (1351862611,), (1351862647,), (1351862701,), (1351862916,), (1351862953,), (1351863003,), (1351863444,), (1351863459,), (1351863490,), (1351863526,), (1351863550,), (1351863735,), (1351863810,), (1351863872,), (1351863935,), (1351864401,), (1351864431,), (1351864453,), (1351864496,), (1351864517,), (1351864561,), (1351864841,), (1351864912,), (1351864936,), (1351864953,), (1351865018,), (1351865046,), (1351865150,), (1351865235,), (1351865372,), (1351865790,), (1351865874,), (1351865904,), (1351866039,), (1351866171,), (1351866347,), (1351866799,), (1351866826,), (1351866871,), (1351866911,), (1351866965,), (1351866983,), (1351867352,), (1351867426,), (1351867465,), (1351867533,), (1351868331,), (1351868489,), (1351868546,), (1351868691,), (1351868828,), (1351869044,), (1351869688,), (1351869766,), (1351869938,), (1351870125,), (1351870226,), (1351870641,), (1351870614,), (1351870631,), (1351870872,), (1351870881,), (1351870906,), (1351870920,), (1351870949,), (1351870963,), (1351871946,), (1351872099,), (1351872148,), (1351872175,), (1351872192,), (1351872266,), (1351872607,), (1351872681,), (1351873009,), (1351873018,), (1351873054,), (1351873104,), (1351873151,), (1351873762,), (1351873765,), (1351873766,), (1351873774,), (1351873800,), (1351874252,), (1351874287,), (1351874586,), (1351874609,), (1351874637,), (1351874668,), (1351874703,), (1351874724,), (1351874860,), (1351874916,), (1351874944,), (1351874990,), (1351875063,), (1351875112,), (1351875348,), (1351875388,), (1351875416,), (1351875558,), (1351875678,), (1351875710,), (1351875744,), (1351875748,), (1351875781,), (1351875839,), (1351875843,), (1351875868,), (1351875906,), (1351875934,), (1351875946,), (1351876067,), (1351877755,), (1351877698,), (1351879161,), (1351879295,), (1351879397,), (1351879475,), (1351879562,), (1351880021,), (1351880072,), (1351880102,), (1351880143,), (1351880428,), (1351880511,), (1351880574,), (1351880620,), (1351881749,), (1351881821,), (1351881858,), (1351881903,), (1351882574,), (1351882645,), (1351882675,), (1351882733,), (1351882782,), (1351883069,), (1351883116,), (1351883157,), (1351883187,), (1351883488,), (1351888955,), (1351894682,), (1351895568,), (1351897358,), (1351898174,), (1351898272,), (1351898489,), (1351898499,), (1351898506,), (1351899844,), (1351902758,), (1351902721,), (1351902962,), (1351902987,), (1351903921,), (1351904493,), (1351904521,), (1351906652,), (1351907202,), (1351907220,), (1351909930,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11042025': {'nb_upload': 10, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22302118]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721] map_info['map_portfolio_photo'] : {22302118: [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721]} final : True mtd_id 4302 list_pids : [1351909930, 1351907220, 1351907202, 1351906652, 1351904521, 1351904493, 1351903921, 1351902987, 1351902962, 1351902721] Looping around the photos to save general results len do output : 1 /22302118Didn'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, '2747359') ('4302', '22302118', '1351909930', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351907220', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351907202', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351906652', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351904521', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351904493', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351903921', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902987', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902962', None, None, None, None, None, '2747359') ('4302', None, None, None, None, None, None, None, '2747359') ('4302', '22302118', '1351902721', None, None, None, None, None, '2747359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22302118', 'None', None, None, None, None, '2747359'), ('4302', '22302118', '1351909930', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351907220', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351907202', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351906652', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351904521', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351904493', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351903921', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351902987', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351902962', None, None, None, None, None, '2747359'), ('4302', '22302118', '1351902721', None, None, None, None, None, '2747359')] time used for this insertion : 0.014301300048828125 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2039201259613037 time spend to save output : 0.0145111083984375 total time spend for step 5 : 3.218431234359741 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 (2747359) 2.47user 2.14system 0:15.32elapsed 30%CPU (0avgtext+0avgdata 159920maxresident)k 688inputs+7424outputs (18major+74402minor)pagefaults 0swaps