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 : 20775 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 (2700193) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2700193) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21815996 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2700193'] with mtr_portfolio_ids : ['21815996'] and first list_photo_ids : [] new path : /proc/20775/ Name: python3 Umask: 0002 State: R (running) Tgid: 20775 Ngid: 0 Pid: 20775 PPid: 20774 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 20775 NSpid: 20775 NSpgid: 19252 NSsid: 19252 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98744 kB VmRSS: 98744 kB RssAnon: 59752 kB RssFile: 38992 kB RssShmem: 0 kB VmData: 865676 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: 56 nonvoluntary_ctxt_switches: 134 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '20775', 'Ngid': '0', 'Pid': '20775', 'PPid': '20774', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '20775', 'NSpid': '20775', 'NSpgid': '19252', 'NSsid': '19252', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98744 kB', 'VmRSS': '98744 kB', 'RssAnon': '59752 kB', 'RssFile': '38992 kB', 'RssShmem': '0 kB', 'VmData': '865676 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': '56', 'nonvoluntary_ctxt_switches': '134'} ('datou_batch_current', '20775', '1106928', '0', '1106928', '865676', '98744', b'', 'marlene', '2700193') 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 (21815996) 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 (2700193 ) ) 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 (21815996) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1348023823, 'portfolio_id': 21815996}, {'photo_id': 1348023552, 'portfolio_id': 21815996}, {'photo_id': 1348023490, 'portfolio_id': 21815996}, {'photo_id': 1348023434, 'portfolio_id': 21815996}, {'photo_id': 1348023057, 'portfolio_id': 21815996}, {'photo_id': 1348023012, 'portfolio_id': 21815996}, {'photo_id': 1348022807, 'portfolio_id': 21815996}, {'photo_id': 1348022803, 'portfolio_id': 21815996}, {'photo_id': 1348022752, 'portfolio_id': 21815996}, {'photo_id': 1348022728, 'portfolio_id': 21815996}, {'photo_id': 1348022365, 'portfolio_id': 21815996}, {'photo_id': 1348022340, 'portfolio_id': 21815996}, {'photo_id': 1348021828, 'portfolio_id': 21815996}, {'photo_id': 1348021780, 'portfolio_id': 21815996}, {'photo_id': 1348021104, 'portfolio_id': 21815996}, {'photo_id': 1348020487, 'portfolio_id': 21815996}, {'photo_id': 1348020470, 'portfolio_id': 21815996}, {'photo_id': 1348020411, 'portfolio_id': 21815996}, {'photo_id': 1348020388, 'portfolio_id': 21815996}, {'photo_id': 1348020384, 'portfolio_id': 21815996}, {'photo_id': 1348020240, 'portfolio_id': 21815996}, {'photo_id': 1348020227, 'portfolio_id': 21815996}, {'photo_id': 1348020206, 'portfolio_id': 21815996}, {'photo_id': 1348020181, 'portfolio_id': 21815996}] map_portfolio_id_photo_id: {21815996: [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181]} ##### 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.03088212013244629 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 28 06:17:26 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 (21815996) 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 : 21815996 get user id for portfolio 21815996 get sub ptf for main ptf 21815996, type 3726 and hashtags ['Carton_brun', 'environnement', 'Carton_gris', 'plastique', 'mal_croppe', 'papier', 'kraft', 'metal', 'autre_refus', 'flou', 'Teint_Dans_La_Masse', 'cartonnette'] 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`=21815996 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Carton_gris','plastique','mal_croppe','papier','kraft','metal','autre_refus','flou','Teint_Dans_La_Masse','cartonnette')) 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`=21815996 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Carton_gris','plastique','mal_croppe','papier','kraft','metal','autre_refus','flou','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21815996, 'sub_port_id': 21815997, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334419, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}, 'cartonnette': {'main_port_id': 21815996, 'sub_port_id': 21815998, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334420, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21815996, 'sub_port_id': 21815999, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334421, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}, 'metal': {'main_port_id': 21815996, 'sub_port_id': 21816000, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334422, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}, 'mal_croppe': {'main_port_id': 21815996, 'sub_port_id': 21816001, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334423, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}, 'papier': {'main_port_id': 21815996, 'sub_port_id': 21816002, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334424, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}, 'Carton_gris': {'main_port_id': 21815996, 'sub_port_id': 21816003, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334425, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}, 'Carton_brun': {'main_port_id': 21815996, 'sub_port_id': 21816004, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334426, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}, 'flou': {'main_port_id': 21815996, 'sub_port_id': 21816005, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334427, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}, 'autre_refus': {'main_port_id': 21815996, 'sub_port_id': 21816006, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334428, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}, 'kraft': {'main_port_id': 21815996, 'sub_port_id': 21816007, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334429, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}, 'plastique': {'main_port_id': 21815996, 'sub_port_id': 21816008, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334430, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 8, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21815997 , 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=21815996 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 (21815997) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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 21815998 , 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=21815996 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 (21815998) result : ((1348020753,), (1348023837,), (1348035999,), (1348036000,), (1348036001,), (1348040735,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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 21815999 , 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=21815996 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 (21815999) result : ((1348020738,), (1348020739,), (1348020741,), (1348020742,), (1348020748,), (1348020749,), (1348020750,), (1348023835,), (1348023836,), (1348024554,), (1348035942,), (1348035943,), (1348035944,), (1348035945,), (1348035947,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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 21816000 , 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=21815996 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 (21816000) result : ((1348022379,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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 21816001 , 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=21815996 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 (21816001) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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 21816002 , 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=21815996 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 (21816002) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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 21816003 , 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=21815996 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 (21816003) result : ((1348020744,), (1348020752,), (1348035997,), (1348035998,), (1348040720,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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 21816004 , 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=21815996 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 (21816004) result : ((1348020745,), (1348022818,), (1348022819,), (1348022820,), (1348024555,), (1348024556,), (1348040755,), (1348040756,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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 21816005 , 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=21815996 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 (21816005) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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 21816006 , 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=21815996 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 (21816006) result : ((1348022815,), (1348022816,), (1348023943,), (1348035952,), (1348040706,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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 21816007 , 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=21815996 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 (21816007) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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 21816008 , 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=21815996 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 (21816008) result : ((1348020754,), (1348022821,), (1348023838,), (1348036002,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21815996) result : ((1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,)) 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`=21815996 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Carton_gris','plastique','mal_croppe','papier','kraft','metal','autre_refus','flou','Teint_Dans_La_Masse','cartonnette')) 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`=21815996 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Carton_gris','plastique','mal_croppe','papier','kraft','metal','autre_refus','flou','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21815996, 'sub_port_id': 21816009, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334431, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}, 'cartonnette': {'main_port_id': 21815996, 'sub_port_id': 21816010, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334432, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}, 'Teint_Dans_La_Masse': {'main_port_id': 21815996, 'sub_port_id': 21816011, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334433, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}, 'metal': {'main_port_id': 21815996, 'sub_port_id': 21816012, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334434, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}, 'mal_croppe': {'main_port_id': 21815996, 'sub_port_id': 21816013, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334435, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}, 'papier': {'main_port_id': 21815996, 'sub_port_id': 21816014, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334436, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}, 'Carton_gris': {'main_port_id': 21815996, 'sub_port_id': 21816015, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334437, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}, 'Carton_brun': {'main_port_id': 21815996, 'sub_port_id': 21816016, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334438, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}, 'flou': {'main_port_id': 21815996, 'sub_port_id': 21816017, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334439, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}, 'autre_refus': {'main_port_id': 21815996, 'sub_port_id': 21816018, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334440, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}, 'kraft': {'main_port_id': 21815996, 'sub_port_id': 21816019, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334441, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 9), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}, 'plastique': {'main_port_id': 21815996, 'sub_port_id': 21816020, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14334442, 'last_updated_at': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 21, 18, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 21, 9)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21815997 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21815998 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21815999 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21816000 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21816001 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816014,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21816002 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816015,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21816003 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816016,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21816004 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816017,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21816005 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816018,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21816006 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816019,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21816007 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21816020,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21816008 lien utilise dans velours : https://www.fotonower.com/velours/21816009,21816010,21816011,21816012,21816013,21816014,21816015,21816016,21816017,21816018,21816019,21816020?tags=environnement,cartonnette,Teint_Dans_La_Masse,metal,mal_croppe,papier,Carton_gris,Carton_brun,flou,autre_refus,kraft,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21815996]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181] map_info['map_portfolio_photo'] : {21815996: [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181]} final : False mtd_id 4302 list_pids : [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181] Looping around the photos to save general results len do output : 1 /21815996. 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, '2700193') ('4302', '21815996', '1348023823', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023552', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023490', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023434', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023057', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023012', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022807', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022803', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022752', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022728', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022365', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022340', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021828', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021780', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021104', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020487', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020470', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020411', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020388', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020384', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020240', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020227', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020206', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020181', None, None, None, None, None, '2700193') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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, '21815996', "{'environnement': 21815997, 'cartonnette': 21815998, 'Teint_Dans_La_Masse': 21815999, 'metal': 21816000, 'mal_croppe': 21816001, 'papier': 21816002, 'Carton_gris': 21816003, 'Carton_brun': 21816004, 'flou': 21816005, 'autre_refus': 21816006, 'kraft': 21816007, 'plastique': 21816008}", None, None, None, None, '2700193'), ('4302', '21815996', '1348023823', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023552', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023490', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023434', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023057', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023012', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022807', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022803', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022752', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022728', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022365', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022340', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348021828', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348021780', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348021104', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020487', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020470', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020411', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020388', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020384', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020240', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020227', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020206', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020181', None, None, None, None, None, '2700193')] time used for this insertion : 0.022426366806030273 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.284145832061768 time spend to save output : 0.02274465560913086 total time spend for step 1 : 5.306890487670898 step2:final Fri Mar 28 06:17:32 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 (21815996) 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 21815996 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348020240,1348020227,1348020206,1348020181,1348020411,1348020388,1348020384,1348020487,1348021104,1348020470,1348021828,1348021780,1348022365,1348022340,1348022752,1348022728,1348022807,1348022803,1348023057,1348023012,1348023552,1348023490,1348023434,1348023823); 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([21815996]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} new output for save of step final : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181] map_info['map_portfolio_photo'] : {21815996: [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181]} final : False mtd_id 4302 list_pids : [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181] Looping around the photos to save general results len do output : 24 /1348023823.Didn't retrieve data . /1348023552.Didn't retrieve data . /1348023490.Didn't retrieve data . /1348023434.Didn't retrieve data . /1348023057.Didn't retrieve data . /1348023012.Didn't retrieve data . /1348022807.Didn't retrieve data . /1348022803.Didn't retrieve data . /1348022752.Didn't retrieve data . /1348022728.Didn't retrieve data . /1348022365.Didn't retrieve data . /1348022340.Didn't retrieve data . /1348021828.Didn't retrieve data . /1348021780.Didn't retrieve data . /1348021104.Didn't retrieve data . /1348020487.Didn't retrieve data . /1348020470.Didn't retrieve data . /1348020411.Didn't retrieve data . /1348020388.Didn't retrieve data . /1348020384.Didn't retrieve data . /1348020240.Didn't retrieve data . /1348020227.Didn't retrieve data . /1348020206.Didn't retrieve data . /1348020181.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, '2700193') ('4302', '21815996', '1348023823', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023552', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023490', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023434', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023057', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023012', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022807', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022803', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022752', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022728', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022365', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022340', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021828', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021780', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021104', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020487', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020470', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020411', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020388', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020384', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020240', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020227', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020206', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020181', None, None, None, None, None, '2700193') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 72 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', '21815996', '1348023823', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348023552', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348023490', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348023434', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348023057', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348023012', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348022807', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348022803', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348022752', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348022728', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348022365', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348022340', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348021828', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348021780', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348021104', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348020487', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348020470', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348020411', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348020388', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348020384', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348020240', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348020227', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348020206', '0.046255419314792025', None, None, None, None, '2700193'), ('4302', '21815996', '1348020181', '0.046255419314792025', None, None, None, None, '2700193')] time used for this insertion : 0.039606332778930664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8773396015167236 time spend to save output : 0.04065823554992676 total time spend for step 2 : 0.9179978370666504 step3:velours_tree Fri Mar 28 06:17: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 : {21815996: [{'environnement': 21815997, 'cartonnette': 21815998, 'Teint_Dans_La_Masse': 21815999, 'metal': 21816000, 'mal_croppe': 21816001, 'papier': 21816002, 'Carton_gris': 21816003, 'Carton_brun': 21816004, 'flou': 21816005, 'autre_refus': 21816006, 'kraft': 21816007, 'plastique': 21816008}]} input_args_next_step : {21815996: ()} output_args : {21815996: [{'environnement': 21815997, 'cartonnette': 21815998, 'Teint_Dans_La_Masse': 21815999, 'metal': 21816000, 'mal_croppe': 21816001, 'papier': 21816002, 'Carton_gris': 21816003, 'Carton_brun': 21816004, 'flou': 21816005, 'autre_refus': 21816006, 'kraft': 21816007, 'plastique': 21816008}]} args : 21815996 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 21815997, 'cartonnette': 21815998, 'Teint_Dans_La_Masse': 21815999, 'metal': 21816000, 'mal_croppe': 21816001, 'papier': 21816002, 'Carton_gris': 21816003, 'Carton_brun': 21816004, 'flou': 21816005, 'autre_refus': 21816006, 'kraft': 21816007, 'plastique': 21816008},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21815996) 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([21815996]) 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.2887234687805176 time spend to save output : 5.2928924560546875e-05 total time spend for step 3 : 0.2887763977050781 step4:send_mail_cod Fri Mar 28 06:17: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 : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} input_args_next_step : {1348023823: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348023823 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348023552 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348023490 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348023434 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348023057 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348023012 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348022807 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348022803 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348022752 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348022728 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348022365 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348022340 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348021828 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348021780 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348021104 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348020487 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348020470 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348020411 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348020388 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348020384 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348020240 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348020227 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348020206 depend.output_id : 0 input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ()} output_args : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',)} args : 1348020181 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 : {21815996: [{'environnement': 21815997, 'cartonnette': 21815998, 'Teint_Dans_La_Masse': 21815999, 'metal': 21816000, 'mal_croppe': 21816001, 'papier': 21816002, 'Carton_gris': 21816003, 'Carton_brun': 21816004, 'flou': 21816005, 'autre_refus': 21816006, 'kraft': 21816007, 'plastique': 21816008}]} input_args_next_step : {1348023823: ('0.046255419314792025',), 1348023552: ('0.046255419314792025',), 1348023490: ('0.046255419314792025',), 1348023434: ('0.046255419314792025',), 1348023057: ('0.046255419314792025',), 1348023012: ('0.046255419314792025',), 1348022807: ('0.046255419314792025',), 1348022803: ('0.046255419314792025',), 1348022752: ('0.046255419314792025',), 1348022728: ('0.046255419314792025',), 1348022365: ('0.046255419314792025',), 1348022340: ('0.046255419314792025',), 1348021828: ('0.046255419314792025',), 1348021780: ('0.046255419314792025',), 1348021104: ('0.046255419314792025',), 1348020487: ('0.046255419314792025',), 1348020470: ('0.046255419314792025',), 1348020411: ('0.046255419314792025',), 1348020388: ('0.046255419314792025',), 1348020384: ('0.046255419314792025',), 1348020240: ('0.046255419314792025',), 1348020227: ('0.046255419314792025',), 1348020206: ('0.046255419314792025',), 1348020181: ('0.046255419314792025',), 21815996: ()} output_args : {21815996: [{'environnement': 21815997, 'cartonnette': 21815998, 'Teint_Dans_La_Masse': 21815999, 'metal': 21816000, 'mal_croppe': 21816001, 'papier': 21816002, 'Carton_gris': 21816003, 'Carton_brun': 21816004, 'flou': 21816005, 'autre_refus': 21816006, 'kraft': 21816007, 'plastique': 21816008}]} args : 21815996 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 :25, first value : ('0.046255419314792025',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21815996) 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 (1348023823,1348023552,1348023490,1348023434,1348023057,1348023012,1348022807,1348022803,1348022752,1348022728,1348022365,1348022340,1348021828,1348021780,1348021104,1348020487,1348020470,1348020411,1348020388,1348020384,1348020240,1348020227,1348020206,1348020181) Found this number of photos: 24 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348020181 begin to download photo : 1348020388 begin to download photo : 1348021780 begin to download photo : 1348022752 begin to download photo : 1348023434 download finish for photo 1348021780 begin to download photo : 1348021828 download finish for photo 1348020181 begin to download photo : 1348020206 download finish for photo 1348020388 begin to download photo : 1348020411 download finish for photo 1348023434 begin to download photo : 1348023490 download finish for photo 1348022752 begin to download photo : 1348022803 download finish for photo 1348021828 begin to download photo : 1348022340 download finish for photo 1348020206 begin to download photo : 1348020227 download finish for photo 1348022803 begin to download photo : 1348022807 download finish for photo 1348023490 begin to download photo : 1348023552 download finish for photo 1348020411 begin to download photo : 1348020470 download finish for photo 1348022340 begin to download photo : 1348022365 download finish for photo 1348020227 begin to download photo : 1348020240 download finish for photo 1348022807 begin to download photo : 1348023012 download finish for photo 1348023552 begin to download photo : 1348023823 download finish for photo 1348022365 begin to download photo : 1348022728 download finish for photo 1348020240 begin to download photo : 1348020384 download finish for photo 1348020470 begin to download photo : 1348020487 download finish for photo 1348023012 begin to download photo : 1348023057 download finish for photo 1348023823 download finish for photo 1348022728 download finish for photo 1348023057 download finish for photo 1348020384 download finish for photo 1348020487 begin to download photo : 1348021104 download finish for photo 1348021104 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 : 24 ; length of list_pids : 24 ; length of list_args : 24 results_Auto_P21815996_28-03-2025_06_17_34.pdf 21815998 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=21815998 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348020753: '1743106092_70317_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716834_0.png', 1348023837: '1743106593_76623_1348022728_a9fcc4ae9baba270736805fb29f78aff_rle_crop_3734731594_0.png', 1348035999: '1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797966_0.png', 1348036000: '1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797959_0.png', 1348036001: '1743108333_98395_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716834_0.png', 1348040735: '1743109253_124316_1348023823_6f2f139874900c1241d2bea5fda7f338_rle_crop_3734831765_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b41f5bba45b1d434fd33c73ba2c5475f_39910913.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/588b43b8bb7ec5b1bcb9332fb1c33a0d_76705320.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/72ebe32942f5cdc86e89e3e4a487653f_86094181.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2f50535e7377a9b41ae1895ea39f428e_97602755.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b41f5bba45b1d434fd33c73ba2c5475f_26460350.png change filename to text .imagette218159981743139054/ imagette218159981743139054/1743108333_98395_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716834_0.png.png imagette218159981743139054/1743109253_124316_1348023823_6f2f139874900c1241d2bea5fda7f338_rle_crop_3734831765_0.png.png imagette218159981743139054/1743106593_76623_1348022728_a9fcc4ae9baba270736805fb29f78aff_rle_crop_3734731594_0.png.png imagette218159981743139054/1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797966_0.png.png imagette218159981743139054/1743106092_70317_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716834_0.png.png imagette218159981743139054/1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797959_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/add6f8f8c13071bd288c79ba658daa48_86370526.png imagette218159981743139054 21816000 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=21816000 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348022379: '1743106313_72677_1348021104_2469bf297b446a3fdbc71cc992d8afea_rle_crop_3734718921_0.png'} change filename to text .imagette218160001743139055/ imagette218160001743139055/1743106313_72677_1348021104_2469bf297b446a3fdbc71cc992d8afea_rle_crop_3734718921_0.png.png imagette218160011743139055/ imagette218160051743139055/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f725731f58ef45055c3f862724a0b566_72478841.png imagette218160001743139055 21816001 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=21816001 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218160011743139055 21816005 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=21816005 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218160051743139055 21816006 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=21816006 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348022815: '1743106452_74154_1348022365_493d5a100db187616c7f3a4d64dde809_rle_crop_3734723440_0.png', 1348022816: '1743106452_74154_1348021780_0d624e14375e671dfadbd256b3dd01ef_rle_crop_3734723475_0.png', 1348023943: '1743106615_76993_1348022340_001177de68edb607ef84f04422d49469_rle_crop_3734733352_0.png', 1348035952: '1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797961_0.png', 1348040706: '1743109253_124316_1348023434_483e29f2fcf318140ab82a81252827ff_rle_crop_3734739893_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8290c1b33d8c43bd2adc3172772541ac_94662939.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/1b0e2507840ec8dd7983f7c01f854b5f_78261320.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/049a73733c56c921420e4b561c885507_32094962.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/bcfe249ceccb011d6e9a4175ed52ea53_69005789.png change filename to text .imagette218160061743139055/ imagette218160061743139055/1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797961_0.png.png imagette218160061743139055/1743109253_124316_1348023434_483e29f2fcf318140ab82a81252827ff_rle_crop_3734739893_0.png.png imagette218160061743139055/1743106452_74154_1348021780_0d624e14375e671dfadbd256b3dd01ef_rle_crop_3734723475_0.png.png imagette218160061743139055/1743106452_74154_1348022365_493d5a100db187616c7f3a4d64dde809_rle_crop_3734723440_0.png.png imagette218160061743139055/1743106615_76993_1348022340_001177de68edb607ef84f04422d49469_rle_crop_3734733352_0.png.png imagette218160071743139055/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f2be31eb04679aef19d6980865ec8fb4_79357644.png imagette218160061743139055 21816007 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=21816007 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218160071743139055 21816008 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=21816008 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348020754: '1743106092_70317_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716835_0.png', 1348022821: '1743106452_74154_1348022365_493d5a100db187616c7f3a4d64dde809_rle_crop_3734723441_0.png', 1348023838: '1743106593_76623_1348022807_d43cd4eb123f87af280570c72b534af3_rle_crop_3734731336_0.png', 1348036002: '1743108333_98395_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716835_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e4bb1463a16dbba760eb900908ed9a5d_89002145.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5efc73bf7bb18c59e5aa79288bf6cc4b_48728668.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e62ef532bb01f82bb2d4b088928590f3_62635752.png change filename to text .imagette218160081743139055/ imagette218160081743139055/1743108333_98395_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716835_0.png.png imagette218160081743139055/1743106092_70317_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716835_0.png.png imagette218160081743139055/1743106593_76623_1348022807_d43cd4eb123f87af280570c72b534af3_rle_crop_3734731336_0.png.png imagette218160081743139055/1743106452_74154_1348022365_493d5a100db187616c7f3a4d64dde809_rle_crop_3734723441_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e4bb1463a16dbba760eb900908ed9a5d_35612259.png imagette218160081743139055 21815999 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=21815999 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348020738: '1743106106_336815_1348020411_8947083a84851006e4460604145ed7a9_rle_crop_3734716540_0.png', 1348020739: '1743106106_336815_1348020206_107f4e9a6fd86e07247ea33d54906133_rle_crop_3734716555_0.png', 1348020741: '1743106106_336815_1348020181_eb476149274910b1e009bcc3fa98ec44_rle_crop_3734716626_0.png', 1348020742: '1743106106_336815_1348020181_eb476149274910b1e009bcc3fa98ec44_rle_crop_3734716624_0.png', 1348020748: '1743106092_70317_1348020388_36a6f4a97597bceac10ff9dec79f0c82_rle_crop_3734716757_0.png', 1348020749: '1743106092_70317_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716836_0.png', 1348020750: '1743106092_70317_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716842_0.png', 1348023835: '1743106593_76623_1348022807_d43cd4eb123f87af280570c72b534af3_rle_crop_3734731341_0.png', 1348023836: '1743106593_76623_1348022728_a9fcc4ae9baba270736805fb29f78aff_rle_crop_3734731599_0.png', 1348024554: '1743106792_84996_1348023552_288e0fe1b7c2f81a16a319e836132995_rle_crop_3734746588_0.png', 1348035942: '1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797965_0.png', 1348035943: '1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797968_0.png', 1348035944: '1743108333_98395_1348020388_36a6f4a97597bceac10ff9dec79f0c82_rle_crop_3734716757_0.png', 1348035945: '1743108333_98395_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716836_0.png', 1348035947: '1743108333_98395_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716842_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/dc85f4ebae8287a54628a69fcffddf76_18648117.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d19b0073beeb908cbe965b2cff9155be_64044056.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9cbb06f749c0f659bdb33189fe473807_29056193.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/85d47e8fba0bed071aff7cb7c12f7589_74423363.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/4772c97c5b4bb5f95741bf7f0f355dce_44225414.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/04efbe16e0ebec214f0faee1961e40c3_45934603.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8cba3221d1ead5fd03c0fbb439535be1_49712.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9a78532b67a7fe29b6131b3e0251d466_36987993.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/320e7167ca7521ed885db1d7b31ecdbd_952682.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/ac727f7d83639c02956db032e11eaad6_40309740.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/3d19b75217a4df928a084b11e9b77e4f_25103089.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/ae27e28780c9eee41ef3a76bf9c33164_64860335.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/4772c97c5b4bb5f95741bf7f0f355dce_66327923.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/04efbe16e0ebec214f0faee1961e40c3_77190352.png change filename to text .imagette218159991743139056/ imagette218159991743139056/1743108333_98395_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716842_0.png.png imagette218159991743139056/1743106092_70317_1348020388_36a6f4a97597bceac10ff9dec79f0c82_rle_crop_3734716757_0.png.png imagette218159991743139056/1743106106_336815_1348020411_8947083a84851006e4460604145ed7a9_rle_crop_3734716540_0.png.png imagette218159991743139056/1743106593_76623_1348022728_a9fcc4ae9baba270736805fb29f78aff_rle_crop_3734731599_0.png.png imagette218159991743139056/1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797968_0.png.png imagette218159991743139056/1743108333_98395_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716836_0.png.png imagette218159991743139056/1743106593_76623_1348022807_d43cd4eb123f87af280570c72b534af3_rle_crop_3734731341_0.png.png imagette218159991743139056/1743106792_84996_1348023552_288e0fe1b7c2f81a16a319e836132995_rle_crop_3734746588_0.png.png imagette218159991743139056/1743106092_70317_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716842_0.png.png imagette218159991743139056/1743108333_98395_1348020388_36a6f4a97597bceac10ff9dec79f0c82_rle_crop_3734716757_0.png.png imagette218159991743139056/1743106106_336815_1348020181_eb476149274910b1e009bcc3fa98ec44_rle_crop_3734716626_0.png.png imagette218159991743139056/1743106106_336815_1348020206_107f4e9a6fd86e07247ea33d54906133_rle_crop_3734716555_0.png.png imagette218159991743139056/1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797965_0.png.png imagette218159991743139056/1743106092_70317_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716836_0.png.png imagette218159991743139056/1743106106_336815_1348020181_eb476149274910b1e009bcc3fa98ec44_rle_crop_3734716624_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8cba3221d1ead5fd03c0fbb439535be1_66293932.png imagette218159991743139056 21816003 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=21816003 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348020744: '1743106106_336815_1348020206_107f4e9a6fd86e07247ea33d54906133_rle_crop_3734716552_0.png', 1348020752: '1743106092_70317_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716837_0.png', 1348035997: '1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797958_0.png', 1348035998: '1743108333_98395_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716837_0.png', 1348040720: '1743109253_124316_1348023823_6f2f139874900c1241d2bea5fda7f338_rle_crop_3734831768_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/029e9ccc48662768f3d549170a20d429_55574672.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e4a5aeb80eb18cdba1672cbc6ce870b9_96250699.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/bd91a3706d9cdce66572ff4a888b6357_44764348.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/ff66177b4f52efcdcc1e36f9d3d60ff8_23140671.png change filename to text .imagette218160031743139058/ imagette218160031743139058/1743106092_70317_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716837_0.png.png imagette218160031743139058/1743109253_124316_1348023823_6f2f139874900c1241d2bea5fda7f338_rle_crop_3734831768_0.png.png imagette218160031743139058/1743108333_98395_1348020487_b973b0e767b22bac82bb3e1099f3efda_rle_crop_3734797958_0.png.png imagette218160031743139058/1743108333_98395_1348020384_d34aa49336aa279e85b35711d6cc18ee_rle_crop_3734716837_0.png.png imagette218160031743139058/1743106106_336815_1348020206_107f4e9a6fd86e07247ea33d54906133_rle_crop_3734716552_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/92be1119d3b29bc1118e5c95da19d90e_94975688.png imagette218160031743139058 21816004 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=21816004 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348020745: '1743106106_336815_1348020181_eb476149274910b1e009bcc3fa98ec44_rle_crop_3734716625_0.png', 1348022818: '1743106452_74154_1348022365_493d5a100db187616c7f3a4d64dde809_rle_crop_3734723439_0.png', 1348022819: '1743106452_74154_1348022365_493d5a100db187616c7f3a4d64dde809_rle_crop_3734723438_0.png', 1348022820: '1743106452_74154_1348021780_0d624e14375e671dfadbd256b3dd01ef_rle_crop_3734723478_0.png', 1348024555: '1743106792_84996_1348023552_288e0fe1b7c2f81a16a319e836132995_rle_crop_3734746589_0.png', 1348024556: '1743106792_84996_1348023012_b519c259f7d95ecb99e567f9c0903e4c_rle_crop_3734746739_0.png', 1348040755: '1743109253_124316_1348023490_753a306a778fba40e84c36e7d2e89fa9_rle_crop_3734739886_0.png', 1348040756: '1743109253_124316_1348023434_483e29f2fcf318140ab82a81252827ff_rle_crop_3734739896_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f71f339d329754d4b2390c7acf5ef079_64951033.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/68af66a963f4c4f18730d3ec56030ac2_73832501.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/dc6977195981351f5105e699126b92fb_22183954.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/4a432a6a4ef15872bcebb8ad31ec37d2_43569726.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/42414903f95c52b91b2a8f34a10ab976_12187482.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/c887f41500b4be9fe9c7e521fbc359cd_94411016.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/52870590fcdbf2033d43357cfebb9ed4_33573313.png change filename to text .imagette218160041743139058/ imagette218160041743139058/1743106452_74154_1348022365_493d5a100db187616c7f3a4d64dde809_rle_crop_3734723439_0.png.png imagette218160041743139058/1743109253_124316_1348023434_483e29f2fcf318140ab82a81252827ff_rle_crop_3734739896_0.png.png imagette218160041743139058/1743106792_84996_1348023012_b519c259f7d95ecb99e567f9c0903e4c_rle_crop_3734746739_0.png.png imagette218160041743139058/1743106792_84996_1348023552_288e0fe1b7c2f81a16a319e836132995_rle_crop_3734746589_0.png.png imagette218160041743139058/1743106452_74154_1348022365_493d5a100db187616c7f3a4d64dde809_rle_crop_3734723438_0.png.png imagette218160041743139058/1743109253_124316_1348023490_753a306a778fba40e84c36e7d2e89fa9_rle_crop_3734739886_0.png.png imagette218160041743139058/1743106106_336815_1348020181_eb476149274910b1e009bcc3fa98ec44_rle_crop_3734716625_0.png.png imagette218160041743139058/1743106452_74154_1348021780_0d624e14375e671dfadbd256b3dd01ef_rle_crop_3734723478_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/cb27225ecd2abf4716c185e14235d8af_18805209.png imagette218160041743139058 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21815996 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21816009,21816010,21816011,21816012,21816013,21816014,21816015,21816016,21816017,21816018,21816019,21816020?tags=environnement,cartonnette,Teint_Dans_La_Masse,metal,mal_croppe,papier,Carton_gris,Carton_brun,flou,autre_refus,kraft,plastique your option no_mail is active, we will not send the real mail to your client args[1348023823] : ('0.046255419314792025',) no score found for photo 1348023823 We are sending mail with results at report@fotonower.com args[1348023552] : ('0.046255419314792025',) no score found for photo 1348023552 We are sending mail with results at report@fotonower.com args[1348023490] : ('0.046255419314792025',) no score found for photo 1348023490 We are sending mail with results at report@fotonower.com args[1348023434] : ('0.046255419314792025',) no score found for photo 1348023434 We are sending mail with results at report@fotonower.com args[1348023057] : ('0.046255419314792025',) no score found for photo 1348023057 We are sending mail with results at report@fotonower.com args[1348023012] : ('0.046255419314792025',) no score found for photo 1348023012 We are sending mail with results at report@fotonower.com args[1348022807] : ('0.046255419314792025',) no score found for photo 1348022807 We are sending mail with results at report@fotonower.com args[1348022803] : ('0.046255419314792025',) no score found for photo 1348022803 We are sending mail with results at report@fotonower.com args[1348022752] : ('0.046255419314792025',) no score found for photo 1348022752 We are sending mail with results at report@fotonower.com args[1348022728] : ('0.046255419314792025',) no score found for photo 1348022728 We are sending mail with results at report@fotonower.com args[1348022365] : ('0.046255419314792025',) no score found for photo 1348022365 We are sending mail with results at report@fotonower.com args[1348022340] : ('0.046255419314792025',) no score found for photo 1348022340 We are sending mail with results at report@fotonower.com args[1348021828] : ('0.046255419314792025',) no score found for photo 1348021828 We are sending mail with results at report@fotonower.com args[1348021780] : ('0.046255419314792025',) no score found for photo 1348021780 We are sending mail with results at report@fotonower.com args[1348021104] : ('0.046255419314792025',) no score found for photo 1348021104 We are sending mail with results at report@fotonower.com args[1348020487] : ('0.046255419314792025',) no score found for photo 1348020487 We are sending mail with results at report@fotonower.com args[1348020470] : ('0.046255419314792025',) no score found for photo 1348020470 We are sending mail with results at report@fotonower.com args[1348020411] : ('0.046255419314792025',) no score found for photo 1348020411 We are sending mail with results at report@fotonower.com args[1348020388] : ('0.046255419314792025',) no score found for photo 1348020388 We are sending mail with results at report@fotonower.com args[1348020384] : ('0.046255419314792025',) no score found for photo 1348020384 We are sending mail with results at report@fotonower.com args[1348020240] : ('0.046255419314792025',) no score found for photo 1348020240 We are sending mail with results at report@fotonower.com args[1348020227] : ('0.046255419314792025',) no score found for photo 1348020227 We are sending mail with results at report@fotonower.com args[1348020206] : ('0.046255419314792025',) no score found for photo 1348020206 We are sending mail with results at report@fotonower.com args[1348020181] : ('0.046255419314792025',) no score found for photo 1348020181 We are sending mail with results at report@fotonower.com refus_total : 0.046255419314792025 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=21815996 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_P21815996_28-03-2025_06_17_34.pdf results_Auto_P21815996_28-03-2025_06_17_34.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21815996_28-03-2025_06_17_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','21815996','results_Auto_P21815996_28-03-2025_06_17_34.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21815996_28-03-2025_06_17_34.pdf','pdf','','0.27','0.046255419314792025') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21815996]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181] map_info['map_portfolio_photo'] : {21815996: [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181]} final : False mtd_id 4302 list_pids : [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181] 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, '2700193') ('4302', '21815996', '1348023823', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023552', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023490', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023434', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023057', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023012', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022807', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022803', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022752', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022728', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022365', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022340', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021828', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021780', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021104', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020487', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020470', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020411', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020388', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020384', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020240', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020227', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020206', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020181', None, None, None, None, None, '2700193') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21815996', '1348023823', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023552', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023490', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023434', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023057', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023012', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022807', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022803', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022752', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022728', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022365', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022340', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348021828', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348021780', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348021104', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020487', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020470', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020411', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020388', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020384', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020240', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020227', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020206', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020181', None, None, None, None, None, '2700193')] time used for this insertion : 0.018843889236450195 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.132470607757568 time spend to save output : 0.01921868324279785 total time spend for step 4 : 8.151689291000366 step5:split_time_score Fri Mar 28 06:17:41 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 : ['21815996'] 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 : [('21815996',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21815996) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348023434: {'path': 'temp/1743139053_20775_1348023434_483e29f2fcf318140ab82a81252827ff.jpg', 'extension': 'jpg'}, 1348023490: {'path': 'temp/1743139053_20775_1348023490_753a306a778fba40e84c36e7d2e89fa9.jpg', 'extension': 'jpg'}, 1348023552: {'path': 'temp/1743139053_20775_1348023552_288e0fe1b7c2f81a16a319e836132995.jpg', 'extension': 'jpg'}, 1348023823: {'path': 'temp/1743139053_20775_1348023823_6f2f139874900c1241d2bea5fda7f338.jpg', 'extension': 'jpg'}, 1348021780: {'path': 'temp/1743139053_20775_1348021780_0d624e14375e671dfadbd256b3dd01ef.jpg', 'extension': 'jpg'}, 1348021828: {'path': 'temp/1743139053_20775_1348021828_b1c80dbd79e19b86b28120facb1d3c88.jpg', 'extension': 'jpg'}, 1348022340: {'path': 'temp/1743139053_20775_1348022340_001177de68edb607ef84f04422d49469.jpg', 'extension': 'jpg'}, 1348022365: {'path': 'temp/1743139053_20775_1348022365_493d5a100db187616c7f3a4d64dde809.jpg', 'extension': 'jpg'}, 1348022728: {'path': 'temp/1743139053_20775_1348022728_a9fcc4ae9baba270736805fb29f78aff.jpg', 'extension': 'jpg'}, 1348022752: {'path': 'temp/1743139053_20775_1348022752_fbed61d7c27ddf4ebf1cada680d59f1d.jpg', 'extension': 'jpg'}, 1348022803: {'path': 'temp/1743139053_20775_1348022803_1339af9bbc7377af8a0d703fc855d5c8.jpg', 'extension': 'jpg'}, 1348022807: {'path': 'temp/1743139053_20775_1348022807_d43cd4eb123f87af280570c72b534af3.jpg', 'extension': 'jpg'}, 1348023012: {'path': 'temp/1743139053_20775_1348023012_b519c259f7d95ecb99e567f9c0903e4c.jpg', 'extension': 'jpg'}, 1348023057: {'path': 'temp/1743139053_20775_1348023057_475a1f000971e06ed21e21b4c547c844.jpg', 'extension': 'jpg'}, 1348020181: {'path': 'temp/1743139053_20775_1348020181_eb476149274910b1e009bcc3fa98ec44.jpg', 'extension': 'jpg'}, 1348020206: {'path': 'temp/1743139053_20775_1348020206_107f4e9a6fd86e07247ea33d54906133.jpg', 'extension': 'jpg'}, 1348020227: {'path': 'temp/1743139053_20775_1348020227_7dbb0dd4e973767cbe4ce6501e6c70f9.jpg', 'extension': 'jpg'}, 1348020240: {'path': 'temp/1743139053_20775_1348020240_67d361d504ccaaceed201c8d277592de.jpg', 'extension': 'jpg'}, 1348020384: {'path': 'temp/1743139053_20775_1348020384_d34aa49336aa279e85b35711d6cc18ee.jpg', 'extension': 'jpg'}, 1348020388: {'path': 'temp/1743139053_20775_1348020388_36a6f4a97597bceac10ff9dec79f0c82.jpg', 'extension': 'jpg'}, 1348020411: {'path': 'temp/1743139053_20775_1348020411_8947083a84851006e4460604145ed7a9.jpg', 'extension': 'jpg'}, 1348020470: {'path': 'temp/1743139053_20775_1348020470_92424f8e3cc7c59d3f519189f30b3488.jpg', 'extension': 'jpg'}, 1348020487: {'path': 'temp/1743139053_20775_1348020487_b973b0e767b22bac82bb3e1099f3efda.jpg', 'extension': 'jpg'}, 1348021104: {'path': 'temp/1743139053_20775_1348021104_2469bf297b446a3fdbc71cc992d8afea.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 = 21815996; (('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 = 21815996 group by h (('21', 24),) 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=21815996 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 (21815996) 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 (21815996) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27032025 21815996 Nombre de photos uploadées : 24 / 23040 (0%) 27032025 21815996 Nombre de photos taguées (types de déchets): 0 / 24 (0%) 27032025 21815996 Nombre de photos taguées (volume) : 0 / 24 (0%) [{'photo_id': 1348020240, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/67d361d504ccaaceed201c8d277592de.jpg', 'username': None, 'uploaded_at': 1743105917, 'text': 'image_27032025_21_02_54_10136.jpg'}, {'photo_id': 1348020227, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/7dbb0dd4e973767cbe4ce6501e6c70f9.jpg', 'username': None, 'uploaded_at': 1743105917, 'text': 'image_27032025_21_03_04_010150m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348020206, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/107f4e9a6fd86e07247ea33d54906133.jpg', 'username': None, 'uploaded_at': 1743105917, 'text': 'image_27032025_21_03_34_010145m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348020181, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/eb476149274910b1e009bcc3fa98ec44.jpg', 'username': None, 'uploaded_at': 1743105917, 'text': 'image_27032025_21_03_43_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011937618255615234 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21815996, '2025-03-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1692045,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027718305587768555 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= 1692045 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21758623, 'dashboard_result_id': 9705846, '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_P21758623_28-03-2025_05_36_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21758648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21758649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21758650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21758651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21758652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21758653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21758654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21758655, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21758656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21758657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21758658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21758659, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21759362, 'dashboard_result_id': 9705847, '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_P21759362_28-03-2025_05_36_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21759363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21759364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21759365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21759366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21759367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21759368, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21759369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21759370, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21759371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21759372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21759373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21759374, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21760093, 'dashboard_result_id': 9705848, '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_P21760093_28-03-2025_05_38_08.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21760146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21760147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21760148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21760149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21760150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21760151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21760152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21760153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21760154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21760155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21760156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21760157, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21760560, 'dashboard_result_id': 9705849, '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_P21760560_28-03-2025_05_38_40.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21760561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21760562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21760563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21760564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21760565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21760566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21760567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21760568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21760569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21760570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21760571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21760572, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21762076, 'dashboard_result_id': 9705850, '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_P21762076_28-03-2025_05_38_46.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21762077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21762078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21762079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21762080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21762081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21762082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21762083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21762084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21762085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21762086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21762087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21762088, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21762613, 'dashboard_result_id': 9705851, '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_P21762613_28-03-2025_05_39_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21762614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21762615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21762616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21762617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21762618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21762619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21762620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21762621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21762622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21762623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21762624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21762625, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21763101, 'dashboard_result_id': 9705853, '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_P21763101_28-03-2025_05_39_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21763102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21763103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21763104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21763105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21763106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21763107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21763108, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21763109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21763110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21763111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21763112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21763113, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21763711, 'dashboard_result_id': 9705854, '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_P21763711_28-03-2025_05_40_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21763753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21763754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21763758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21763764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21763769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21763770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21763771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21763772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21763773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21763774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21763775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21763776, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21764831, 'dashboard_result_id': 9705855, '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_P21764831_28-03-2025_05_41_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21764856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21764857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21764858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21764859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21764860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21764861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21764862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21764863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21764864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21764865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21764866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21764867, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21765473, 'dashboard_result_id': 9705856, '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_P21765473_28-03-2025_05_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21765490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21765491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21765492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21765493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21765494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21765495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21765496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21765497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21765498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21765499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21765500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21765501, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21766075, 'dashboard_result_id': 9705857, '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_P21766075_28-03-2025_05_41_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21766084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766088, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21766833, 'dashboard_result_id': 9705859, '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_P21766833_28-03-2025_05_42_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21766834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766845, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21767496, 'dashboard_result_id': 9705860, '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_P21767496_28-03-2025_05_42_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21767497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21767498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21767499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21767500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21767501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21767502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21767503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21767504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21767505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21767506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21767507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21767508, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21768004, 'dashboard_result_id': 9705861, '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_P21768004_28-03-2025_05_43_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21768008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21768009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21768010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21768011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21768012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21768013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21768014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21768015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21768016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21768017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21768018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21768019, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21768690, 'dashboard_result_id': 9705862, '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_P21768690_28-03-2025_05_44_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21768848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21768849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21768850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21768851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21768852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21768853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21768854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21768855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21768856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21768857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21768858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21768859, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21770204, 'dashboard_result_id': 9705863, '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_P21770204_28-03-2025_05_44_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770216, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21770457, 'dashboard_result_id': 9705864, '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_P21770457_28-03-2025_05_45_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770469, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21770821, 'dashboard_result_id': 9705865, '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_P21770821_28-03-2025_05_45_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770833, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21771188, 'dashboard_result_id': 9705867, '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_P21771188_28-03-2025_05_46_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21771334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21771335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21771336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21771337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21771338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21771339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21771340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21771341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21771342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21771343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21771344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21771345, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21771757, 'dashboard_result_id': 9705868, '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_P21771757_28-03-2025_05_46_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21771758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21771759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21771760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21771761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21771762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21771763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21771764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21771765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21771766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21771767, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21771768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21771769, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21772390, 'dashboard_result_id': 9705870, '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_P21772390_28-03-2025_05_48_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21772391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21772392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21772393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21772394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21772395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21772396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21772397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21772398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21772399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21772400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21772401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21772402, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21772816, 'dashboard_result_id': 9705871, '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_P21772816_28-03-2025_05_48_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21772817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21772818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21772819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21772820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21772821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21772822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21772823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21772824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21772825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21772826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21772827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21772828, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21773405, 'dashboard_result_id': 9705872, '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_P21773405_28-03-2025_05_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21773406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21773407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21773408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21773409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21773410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21773411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21773412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21773413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21773414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21773415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21773416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21773417, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21774042, 'dashboard_result_id': 9705873, '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_P21774042_28-03-2025_05_49_14.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21774044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21774045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21774046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21774047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21774048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21774049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21774050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21774051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21774052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21774053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21774054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21774055, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21774467, 'dashboard_result_id': 9705875, '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_P21774467_28-03-2025_05_49_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21774494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21774495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21774496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21774497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21774498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21774499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21774500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21774501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21774502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21774503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21774504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21774505, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21775253, 'dashboard_result_id': 9705876, '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_P21775253_28-03-2025_05_50_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21775254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21775255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21775256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21775257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21775258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21775259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21775260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21775261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21775262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21775263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21775264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21775265, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21776066, 'dashboard_result_id': 9705877, '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_P21776066_28-03-2025_05_50_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21776067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21776068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21776069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21776070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21776071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21776072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21776073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21776074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21776075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21776076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21776077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21776078, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21776767, 'dashboard_result_id': 9705878, '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_P21776767_28-03-2025_05_52_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21776786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21776787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21776788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21776789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21776790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21776791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21776792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21776793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21776794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21776795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21776796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21776797, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21777493, 'dashboard_result_id': 9705879, '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_P21777493_28-03-2025_05_52_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21777494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21777495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21777496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21777497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21777498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21777499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21777500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21777501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21777502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21777503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21777504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21777505, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21777879, 'dashboard_result_id': 9705881, '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_P21777879_28-03-2025_05_53_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21777897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21777898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21777899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21777900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21777901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21777902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21777903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21777904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21777905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21777906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21777907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21777908, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21778767, 'dashboard_result_id': 9705882, '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_P21778767_28-03-2025_05_54_40.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21778793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21778794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21778795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21778796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21778797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21778798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21778799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21778800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21778801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21778802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21778803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21778804, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21780673, 'dashboard_result_id': 9705883, '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_P21780673_28-03-2025_05_55_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21780674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21780675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21780676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21780677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21780678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21780679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21780680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21780681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21780682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21780683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21780684, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21780685, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21781186, 'dashboard_result_id': 9705884, '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_P21781186_28-03-2025_05_55_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21781187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21781188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21781189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21781190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21781191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21781192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21781193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21781194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21781195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21781196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21781197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21781198, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21781704, 'dashboard_result_id': 9705885, '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_P21781704_28-03-2025_05_56_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21781705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21781706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21781707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21781708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21781709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21781710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21781711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21781712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21781713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21781714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21781715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21781716, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21782552, 'dashboard_result_id': 9705887, '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_P21782552_28-03-2025_05_56_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21782578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21782579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21782580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21782581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21782582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21782583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21782584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21782585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21782586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21782587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21782588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21782589, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21783391, 'dashboard_result_id': 9705888, '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_P21783391_28-03-2025_05_57_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21783392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21783393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21783394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21783395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21783396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21783397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21783398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21783399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21783400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21783401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21783402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21783403, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21784021, 'dashboard_result_id': 9705889, '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_P21784021_28-03-2025_05_58_11.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21784038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784045, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21784732, 'dashboard_result_id': 9705890, '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_P21784732_28-03-2025_05_58_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21784774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784785, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21785685, 'dashboard_result_id': 9705891, '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_P21785685_28-03-2025_05_58_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21785758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21785759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21785760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21785761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21785762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21785763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21785764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21785765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21785766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21785767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21785768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21785769, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21786502, 'dashboard_result_id': 9705892, '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_P21786502_28-03-2025_05_59_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21786552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21786553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21786554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21786555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21786556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21786557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21786558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21786559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21786560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21786561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21786562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21786563, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21787646, 'dashboard_result_id': 9705894, '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_P21787646_28-03-2025_05_59_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21787647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21787648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21787649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21787650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21787651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21787652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21787653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21787654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21787655, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21787656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21787657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21787658, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21788405, 'dashboard_result_id': 9705895, '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_P21788405_28-03-2025_06_00_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21788406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21788407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21788408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21788409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21788410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21788411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21788412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21788413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21788414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21788415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21788416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21788417, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21791777, 'dashboard_result_id': 9705896, '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_P21791777_28-03-2025_06_00_39.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21791778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21791779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21791780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21791781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21791782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21791783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21791784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21791785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21791786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21791787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21791788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21791789, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21792313, 'dashboard_result_id': 9705897, '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_P21792313_28-03-2025_06_01_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792325, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21792882, 'dashboard_result_id': 9705899, '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_P21792882_28-03-2025_06_01_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792918, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21793383, 'dashboard_result_id': 9705900, '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_P21793383_28-03-2025_06_02_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21793384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21793385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21793386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21793387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21793388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21793389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21793390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21793391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21793392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21793393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21793394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21793395, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21794285, 'dashboard_result_id': 9705901, '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_P21794285_28-03-2025_06_02_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21794286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21794287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21794288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21794289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21794290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21794291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21794292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21794293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21794294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21794295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21794296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21794297, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21794901, 'dashboard_result_id': 9705902, '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_P21794901_28-03-2025_06_03_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21794929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21794931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21794932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21794933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21794935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21794936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21794937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21794939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21794940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21794941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21794943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21794944, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21795720, 'dashboard_result_id': 9705903, '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_P21795720_28-03-2025_06_04_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21795757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21795758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21795759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21795760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21795761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21795762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21795763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21795764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21795765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21795766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21795767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21795768, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21796790, 'dashboard_result_id': 9705904, '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_P21796790_28-03-2025_06_04_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21796797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21796798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21796799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21796800, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21796801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21796802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21796803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21796804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21796805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21796806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21796807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21796808, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21797691, 'dashboard_result_id': 9705906, '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_P21797691_28-03-2025_06_05_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21797740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21797741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21797742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21797743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21797744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21797745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21797746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21797747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21797748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21797749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21797750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21797751, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21798421, 'dashboard_result_id': 9705907, '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_P21798421_28-03-2025_06_06_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21798440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21798443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21798445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21798446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21798447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21798448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21798449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21798450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21798451, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21799507, 'dashboard_result_id': 9705908, '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_P21799507_28-03-2025_06_07_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21799508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21799509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21799510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21799511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21799512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21799513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21799514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21799515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21799516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21799517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21799518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21799519, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21800448, 'dashboard_result_id': 9705909, '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_P21800448_28-03-2025_06_07_38.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21800575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21800576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21800577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21800578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21800579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21800580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21800581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21800582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21800583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21800584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21800585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21800586, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21801548, 'dashboard_result_id': 9705910, '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_P21801548_28-03-2025_06_08_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21801549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21801550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21801551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21801552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21801553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21801554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21801555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21801556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21801557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21801558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21801559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21801560, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21802456, 'dashboard_result_id': 9705912, '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_P21802456_28-03-2025_06_08_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21802477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21802478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21802479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21802481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21802482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21802483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21802484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21802485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21802486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21802487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21802488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21802489, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21803547, 'dashboard_result_id': 9705913, '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_P21803547_28-03-2025_06_09_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21803589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21803590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21803591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21803592, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21803593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21803594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21803595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21803596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21803597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21803598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21803599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21803600, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21805405, 'dashboard_result_id': 9705914, '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_P21805405_28-03-2025_06_10_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21805509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21805510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21805511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21805512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21805513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21805514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21805515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21805516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21805517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21805518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21805519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21805520, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21806592, 'dashboard_result_id': 9705915, '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_P21806592_28-03-2025_06_10_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21806593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21806594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21806595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21806596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21806597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21806598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21806599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21806600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21806601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21806602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21806603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21806604, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21807155, 'dashboard_result_id': 9705916, '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_P21807155_28-03-2025_06_11_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21807181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21807182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21807183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21807184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21807185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21807186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21807187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21807188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21807189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21807190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21807191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21807192, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21807908, 'dashboard_result_id': 9705918, '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_P21807908_28-03-2025_06_12_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21807970, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21807971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21807972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21807973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21807974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21807975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21807976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21807977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21807978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21807979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21807980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21807981, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21808907, 'dashboard_result_id': 9705919, '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_P21808907_28-03-2025_06_12_40.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21808954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21808955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21808956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21808957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21808958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21808959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21808960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21808961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21808962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21808963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21808964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21808965, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21809965, 'dashboard_result_id': 9705920, '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_P21809965_28-03-2025_06_13_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21809967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21809968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21809969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21809970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21809971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21809972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21809973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21809974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21809975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21809976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21809977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21809978, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21810873, 'dashboard_result_id': 9705921, '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_P21810873_28-03-2025_06_14_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21810913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21810914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21810915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21810916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21810917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21810918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21810919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21810920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21810921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21810922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21810923, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21810924, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21812172, 'dashboard_result_id': 9705922, '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_P21812172_28-03-2025_06_15_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21812211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21812212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21812213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21812214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21812215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21812216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21812217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21812218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21812219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21812220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21812221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21812222, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21812469, 'dashboard_result_id': 9705924, '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_P21812469_28-03-2025_06_15_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21812526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21812527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21812528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21812529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21812530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21812531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21812532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21812533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21812534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21812535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21812536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21812537, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21813434, 'dashboard_result_id': 9705925, '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_P21813434_28-03-2025_06_16_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21813459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21813460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21813461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21813462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21813463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21813464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21813465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21813466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21813467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21813468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21813469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21813470, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21814537, 'dashboard_result_id': 9705926, '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_P21814537_28-03-2025_06_17_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21814562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21814563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21814564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21814565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21814566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21814567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21814568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21814569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21814570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21814571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21814572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21814573, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21815996, 'dashboard_result_id': 9705927, '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_P21815996_27-03-2025_21_18_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21815997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21815998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21815999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21816000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21816001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21816002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21816003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21816004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21816005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21816006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21816007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21816008, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21816974, 'dashboard_result_id': 9705928, '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_P21816974_27-03-2025_21_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21816975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21816976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21816977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21816978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21816979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21816980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21816981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21816982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21816983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21816984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21816985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21816986, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1704324, 'mtr_portfolio_id': 21820344, 'dashboard_result_id': 9705930, '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_P21820344_27-03-2025_23_53_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21820355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21820358, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21820359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21820360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21820361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21820362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21820363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21820364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21820367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21820373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21820379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21820380, '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 = 21758623 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': 2700125, 'mtr_portfolio_id': 21758623, 'created_at': datetime.datetime(2025, 3, 28, 5, 36, 7), 'result': '0.043140589367365964', 'result_long': None, 'result_double': None}] Qualite : 0.043140589367365964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21758623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21758623_28-03-2025_05_36_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21758623 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_P21758623_28-03-2025_05_36_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21758648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21758649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21758650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21758651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21758652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21758653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21758654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21758655, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21758656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21758657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21758658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21758659, 'pht': 3726}}" where mtr_portfolio_id = 21758623 and dashboard_run_id = 1704324 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`=21758623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705846, 0.043140589367365964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21758623_28-03-2025_05_36_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21758648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21758649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21758650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21758651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21758652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21758653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21758654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21758655, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21758656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21758657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21758658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21758659, '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 = 21759362 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': 2700126, 'mtr_portfolio_id': 21759362, 'created_at': datetime.datetime(2025, 3, 28, 5, 36, 34), 'result': '0.052285639887689195', 'result_long': None, 'result_double': None}] Qualite : 0.052285639887689195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21759362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21759362_28-03-2025_05_36_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21759362 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_P21759362_28-03-2025_05_36_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21759363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21759364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21759365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21759366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21759367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21759368, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21759369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21759370, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21759371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21759372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21759373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21759374, 'pht': 3726}}" where mtr_portfolio_id = 21759362 and dashboard_run_id = 1704324 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`=21759362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705847, 0.052285639887689195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21759362_28-03-2025_05_36_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21759363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21759364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21759365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21759366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21759367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21759368, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21759369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21759370, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21759371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21759372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21759373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21759374, '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 = 21760093 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': 2700127, 'mtr_portfolio_id': 21760093, 'created_at': datetime.datetime(2025, 3, 28, 5, 38, 5), 'result': '0.06309658548485596', 'result_long': None, 'result_double': None}] Qualite : 0.06309658548485596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21760093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21760093_28-03-2025_05_38_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21760093 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_P21760093_28-03-2025_05_38_08.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21760146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21760147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21760148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21760149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21760150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21760151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21760152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21760153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21760154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21760155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21760156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21760157, 'pht': 3726}}" where mtr_portfolio_id = 21760093 and dashboard_run_id = 1704324 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`=21760093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705848, 0.06309658548485596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21760093_28-03-2025_05_38_08.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21760146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21760147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21760148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21760149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21760150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21760151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21760152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21760153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21760154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21760155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21760156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21760157, '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 = 21760560 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': 2700128, 'mtr_portfolio_id': 21760560, 'created_at': datetime.datetime(2025, 3, 28, 5, 38, 36), 'result': '0.049731274369713266', 'result_long': None, 'result_double': None}] Qualite : 0.049731274369713266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21760560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21760560_28-03-2025_05_38_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21760560 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_P21760560_28-03-2025_05_38_40.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21760561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21760562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21760563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21760564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21760565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21760566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21760567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21760568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21760569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21760570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21760571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21760572, 'pht': 3726}}" where mtr_portfolio_id = 21760560 and dashboard_run_id = 1704324 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`=21760560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705849, 0.049731274369713266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21760560_28-03-2025_05_38_40.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21760561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21760562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21760563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21760564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21760565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21760566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21760567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21760568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21760569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21760570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21760571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21760572, '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 = 21762076 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': 2700129, 'mtr_portfolio_id': 21762076, 'created_at': datetime.datetime(2025, 3, 28, 5, 38, 41), 'result': '0.053967991628915954', 'result_long': None, 'result_double': None}] Qualite : 0.053967991628915954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21762076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21762076_28-03-2025_05_38_46.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21762076 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_P21762076_28-03-2025_05_38_46.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21762077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21762078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21762079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21762080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21762081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21762082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21762083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21762084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21762085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21762086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21762087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21762088, 'pht': 3726}}" where mtr_portfolio_id = 21762076 and dashboard_run_id = 1704324 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`=21762076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705850, 0.053967991628915954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21762076_28-03-2025_05_38_46.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21762077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21762078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21762079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21762080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21762081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21762082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21762083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21762084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21762085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21762086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21762087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21762088, '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 = 21762613 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': 2700130, 'mtr_portfolio_id': 21762613, 'created_at': datetime.datetime(2025, 3, 28, 5, 39, 2), 'result': '0.0477501497589897', 'result_long': None, 'result_double': None}] Qualite : 0.0477501497589897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21762613 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21762613_28-03-2025_05_39_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21762613 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_P21762613_28-03-2025_05_39_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21762614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21762615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21762616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21762617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21762618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21762619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21762620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21762621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21762622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21762623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21762624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21762625, 'pht': 3726}}" where mtr_portfolio_id = 21762613 and dashboard_run_id = 1704324 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`=21762613 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705851, 0.0477501497589897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21762613_28-03-2025_05_39_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21762614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21762615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21762616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21762617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21762618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21762619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21762620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21762621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21762622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21762623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21762624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21762625, '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 = 21763101 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': 2700131, 'mtr_portfolio_id': 21763101, 'created_at': datetime.datetime(2025, 3, 28, 5, 39, 32), 'result': '0.056133759021765574', 'result_long': None, 'result_double': None}] Qualite : 0.056133759021765574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21763101 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21763101_28-03-2025_05_39_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21763101 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_P21763101_28-03-2025_05_39_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21763102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21763103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21763104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21763105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21763106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21763107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21763108, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21763109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21763110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21763111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21763112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21763113, 'pht': 3726}}" where mtr_portfolio_id = 21763101 and dashboard_run_id = 1704324 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`=21763101 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705853, 0.056133759021765574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21763101_28-03-2025_05_39_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21763102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21763103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21763104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21763105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21763106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21763107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21763108, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21763109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21763110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21763111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21763112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21763113, '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 = 21763711 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': 2700132, 'mtr_portfolio_id': 21763711, 'created_at': datetime.datetime(2025, 3, 28, 5, 40, 3), 'result': '0.046367376830309906', 'result_long': None, 'result_double': None}] Qualite : 0.046367376830309906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21763711 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21763711_28-03-2025_05_40_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21763711 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_P21763711_28-03-2025_05_40_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21763753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21763754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21763758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21763764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21763769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21763770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21763771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21763772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21763773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21763774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21763775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21763776, 'pht': 3726}}" where mtr_portfolio_id = 21763711 and dashboard_run_id = 1704324 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`=21763711 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705854, 0.046367376830309906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21763711_28-03-2025_05_40_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21763753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21763754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21763758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21763764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21763769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21763770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21763771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21763772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21763773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21763774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21763775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21763776, '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 = 21764831 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': 2700133, 'mtr_portfolio_id': 21764831, 'created_at': datetime.datetime(2025, 3, 28, 5, 41, 3), 'result': '0.04503156700451603', 'result_long': None, 'result_double': None}] Qualite : 0.04503156700451603 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21764831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21764831_28-03-2025_05_41_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21764831 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_P21764831_28-03-2025_05_41_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21764856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21764857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21764858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21764859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21764860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21764861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21764862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21764863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21764864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21764865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21764866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21764867, 'pht': 3726}}" where mtr_portfolio_id = 21764831 and dashboard_run_id = 1704324 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`=21764831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705855, 0.04503156700451603, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21764831_28-03-2025_05_41_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21764856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21764857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21764858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21764859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21764860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21764861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21764862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21764863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21764864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21764865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21764866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21764867, '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 = 21765473 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': 2700134, 'mtr_portfolio_id': 21765473, 'created_at': datetime.datetime(2025, 3, 28, 5, 41, 4), 'result': '0.05501494028186477', 'result_long': None, 'result_double': None}] Qualite : 0.05501494028186477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21765473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21765473_28-03-2025_05_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21765473 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_P21765473_28-03-2025_05_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21765490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21765491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21765492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21765493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21765494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21765495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21765496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21765497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21765498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21765499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21765500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21765501, 'pht': 3726}}" where mtr_portfolio_id = 21765473 and dashboard_run_id = 1704324 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`=21765473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705856, 0.05501494028186477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21765473_28-03-2025_05_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21765490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21765491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21765492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21765493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21765494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21765495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21765496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21765497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21765498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21765499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21765500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21765501, '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 = 21766075 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': 2700135, 'mtr_portfolio_id': 21766075, 'created_at': datetime.datetime(2025, 3, 28, 5, 41, 34), 'result': '0.05539176413402483', 'result_long': None, 'result_double': None}] Qualite : 0.05539176413402483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21766075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766075_28-03-2025_05_41_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21766075 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_P21766075_28-03-2025_05_41_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21766084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766088, 'pht': 3726}}" where mtr_portfolio_id = 21766075 and dashboard_run_id = 1704324 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`=21766075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705857, 0.05539176413402483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766075_28-03-2025_05_41_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21766084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766088, '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 = 21766833 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': 2700136, 'mtr_portfolio_id': 21766833, 'created_at': datetime.datetime(2025, 3, 28, 5, 42, 3), 'result': '0.050071496272366865', 'result_long': None, 'result_double': None}] Qualite : 0.050071496272366865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21766833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766833_28-03-2025_05_42_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21766833 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_P21766833_28-03-2025_05_42_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21766834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766845, 'pht': 3726}}" where mtr_portfolio_id = 21766833 and dashboard_run_id = 1704324 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`=21766833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705859, 0.050071496272366865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766833_28-03-2025_05_42_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21766834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766845, '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 = 21767496 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': 2700137, 'mtr_portfolio_id': 21767496, 'created_at': datetime.datetime(2025, 3, 28, 5, 42, 37), 'result': '0.06394198129856013', 'result_long': None, 'result_double': None}] Qualite : 0.06394198129856013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21767496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21767496_28-03-2025_05_42_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21767496 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_P21767496_28-03-2025_05_42_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21767497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21767498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21767499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21767500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21767501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21767502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21767503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21767504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21767505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21767506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21767507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21767508, 'pht': 3726}}" where mtr_portfolio_id = 21767496 and dashboard_run_id = 1704324 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`=21767496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705860, 0.06394198129856013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21767496_28-03-2025_05_42_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21767497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21767498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21767499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21767500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21767501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21767502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21767503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21767504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21767505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21767506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21767507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21767508, '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 = 21768004 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': 2700138, 'mtr_portfolio_id': 21768004, 'created_at': datetime.datetime(2025, 3, 28, 5, 43, 33), 'result': '0.05019140508386002', 'result_long': None, 'result_double': None}] Qualite : 0.05019140508386002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21768004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21768004_28-03-2025_05_43_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21768004 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_P21768004_28-03-2025_05_43_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21768008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21768009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21768010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21768011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21768012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21768013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21768014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21768015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21768016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21768017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21768018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21768019, 'pht': 3726}}" where mtr_portfolio_id = 21768004 and dashboard_run_id = 1704324 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`=21768004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705861, 0.05019140508386002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21768004_28-03-2025_05_43_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21768008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21768009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21768010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21768011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21768012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21768013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21768014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21768015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21768016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21768017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21768018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21768019, '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 = 21768690 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': 2700139, 'mtr_portfolio_id': 21768690, 'created_at': datetime.datetime(2025, 3, 28, 5, 44, 31), 'result': '0.05038703928854765', 'result_long': None, 'result_double': None}] Qualite : 0.05038703928854765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21768690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21768690_28-03-2025_05_44_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21768690 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_P21768690_28-03-2025_05_44_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21768848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21768849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21768850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21768851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21768852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21768853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21768854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21768855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21768856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21768857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21768858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21768859, 'pht': 3726}}" where mtr_portfolio_id = 21768690 and dashboard_run_id = 1704324 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`=21768690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705862, 0.05038703928854765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21768690_28-03-2025_05_44_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21768848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21768849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21768850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21768851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21768852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21768853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21768854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21768855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21768856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21768857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21768858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21768859, '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 = 21770204 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': 2700140, 'mtr_portfolio_id': 21770204, 'created_at': datetime.datetime(2025, 3, 28, 5, 44, 29), 'result': '0.039320959264643886', 'result_long': None, 'result_double': None}] Qualite : 0.039320959264643886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21770204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770204_28-03-2025_05_44_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21770204 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_P21770204_28-03-2025_05_44_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770216, 'pht': 3726}}" where mtr_portfolio_id = 21770204 and dashboard_run_id = 1704324 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`=21770204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705863, 0.039320959264643886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770204_28-03-2025_05_44_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770216, '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 = 21770457 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': 2700141, 'mtr_portfolio_id': 21770457, 'created_at': datetime.datetime(2025, 3, 28, 5, 45, 2), 'result': '0.04882795357434933', 'result_long': None, 'result_double': None}] Qualite : 0.04882795357434933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21770457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770457_28-03-2025_05_45_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21770457 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_P21770457_28-03-2025_05_45_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770469, 'pht': 3726}}" where mtr_portfolio_id = 21770457 and dashboard_run_id = 1704324 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`=21770457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705864, 0.04882795357434933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770457_28-03-2025_05_45_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770469, '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 = 21770821 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': 2700142, 'mtr_portfolio_id': 21770821, 'created_at': datetime.datetime(2025, 3, 28, 5, 45, 32), 'result': '0.0435902899386338', 'result_long': None, 'result_double': None}] Qualite : 0.0435902899386338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21770821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770821_28-03-2025_05_45_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21770821 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_P21770821_28-03-2025_05_45_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770833, 'pht': 3726}}" where mtr_portfolio_id = 21770821 and dashboard_run_id = 1704324 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`=21770821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705865, 0.0435902899386338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770821_28-03-2025_05_45_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770833, '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 = 21771188 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': 2700143, 'mtr_portfolio_id': 21771188, 'created_at': datetime.datetime(2025, 3, 28, 5, 45, 59), 'result': '0.04051308480255817', 'result_long': None, 'result_double': None}] Qualite : 0.04051308480255817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21771188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21771188_28-03-2025_05_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21771188 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_P21771188_28-03-2025_05_46_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21771334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21771335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21771336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21771337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21771338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21771339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21771340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21771341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21771342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21771343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21771344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21771345, 'pht': 3726}}" where mtr_portfolio_id = 21771188 and dashboard_run_id = 1704324 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`=21771188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705867, 0.04051308480255817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21771188_28-03-2025_05_46_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21771334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21771335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21771336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21771337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21771338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21771339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21771340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21771341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21771342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21771343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21771344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21771345, '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 = 21771757 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': 2700144, 'mtr_portfolio_id': 21771757, 'created_at': datetime.datetime(2025, 3, 28, 5, 46, 34), 'result': '0.034133801233277423', 'result_long': None, 'result_double': None}] Qualite : 0.034133801233277423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21771757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21771757_28-03-2025_05_46_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21771757 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_P21771757_28-03-2025_05_46_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21771758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21771759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21771760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21771761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21771762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21771763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21771764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21771765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21771766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21771767, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21771768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21771769, 'pht': 3726}}" where mtr_portfolio_id = 21771757 and dashboard_run_id = 1704324 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`=21771757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705868, 0.034133801233277423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21771757_28-03-2025_05_46_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21771758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21771759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21771760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21771761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21771762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21771763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21771764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21771765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21771766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21771767, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21771768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21771769, '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 = 21772390 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': 2700145, 'mtr_portfolio_id': 21772390, 'created_at': datetime.datetime(2025, 3, 28, 5, 48, 2), 'result': '0.04517209777160899', 'result_long': None, 'result_double': None}] Qualite : 0.04517209777160899 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21772390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21772390_28-03-2025_05_48_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21772390 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_P21772390_28-03-2025_05_48_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21772391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21772392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21772393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21772394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21772395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21772396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21772397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21772398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21772399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21772400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21772401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21772402, 'pht': 3726}}" where mtr_portfolio_id = 21772390 and dashboard_run_id = 1704324 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`=21772390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705870, 0.04517209777160899, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21772390_28-03-2025_05_48_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21772391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21772392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21772393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21772394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21772395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21772396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21772397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21772398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21772399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21772400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21772401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21772402, '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 = 21772816 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': 2700146, 'mtr_portfolio_id': 21772816, 'created_at': datetime.datetime(2025, 3, 28, 5, 48, 30), 'result': '0.042988202118390786', 'result_long': None, 'result_double': None}] Qualite : 0.042988202118390786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21772816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21772816_28-03-2025_05_48_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21772816 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_P21772816_28-03-2025_05_48_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21772817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21772818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21772819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21772820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21772821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21772822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21772823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21772824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21772825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21772826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21772827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21772828, 'pht': 3726}}" where mtr_portfolio_id = 21772816 and dashboard_run_id = 1704324 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`=21772816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705871, 0.042988202118390786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21772816_28-03-2025_05_48_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21772817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21772818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21772819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21772820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21772821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21772822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21772823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21772824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21772825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21772826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21772827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21772828, '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 = 21773405 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': 2700147, 'mtr_portfolio_id': 21773405, 'created_at': datetime.datetime(2025, 3, 28, 5, 48, 59), 'result': '0.04283255742849496', 'result_long': None, 'result_double': None}] Qualite : 0.04283255742849496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21773405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21773405_28-03-2025_05_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21773405 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_P21773405_28-03-2025_05_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21773406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21773407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21773408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21773409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21773410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21773411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21773412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21773413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21773414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21773415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21773416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21773417, 'pht': 3726}}" where mtr_portfolio_id = 21773405 and dashboard_run_id = 1704324 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`=21773405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705872, 0.04283255742849496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21773405_28-03-2025_05_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21773406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21773407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21773408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21773409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21773410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21773411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21773412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21773413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21773414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21773415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21773416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21773417, '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 = 21774042 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': 2700148, 'mtr_portfolio_id': 21774042, 'created_at': datetime.datetime(2025, 3, 28, 5, 49, 9), 'result': '0.038591290531782965', 'result_long': None, 'result_double': None}] Qualite : 0.038591290531782965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21774042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21774042_28-03-2025_05_49_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21774042 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_P21774042_28-03-2025_05_49_14.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21774044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21774045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21774046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21774047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21774048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21774049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21774050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21774051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21774052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21774053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21774054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21774055, 'pht': 3726}}" where mtr_portfolio_id = 21774042 and dashboard_run_id = 1704324 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`=21774042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705873, 0.038591290531782965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21774042_28-03-2025_05_49_14.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21774044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21774045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21774046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21774047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21774048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21774049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21774050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21774051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21774052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21774053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21774054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21774055, '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 = 21774467 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': 2700149, 'mtr_portfolio_id': 21774467, 'created_at': datetime.datetime(2025, 3, 28, 5, 49, 38), 'result': '0.037355523374505165', 'result_long': None, 'result_double': None}] Qualite : 0.037355523374505165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21774467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21774467_28-03-2025_05_49_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21774467 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_P21774467_28-03-2025_05_49_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21774494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21774495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21774496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21774497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21774498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21774499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21774500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21774501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21774502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21774503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21774504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21774505, 'pht': 3726}}" where mtr_portfolio_id = 21774467 and dashboard_run_id = 1704324 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`=21774467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705875, 0.037355523374505165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21774467_28-03-2025_05_49_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21774494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21774495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21774496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21774497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21774498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21774499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21774500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21774501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21774502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21774503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21774504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21774505, '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 = 21775253 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': 2700150, 'mtr_portfolio_id': 21775253, 'created_at': datetime.datetime(2025, 3, 28, 5, 50, 6), 'result': '0.03456365109532829', 'result_long': None, 'result_double': None}] Qualite : 0.03456365109532829 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21775253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21775253_28-03-2025_05_50_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21775253 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_P21775253_28-03-2025_05_50_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21775254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21775255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21775256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21775257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21775258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21775259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21775260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21775261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21775262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21775263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21775264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21775265, 'pht': 3726}}" where mtr_portfolio_id = 21775253 and dashboard_run_id = 1704324 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`=21775253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705876, 0.03456365109532829, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21775253_28-03-2025_05_50_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21775254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21775255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21775256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21775257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21775258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21775259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21775260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21775261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21775262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21775263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21775264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21775265, '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 = 21776066 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': 2700151, 'mtr_portfolio_id': 21776066, 'created_at': datetime.datetime(2025, 3, 28, 5, 50, 34), 'result': '0.04715890011995229', 'result_long': None, 'result_double': None}] Qualite : 0.04715890011995229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21776066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21776066_28-03-2025_05_50_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21776066 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_P21776066_28-03-2025_05_50_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21776067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21776068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21776069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21776070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21776071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21776072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21776073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21776074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21776075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21776076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21776077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21776078, 'pht': 3726}}" where mtr_portfolio_id = 21776066 and dashboard_run_id = 1704324 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`=21776066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705877, 0.04715890011995229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21776066_28-03-2025_05_50_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21776067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21776068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21776069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21776070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21776071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21776072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21776073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21776074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21776075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21776076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21776077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21776078, '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 = 21776767 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': 2700152, 'mtr_portfolio_id': 21776767, 'created_at': datetime.datetime(2025, 3, 28, 5, 52, 3), 'result': '0.02894536830011885', 'result_long': None, 'result_double': None}] Qualite : 0.02894536830011885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21776767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21776767_28-03-2025_05_52_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21776767 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_P21776767_28-03-2025_05_52_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21776786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21776787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21776788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21776789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21776790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21776791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21776792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21776793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21776794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21776795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21776796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21776797, 'pht': 3726}}" where mtr_portfolio_id = 21776767 and dashboard_run_id = 1704324 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`=21776767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705878, 0.02894536830011885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21776767_28-03-2025_05_52_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21776786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21776787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21776788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21776789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21776790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21776791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21776792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21776793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21776794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21776795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21776796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21776797, '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 = 21777493 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': 2700153, 'mtr_portfolio_id': 21777493, 'created_at': datetime.datetime(2025, 3, 28, 5, 52, 32), 'result': '0.033024254736511056', 'result_long': None, 'result_double': None}] Qualite : 0.033024254736511056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21777493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21777493_28-03-2025_05_52_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21777493 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_P21777493_28-03-2025_05_52_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21777494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21777495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21777496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21777497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21777498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21777499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21777500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21777501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21777502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21777503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21777504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21777505, 'pht': 3726}}" where mtr_portfolio_id = 21777493 and dashboard_run_id = 1704324 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`=21777493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705879, 0.033024254736511056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21777493_28-03-2025_05_52_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21777494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21777495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21777496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21777497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21777498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21777499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21777500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21777501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21777502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21777503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21777504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21777505, '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 = 21777879 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': 2700154, 'mtr_portfolio_id': 21777879, 'created_at': datetime.datetime(2025, 3, 28, 5, 53, 32), 'result': '0.04473867921128223', 'result_long': None, 'result_double': None}] Qualite : 0.04473867921128223 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21777879 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21777879_28-03-2025_05_53_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21777879 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_P21777879_28-03-2025_05_53_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21777897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21777898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21777899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21777900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21777901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21777902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21777903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21777904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21777905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21777906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21777907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21777908, 'pht': 3726}}" where mtr_portfolio_id = 21777879 and dashboard_run_id = 1704324 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`=21777879 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705881, 0.04473867921128223, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21777879_28-03-2025_05_53_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21777897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21777898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21777899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21777900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21777901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21777902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21777903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21777904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21777905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21777906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21777907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21777908, '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 = 21778767 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': 2700155, 'mtr_portfolio_id': 21778767, 'created_at': datetime.datetime(2025, 3, 28, 5, 54, 36), 'result': '0.040167104150666676', 'result_long': None, 'result_double': None}] Qualite : 0.040167104150666676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21778767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21778767_28-03-2025_05_54_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21778767 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_P21778767_28-03-2025_05_54_40.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21778793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21778794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21778795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21778796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21778797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21778798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21778799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21778800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21778801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21778802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21778803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21778804, 'pht': 3726}}" where mtr_portfolio_id = 21778767 and dashboard_run_id = 1704324 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`=21778767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705882, 0.040167104150666676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21778767_28-03-2025_05_54_40.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21778793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21778794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21778795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21778796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21778797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21778798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21778799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21778800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21778801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21778802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21778803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21778804, '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 = 21780673 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': 2700156, 'mtr_portfolio_id': 21780673, 'created_at': datetime.datetime(2025, 3, 28, 5, 55, 3), 'result': '0.038945424377080484', 'result_long': None, 'result_double': None}] Qualite : 0.038945424377080484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21780673 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21780673_28-03-2025_05_55_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21780673 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_P21780673_28-03-2025_05_55_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21780674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21780675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21780676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21780677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21780678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21780679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21780680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21780681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21780682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21780683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21780684, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21780685, 'pht': 3726}}" where mtr_portfolio_id = 21780673 and dashboard_run_id = 1704324 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`=21780673 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705883, 0.038945424377080484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21780673_28-03-2025_05_55_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21780674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21780675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21780676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21780677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21780678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21780679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21780680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21780681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21780682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21780683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21780684, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21780685, '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 = 21781186 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': 2700157, 'mtr_portfolio_id': 21781186, 'created_at': datetime.datetime(2025, 3, 28, 5, 55, 33), 'result': '0.04465871048944359', 'result_long': None, 'result_double': None}] Qualite : 0.04465871048944359 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21781186 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21781186_28-03-2025_05_55_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21781186 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_P21781186_28-03-2025_05_55_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21781187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21781188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21781189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21781190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21781191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21781192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21781193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21781194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21781195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21781196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21781197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21781198, 'pht': 3726}}" where mtr_portfolio_id = 21781186 and dashboard_run_id = 1704324 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`=21781186 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705884, 0.04465871048944359, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21781186_28-03-2025_05_55_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21781187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21781188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21781189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21781190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21781191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21781192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21781193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21781194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21781195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21781196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21781197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21781198, '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 = 21781704 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': 2700158, 'mtr_portfolio_id': 21781704, 'created_at': datetime.datetime(2025, 3, 28, 5, 56, 2), 'result': '0.04019197829907354', 'result_long': None, 'result_double': None}] Qualite : 0.04019197829907354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21781704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21781704_28-03-2025_05_56_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21781704 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_P21781704_28-03-2025_05_56_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21781705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21781706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21781707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21781708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21781709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21781710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21781711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21781712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21781713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21781714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21781715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21781716, 'pht': 3726}}" where mtr_portfolio_id = 21781704 and dashboard_run_id = 1704324 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`=21781704 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705885, 0.04019197829907354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21781704_28-03-2025_05_56_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21781705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21781706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21781707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21781708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21781709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21781710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21781711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21781712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21781713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21781714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21781715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21781716, '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 = 21782552 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': 2700159, 'mtr_portfolio_id': 21782552, 'created_at': datetime.datetime(2025, 3, 28, 5, 56, 29), 'result': '0.036298152991072266', 'result_long': None, 'result_double': None}] Qualite : 0.036298152991072266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21782552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21782552_28-03-2025_05_56_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21782552 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_P21782552_28-03-2025_05_56_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21782578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21782579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21782580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21782581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21782582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21782583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21782584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21782585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21782586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21782587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21782588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21782589, 'pht': 3726}}" where mtr_portfolio_id = 21782552 and dashboard_run_id = 1704324 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`=21782552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705887, 0.036298152991072266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21782552_28-03-2025_05_56_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21782578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21782579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21782580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21782581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21782582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21782583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21782584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21782585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21782586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21782587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21782588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21782589, '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 = 21783391 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': 2700160, 'mtr_portfolio_id': 21783391, 'created_at': datetime.datetime(2025, 3, 28, 5, 57, 32), 'result': '0.04966056536217398', 'result_long': None, 'result_double': None}] Qualite : 0.04966056536217398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21783391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21783391_28-03-2025_05_57_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21783391 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_P21783391_28-03-2025_05_57_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21783392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21783393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21783394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21783395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21783396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21783397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21783398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21783399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21783400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21783401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21783402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21783403, 'pht': 3726}}" where mtr_portfolio_id = 21783391 and dashboard_run_id = 1704324 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`=21783391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705888, 0.04966056536217398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21783391_28-03-2025_05_57_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21783392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21783393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21783394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21783395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21783396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21783397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21783398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21783399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21783400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21783401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21783402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21783403, '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 = 21784021 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': 2700161, 'mtr_portfolio_id': 21784021, 'created_at': datetime.datetime(2025, 3, 28, 5, 58, 8), 'result': '0.03798724466175919', 'result_long': None, 'result_double': None}] Qualite : 0.03798724466175919 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21784021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784021_28-03-2025_05_58_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21784021 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_P21784021_28-03-2025_05_58_11.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21784038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784045, 'pht': 3726}}" where mtr_portfolio_id = 21784021 and dashboard_run_id = 1704324 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`=21784021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705889, 0.03798724466175919, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784021_28-03-2025_05_58_11.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21784038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784045, '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 = 21784732 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': 2700162, 'mtr_portfolio_id': 21784732, 'created_at': datetime.datetime(2025, 3, 28, 5, 58, 32), 'result': '0.03929096511548565', 'result_long': None, 'result_double': None}] Qualite : 0.03929096511548565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21784732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784732_28-03-2025_05_58_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21784732 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_P21784732_28-03-2025_05_58_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21784774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784785, 'pht': 3726}}" where mtr_portfolio_id = 21784732 and dashboard_run_id = 1704324 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`=21784732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705890, 0.03929096511548565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784732_28-03-2025_05_58_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21784774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784785, '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 = 21785685 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': 2700163, 'mtr_portfolio_id': 21785685, 'created_at': datetime.datetime(2025, 3, 28, 5, 58, 32), 'result': '0.04810213422986579', 'result_long': None, 'result_double': None}] Qualite : 0.04810213422986579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21785685 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21785685_28-03-2025_05_58_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21785685 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_P21785685_28-03-2025_05_58_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21785758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21785759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21785760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21785761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21785762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21785763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21785764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21785765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21785766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21785767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21785768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21785769, 'pht': 3726}}" where mtr_portfolio_id = 21785685 and dashboard_run_id = 1704324 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`=21785685 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705891, 0.04810213422986579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21785685_28-03-2025_05_58_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21785758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21785759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21785760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21785761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21785762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21785763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21785764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21785765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21785766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21785767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21785768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21785769, '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 = 21786502 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': 2700164, 'mtr_portfolio_id': 21786502, 'created_at': datetime.datetime(2025, 3, 28, 5, 59, 1), 'result': '0.034903873300726855', 'result_long': None, 'result_double': None}] Qualite : 0.034903873300726855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21786502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21786502_28-03-2025_05_59_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21786502 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_P21786502_28-03-2025_05_59_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21786552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21786553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21786554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21786555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21786556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21786557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21786558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21786559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21786560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21786561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21786562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21786563, 'pht': 3726}}" where mtr_portfolio_id = 21786502 and dashboard_run_id = 1704324 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`=21786502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705892, 0.034903873300726855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21786502_28-03-2025_05_59_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21786552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21786553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21786554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21786555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21786556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21786557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21786558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21786559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21786560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21786561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21786562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21786563, '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 = 21787646 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': 2700165, 'mtr_portfolio_id': 21787646, 'created_at': datetime.datetime(2025, 3, 28, 5, 59, 36), 'result': '0.034763009498363036', 'result_long': None, 'result_double': None}] Qualite : 0.034763009498363036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21787646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21787646_28-03-2025_05_59_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21787646 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_P21787646_28-03-2025_05_59_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21787647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21787648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21787649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21787650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21787651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21787652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21787653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21787654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21787655, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21787656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21787657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21787658, 'pht': 3726}}" where mtr_portfolio_id = 21787646 and dashboard_run_id = 1704324 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`=21787646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705894, 0.034763009498363036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21787646_28-03-2025_05_59_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21787647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21787648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21787649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21787650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21787651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21787652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21787653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21787654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21787655, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21787656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21787657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21787658, '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 = 21788405 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': 2700166, 'mtr_portfolio_id': 21788405, 'created_at': datetime.datetime(2025, 3, 28, 6, 0, 3), 'result': '0.037194559978506486', 'result_long': None, 'result_double': None}] Qualite : 0.037194559978506486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21788405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21788405_28-03-2025_06_00_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21788405 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_P21788405_28-03-2025_06_00_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21788406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21788407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21788408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21788409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21788410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21788411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21788412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21788413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21788414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21788415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21788416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21788417, 'pht': 3726}}" where mtr_portfolio_id = 21788405 and dashboard_run_id = 1704324 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`=21788405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705895, 0.037194559978506486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21788405_28-03-2025_06_00_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21788406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21788407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21788408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21788409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21788410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21788411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21788412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21788413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21788414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21788415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21788416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21788417, '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 = 21791777 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': 2700167, 'mtr_portfolio_id': 21791777, 'created_at': datetime.datetime(2025, 3, 28, 6, 0, 37), 'result': '0.03915880618294535', 'result_long': None, 'result_double': None}] Qualite : 0.03915880618294535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21791777 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21791777_28-03-2025_06_00_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21791777 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_P21791777_28-03-2025_06_00_39.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21791778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21791779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21791780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21791781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21791782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21791783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21791784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21791785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21791786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21791787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21791788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21791789, 'pht': 3726}}" where mtr_portfolio_id = 21791777 and dashboard_run_id = 1704324 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`=21791777 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705896, 0.03915880618294535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21791777_28-03-2025_06_00_39.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21791778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21791779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21791780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21791781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21791782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21791783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21791784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21791785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21791786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21791787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21791788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21791789, '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 = 21792313 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': 2700168, 'mtr_portfolio_id': 21792313, 'created_at': datetime.datetime(2025, 3, 28, 6, 1, 1), 'result': '0.03930366098967584', 'result_long': None, 'result_double': None}] Qualite : 0.03930366098967584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21792313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21792313_28-03-2025_06_01_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21792313 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_P21792313_28-03-2025_06_01_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792325, 'pht': 3726}}" where mtr_portfolio_id = 21792313 and dashboard_run_id = 1704324 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`=21792313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705897, 0.03930366098967584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21792313_28-03-2025_06_01_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792325, '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 = 21792882 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': 2700169, 'mtr_portfolio_id': 21792882, 'created_at': datetime.datetime(2025, 3, 28, 6, 1, 32), 'result': '0.04137320591141915', 'result_long': None, 'result_double': None}] Qualite : 0.04137320591141915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21792882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21792882_28-03-2025_06_01_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21792882 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_P21792882_28-03-2025_06_01_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792918, 'pht': 3726}}" where mtr_portfolio_id = 21792882 and dashboard_run_id = 1704324 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`=21792882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705899, 0.04137320591141915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21792882_28-03-2025_06_01_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792918, '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 = 21793383 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': 2700170, 'mtr_portfolio_id': 21793383, 'created_at': datetime.datetime(2025, 3, 28, 6, 2, 6), 'result': '0.0276509970659691', 'result_long': None, 'result_double': None}] Qualite : 0.0276509970659691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21793383 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21793383_28-03-2025_06_02_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21793383 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_P21793383_28-03-2025_06_02_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21793384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21793385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21793386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21793387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21793388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21793389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21793390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21793391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21793392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21793393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21793394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21793395, 'pht': 3726}}" where mtr_portfolio_id = 21793383 and dashboard_run_id = 1704324 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`=21793383 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705900, 0.0276509970659691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21793383_28-03-2025_06_02_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21793384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21793385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21793386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21793387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21793388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21793389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21793390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21793391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21793392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21793393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21793394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21793395, '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 = 21794285 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': 2700171, 'mtr_portfolio_id': 21794285, 'created_at': datetime.datetime(2025, 3, 28, 6, 2, 35), 'result': '0.021833907672423335', 'result_long': None, 'result_double': None}] Qualite : 0.021833907672423335 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21794285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21794285_28-03-2025_06_02_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21794285 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_P21794285_28-03-2025_06_02_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21794286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21794287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21794288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21794289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21794290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21794291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21794292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21794293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21794294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21794295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21794296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21794297, 'pht': 3726}}" where mtr_portfolio_id = 21794285 and dashboard_run_id = 1704324 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`=21794285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705901, 0.021833907672423335, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21794285_28-03-2025_06_02_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21794286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21794287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21794288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21794289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21794290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21794291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21794292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21794293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21794294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21794295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21794296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21794297, '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 = 21794901 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': 2700172, 'mtr_portfolio_id': 21794901, 'created_at': datetime.datetime(2025, 3, 28, 6, 3, 29), 'result': '0.04354889425737895', 'result_long': None, 'result_double': None}] Qualite : 0.04354889425737895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21794901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21794901_28-03-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21794901 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_P21794901_28-03-2025_06_03_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21794929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21794931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21794932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21794933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21794935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21794936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21794937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21794939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21794940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21794941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21794943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21794944, 'pht': 3726}}" where mtr_portfolio_id = 21794901 and dashboard_run_id = 1704324 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`=21794901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705902, 0.04354889425737895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21794901_28-03-2025_06_03_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21794929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21794931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21794932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21794933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21794935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21794936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21794937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21794939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21794940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21794941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21794943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21794944, '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 = 21795720 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': 2700173, 'mtr_portfolio_id': 21795720, 'created_at': datetime.datetime(2025, 3, 28, 6, 3, 59), 'result': '0.03719400232326102', 'result_long': None, 'result_double': None}] Qualite : 0.03719400232326102 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21795720 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21795720_28-03-2025_06_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21795720 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_P21795720_28-03-2025_06_04_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21795757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21795758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21795759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21795760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21795761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21795762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21795763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21795764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21795765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21795766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21795767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21795768, 'pht': 3726}}" where mtr_portfolio_id = 21795720 and dashboard_run_id = 1704324 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`=21795720 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705903, 0.03719400232326102, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21795720_28-03-2025_06_04_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21795757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21795758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21795759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21795760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21795761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21795762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21795763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21795764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21795765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21795766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21795767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21795768, '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 = 21796790 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': 2700174, 'mtr_portfolio_id': 21796790, 'created_at': datetime.datetime(2025, 3, 28, 6, 4, 31), 'result': '0.03687328557265497', 'result_long': None, 'result_double': None}] Qualite : 0.03687328557265497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21796790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21796790_28-03-2025_06_04_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21796790 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_P21796790_28-03-2025_06_04_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21796797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21796798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21796799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21796800, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21796801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21796802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21796803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21796804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21796805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21796806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21796807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21796808, 'pht': 3726}}" where mtr_portfolio_id = 21796790 and dashboard_run_id = 1704324 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`=21796790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705904, 0.03687328557265497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21796790_28-03-2025_06_04_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21796797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21796798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21796799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21796800, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21796801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21796802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21796803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21796804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21796805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21796806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21796807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21796808, '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 = 21797691 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': 2700175, 'mtr_portfolio_id': 21797691, 'created_at': datetime.datetime(2025, 3, 28, 6, 5, 29), 'result': '0.04678040094364317', 'result_long': None, 'result_double': None}] Qualite : 0.04678040094364317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21797691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21797691_28-03-2025_06_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21797691 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_P21797691_28-03-2025_06_05_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21797740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21797741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21797742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21797743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21797744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21797745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21797746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21797747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21797748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21797749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21797750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21797751, 'pht': 3726}}" where mtr_portfolio_id = 21797691 and dashboard_run_id = 1704324 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`=21797691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705906, 0.04678040094364317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21797691_28-03-2025_06_05_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21797740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21797741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21797742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21797743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21797744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21797745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21797746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21797747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21797748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21797749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21797750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21797751, '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 = 21798421 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': 2700176, 'mtr_portfolio_id': 21798421, 'created_at': datetime.datetime(2025, 3, 28, 6, 6, 33), 'result': '0.05479831127169232', 'result_long': None, 'result_double': None}] Qualite : 0.05479831127169232 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21798421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21798421_28-03-2025_06_06_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21798421 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_P21798421_28-03-2025_06_06_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21798440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21798443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21798445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21798446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21798447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21798448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21798449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21798450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21798451, 'pht': 3726}}" where mtr_portfolio_id = 21798421 and dashboard_run_id = 1704324 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`=21798421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705907, 0.05479831127169232, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21798421_28-03-2025_06_06_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21798440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21798443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21798445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21798446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21798447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21798448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21798449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21798450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21798451, '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 = 21799507 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': 2700177, 'mtr_portfolio_id': 21799507, 'created_at': datetime.datetime(2025, 3, 28, 6, 7, 4), 'result': '0.03577015248479891', 'result_long': None, 'result_double': None}] Qualite : 0.03577015248479891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21799507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21799507_28-03-2025_06_07_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21799507 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_P21799507_28-03-2025_06_07_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21799508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21799509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21799510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21799511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21799512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21799513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21799514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21799515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21799516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21799517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21799518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21799519, 'pht': 3726}}" where mtr_portfolio_id = 21799507 and dashboard_run_id = 1704324 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`=21799507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705908, 0.03577015248479891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21799507_28-03-2025_06_07_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21799508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21799509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21799510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21799511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21799512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21799513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21799514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21799515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21799516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21799517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21799518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21799519, '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 = 21800448 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': 2700178, 'mtr_portfolio_id': 21800448, 'created_at': datetime.datetime(2025, 3, 28, 6, 7, 34), 'result': '0.04413695941029635', 'result_long': None, 'result_double': None}] Qualite : 0.04413695941029635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21800448 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21800448_28-03-2025_06_07_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21800448 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_P21800448_28-03-2025_06_07_38.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21800575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21800576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21800577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21800578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21800579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21800580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21800581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21800582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21800583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21800584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21800585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21800586, 'pht': 3726}}" where mtr_portfolio_id = 21800448 and dashboard_run_id = 1704324 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`=21800448 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705909, 0.04413695941029635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21800448_28-03-2025_06_07_38.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21800575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21800576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21800577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21800578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21800579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21800580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21800581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21800582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21800583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21800584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21800585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21800586, '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 = 21801548 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': 2700179, 'mtr_portfolio_id': 21801548, 'created_at': datetime.datetime(2025, 3, 28, 6, 8, 5), 'result': '0.03206490064876315', 'result_long': None, 'result_double': None}] Qualite : 0.03206490064876315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21801548 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21801548_28-03-2025_06_08_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21801548 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_P21801548_28-03-2025_06_08_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21801549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21801550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21801551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21801552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21801553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21801554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21801555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21801556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21801557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21801558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21801559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21801560, 'pht': 3726}}" where mtr_portfolio_id = 21801548 and dashboard_run_id = 1704324 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`=21801548 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705910, 0.03206490064876315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21801548_28-03-2025_06_08_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21801549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21801550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21801551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21801552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21801553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21801554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21801555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21801556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21801557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21801558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21801559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21801560, '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 = 21802456 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': 2700180, 'mtr_portfolio_id': 21802456, 'created_at': datetime.datetime(2025, 3, 28, 6, 8, 28), 'result': '0.036572966805892226', 'result_long': None, 'result_double': None}] Qualite : 0.036572966805892226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21802456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21802456_28-03-2025_06_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21802456 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_P21802456_28-03-2025_06_08_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21802477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21802478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21802479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21802481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21802482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21802483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21802484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21802485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21802486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21802487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21802488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21802489, 'pht': 3726}}" where mtr_portfolio_id = 21802456 and dashboard_run_id = 1704324 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`=21802456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705912, 0.036572966805892226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21802456_28-03-2025_06_08_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21802477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21802478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21802479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21802481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21802482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21802483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21802484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21802485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21802486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21802487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21802488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21802489, '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 = 21803547 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': 2700181, 'mtr_portfolio_id': 21803547, 'created_at': datetime.datetime(2025, 3, 28, 6, 9, 32), 'result': '0.038749589548619', 'result_long': None, 'result_double': None}] Qualite : 0.038749589548619 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21803547 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21803547_28-03-2025_06_09_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21803547 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_P21803547_28-03-2025_06_09_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21803589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21803590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21803591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21803592, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21803593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21803594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21803595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21803596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21803597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21803598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21803599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21803600, 'pht': 3726}}" where mtr_portfolio_id = 21803547 and dashboard_run_id = 1704324 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`=21803547 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705913, 0.038749589548619, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21803547_28-03-2025_06_09_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21803589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21803590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21803591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21803592, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21803593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21803594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21803595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21803596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21803597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21803598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21803599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21803600, '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 = 21805405 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': 2700182, 'mtr_portfolio_id': 21805405, 'created_at': datetime.datetime(2025, 3, 28, 6, 10, 5), 'result': '0.049393511186369005', 'result_long': None, 'result_double': None}] Qualite : 0.049393511186369005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21805405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21805405_28-03-2025_06_10_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21805405 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_P21805405_28-03-2025_06_10_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21805509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21805510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21805511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21805512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21805513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21805514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21805515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21805516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21805517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21805518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21805519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21805520, 'pht': 3726}}" where mtr_portfolio_id = 21805405 and dashboard_run_id = 1704324 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`=21805405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705914, 0.049393511186369005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21805405_28-03-2025_06_10_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21805509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21805510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21805511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21805512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21805513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21805514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21805515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21805516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21805517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21805518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21805519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21805520, '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 = 21806592 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': 2700183, 'mtr_portfolio_id': 21806592, 'created_at': datetime.datetime(2025, 3, 28, 6, 10, 36), 'result': '0.04950891709373552', 'result_long': None, 'result_double': None}] Qualite : 0.04950891709373552 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21806592 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21806592_28-03-2025_06_10_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21806592 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_P21806592_28-03-2025_06_10_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21806593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21806594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21806595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21806596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21806597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21806598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21806599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21806600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21806601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21806602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21806603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21806604, 'pht': 3726}}" where mtr_portfolio_id = 21806592 and dashboard_run_id = 1704324 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`=21806592 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705915, 0.04950891709373552, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21806592_28-03-2025_06_10_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21806593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21806594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21806595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21806596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21806597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21806598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21806599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21806600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21806601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21806602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21806603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21806604, '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 = 21807155 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': 2700184, 'mtr_portfolio_id': 21807155, 'created_at': datetime.datetime(2025, 3, 28, 6, 11, 31), 'result': '0.029918562480780127', 'result_long': None, 'result_double': None}] Qualite : 0.029918562480780127 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21807155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21807155_28-03-2025_06_11_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21807155 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_P21807155_28-03-2025_06_11_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21807181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21807182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21807183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21807184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21807185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21807186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21807187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21807188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21807189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21807190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21807191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21807192, 'pht': 3726}}" where mtr_portfolio_id = 21807155 and dashboard_run_id = 1704324 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`=21807155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705916, 0.029918562480780127, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21807155_28-03-2025_06_11_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21807181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21807182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21807183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21807184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21807185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21807186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21807187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21807188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21807189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21807190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21807191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21807192, '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 = 21807908 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': 2700185, 'mtr_portfolio_id': 21807908, 'created_at': datetime.datetime(2025, 3, 28, 6, 12, 4), 'result': '0.02936027372445285', 'result_long': None, 'result_double': None}] Qualite : 0.02936027372445285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21807908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21807908_28-03-2025_06_12_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21807908 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_P21807908_28-03-2025_06_12_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21807970, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21807971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21807972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21807973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21807974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21807975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21807976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21807977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21807978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21807979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21807980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21807981, 'pht': 3726}}" where mtr_portfolio_id = 21807908 and dashboard_run_id = 1704324 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`=21807908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705918, 0.02936027372445285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21807908_28-03-2025_06_12_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21807970, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21807971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21807972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21807973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21807974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21807975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21807976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21807977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21807978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21807979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21807980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21807981, '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 = 21808907 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': 2700186, 'mtr_portfolio_id': 21808907, 'created_at': datetime.datetime(2025, 3, 28, 6, 12, 34), 'result': '0.030012400069789655', 'result_long': None, 'result_double': None}] Qualite : 0.030012400069789655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21808907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21808907_28-03-2025_06_12_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21808907 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_P21808907_28-03-2025_06_12_40.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21808954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21808955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21808956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21808957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21808958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21808959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21808960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21808961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21808962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21808963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21808964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21808965, 'pht': 3726}}" where mtr_portfolio_id = 21808907 and dashboard_run_id = 1704324 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`=21808907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705919, 0.030012400069789655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21808907_28-03-2025_06_12_40.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21808954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21808955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21808956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21808957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21808958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21808959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21808960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21808961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21808962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21808963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21808964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21808965, '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 = 21809965 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': 2700187, 'mtr_portfolio_id': 21809965, 'created_at': datetime.datetime(2025, 3, 28, 6, 13, 34), 'result': '0.045751131751392636', 'result_long': None, 'result_double': None}] Qualite : 0.045751131751392636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21809965 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21809965_28-03-2025_06_13_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21809965 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_P21809965_28-03-2025_06_13_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21809967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21809968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21809969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21809970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21809971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21809972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21809973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21809974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21809975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21809976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21809977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21809978, 'pht': 3726}}" where mtr_portfolio_id = 21809965 and dashboard_run_id = 1704324 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`=21809965 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705920, 0.045751131751392636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21809965_28-03-2025_06_13_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21809967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21809968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21809969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21809970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21809971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21809972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21809973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21809974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21809975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21809976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21809977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21809978, '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 = 21810873 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': 2700188, 'mtr_portfolio_id': 21810873, 'created_at': datetime.datetime(2025, 3, 28, 6, 14, 38), 'result': '0.039390530851853865', 'result_long': None, 'result_double': None}] Qualite : 0.039390530851853865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21810873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21810873_28-03-2025_06_14_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21810873 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_P21810873_28-03-2025_06_14_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21810913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21810914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21810915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21810916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21810917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21810918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21810919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21810920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21810921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21810922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21810923, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21810924, 'pht': 3726}}" where mtr_portfolio_id = 21810873 and dashboard_run_id = 1704324 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`=21810873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705921, 0.039390530851853865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21810873_28-03-2025_06_14_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21810913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21810914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21810915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21810916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21810917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21810918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21810919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21810920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21810921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21810922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21810923, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21810924, '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 = 21812172 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': 2700189, 'mtr_portfolio_id': 21812172, 'created_at': datetime.datetime(2025, 3, 28, 6, 15, 2), 'result': '0.03676707397450693', 'result_long': None, 'result_double': None}] Qualite : 0.03676707397450693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21812172 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21812172_28-03-2025_06_15_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21812172 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_P21812172_28-03-2025_06_15_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21812211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21812212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21812213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21812214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21812215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21812216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21812217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21812218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21812219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21812220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21812221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21812222, 'pht': 3726}}" where mtr_portfolio_id = 21812172 and dashboard_run_id = 1704324 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`=21812172 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705922, 0.03676707397450693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21812172_28-03-2025_06_15_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21812211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21812212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21812213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21812214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21812215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21812216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21812217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21812218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21812219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21812220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21812221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21812222, '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 = 21812469 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': 2700190, 'mtr_portfolio_id': 21812469, 'created_at': datetime.datetime(2025, 3, 28, 6, 15, 36), 'result': '0.04062694636870608', 'result_long': None, 'result_double': None}] Qualite : 0.04062694636870608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21812469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21812469_28-03-2025_06_15_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21812469 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_P21812469_28-03-2025_06_15_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21812526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21812527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21812528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21812529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21812530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21812531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21812532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21812533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21812534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21812535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21812536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21812537, 'pht': 3726}}" where mtr_portfolio_id = 21812469 and dashboard_run_id = 1704324 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`=21812469 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705924, 0.04062694636870608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21812469_28-03-2025_06_15_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21812526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21812527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21812528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21812529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21812530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21812531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21812532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21812533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21812534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21812535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21812536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21812537, '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 = 21813434 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': 2700191, 'mtr_portfolio_id': 21813434, 'created_at': datetime.datetime(2025, 3, 28, 6, 16, 33), 'result': '0.04114860120284266', 'result_long': None, 'result_double': None}] Qualite : 0.04114860120284266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21813434 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21813434_28-03-2025_06_16_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21813434 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_P21813434_28-03-2025_06_16_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21813459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21813460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21813461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21813462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21813463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21813464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21813465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21813466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21813467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21813468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21813469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21813470, 'pht': 3726}}" where mtr_portfolio_id = 21813434 and dashboard_run_id = 1704324 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`=21813434 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705925, 0.04114860120284266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21813434_28-03-2025_06_16_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21813459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21813460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21813461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21813462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21813463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21813464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21813465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21813466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21813467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21813468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21813469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21813470, '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 = 21814537 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': 2700192, 'mtr_portfolio_id': 21814537, 'created_at': datetime.datetime(2025, 3, 28, 6, 17, 1), 'result': '0.032535942854976074', 'result_long': None, 'result_double': None}] Qualite : 0.032535942854976074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21814537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21814537_28-03-2025_06_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21814537 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_P21814537_28-03-2025_06_17_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21814562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21814563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21814564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21814565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21814566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21814567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21814568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21814569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21814570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21814571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21814572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21814573, 'pht': 3726}}" where mtr_portfolio_id = 21814537 and dashboard_run_id = 1704324 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`=21814537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705926, 0.032535942854976074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21814537_28-03-2025_06_17_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21814562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21814563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21814564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21814565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21814566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21814567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21814568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21814569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21814570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21814571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21814572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21814573, '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 = 21815996 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': 2700193, 'mtr_portfolio_id': 21815996, 'created_at': datetime.datetime(2025, 3, 28, 6, 17, 33), 'result': '0.046255419314792025', 'result_long': None, 'result_double': None}] Qualite : 0.046255419314792025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21815996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21815996_28-03-2025_06_17_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21815996 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_P21815996_28-03-2025_06_17_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21815997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21815998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21815999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21816000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21816001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21816002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21816003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21816004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21816005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21816006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21816007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21816008, 'pht': 3726}}" where mtr_portfolio_id = 21815996 and dashboard_run_id = 1704324 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`=21815996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705927, 0.046255419314792025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21815996_28-03-2025_06_17_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21815997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21815998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21815999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21816000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21816001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21816002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21816003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21816004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21816005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21816006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21816007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21816008, '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 = 21816974 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': 2699345, 'mtr_portfolio_id': 21816974, 'created_at': datetime.datetime(2025, 3, 27, 21, 32, 59), 'result': '0.03707308759656309', 'result_long': None, 'result_double': None}] Qualite : 0.03707308759656309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21816974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21816974_27-03-2025_21_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21816974 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_P21816974_27-03-2025_21_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21816975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21816976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21816977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21816978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21816979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21816980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21816981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21816982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21816983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21816984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21816985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21816986, 'pht': 3726}}" where mtr_portfolio_id = 21816974 and dashboard_run_id = 1704324 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`=21816974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705928, 0.03707308759656309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21816974_27-03-2025_21_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21816975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21816976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21816977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21816978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21816979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21816980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21816981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21816982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21816983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21816984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21816985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21816986, '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 = 21820344 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': 2699587, 'mtr_portfolio_id': 21820344, 'created_at': datetime.datetime(2025, 3, 27, 23, 53, 3), 'result': '0.050240769420234276', 'result_long': None, 'result_double': None}] Qualite : 0.050240769420234276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21820344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21820344_27-03-2025_23_53_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21820344 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_P21820344_27-03-2025_23_53_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21820355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21820358, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21820359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21820360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21820361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21820362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21820363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21820364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21820367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21820373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21820379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21820380, 'pht': 3726}}" where mtr_portfolio_id = 21820344 and dashboard_run_id = 1704324 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`=21820344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705930, 0.050240769420234276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21820344_27-03-2025_23_53_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21820355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21820358, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21820359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21820360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21820361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21820362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21820363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21820364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21820367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21820373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21820379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21820380, '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 (21758623,21759362,21760093,21760560,21762076,21762613,21763101,21763711,21764831,21765473,21766075,21766833,21767496,21768004,21768690,21770204,21770457,21770821,21771188,21771757,21772390,21772816,21773405,21774042,21774467,21775253,21776066,21776767,21777493,21777879,21778767,21780673,21781186,21781704,21782552,21783391,21784021,21784732,21785685,21786502,21787646,21788405,21791777,21792313,21792882,21793383,21794285,21794901,21795720,21796790,21797691,21798421,21799507,21800448,21801548,21802456,21803547,21805405,21806592,21807155,21807908,21808907,21809965,21810873,21812172,21812469,21813434,21814537,21815996,21816974,21820344) result : ((1347682258,), (1347682314,), (1347682377,), (1347682575,), (1347682677,), (1347683161,), (1347683203,), (1347683236,), (1347683291,), (1347683682,), (1347683718,), (1347683777,), (1347683825,), (1347683882,), (1347683940,), (1347684244,), (1347684299,), (1347684318,), (1347684345,), (1347684357,), (1347684571,), (1347684609,), (1347684685,), (1347684767,), (1347684817,), (1347685066,), (1347685112,), (1347685137,), (1347685140,), (1347685149,), (1347685151,), (1347685577,), (1347685581,), (1347685587,), (1347685632,), (1347685648,), (1347685654,), (1347685661,), (1347685666,), (1347685670,), (1347685688,), (1347685692,), (1347685696,), (1347685701,), (1347685734,), (1347685736,), (1347685740,), (1347685745,), (1347685748,), (1347685755,), (1347685922,), (1347685925,), (1347685929,), (1347685932,), (1347685997,), (1347685999,), (1347686004,), (1347686009,), (1347686013,), (1347686084,), (1347686087,), (1347686091,), (1347686122,), (1347686218,), (1347686262,), (1347686472,), (1347686483,), (1347686521,), (1347686727,), (1347686756,), (1347686785,), (1347686799,), (1347686831,), (1347686844,), (1347686961,), (1347686915,), (1347686920,), (1347686931,), (1347686941,), (1347686954,), (1347686999,), (1347687050,), (1347687055,), (1347687183,), (1347687188,), (1347687195,), (1347687199,), (1347687204,), (1347687237,), (1347687638,), (1347687672,), (1347687683,), (1347687726,), (1347687769,), (1347687793,), (1347687915,), (1347687921,), (1347687926,), (1347687975,), (1347687997,), (1347688027,), (1347688043,), (1347688070,), (1347688100,), (1347688203,), (1347688222,), (1347688269,), (1347688311,), (1347688336,), (1347688356,), (1347688961,), (1347689046,), (1347689096,), (1347689481,), (1347689582,), (1347689607,), (1347689611,), (1347689660,), (1347689698,), (1347689794,), (1347689858,), (1347689863,), (1347689866,), (1347690063,), (1347690067,), (1347690071,), (1347690075,), (1347690080,), (1347690084,), (1347690155,), (1347690158,), (1347690172,), (1347690199,), (1347690231,), (1347690262,), (1347690404,), (1347690416,), (1347690432,), (1347690927,), (1347690965,), (1347691000,), (1347691052,), (1347691083,), (1347691096,), (1347691423,), (1347691487,), (1347691512,), (1347691913,), (1347691775,), (1347691798,), (1347691831,), (1347691855,), (1347691883,), (1347692174,), (1347692205,), (1347692243,), (1347692268,), (1347693060,), (1347693062,), (1347693121,), (1347693174,), (1347693179,), (1347693185,), (1347693188,), (1347693190,), (1347693193,), (1347693575,), (1347693632,), (1347693707,), (1347693764,), (1347693775,), (1347693800,), (1347693805,), (1347693810,), (1347693813,), (1347694166,), (1347694172,), (1347694178,), (1347694186,), (1347694207,), (1347694220,), (1347694399,), (1347694418,), (1347694420,), (1347694424,), (1347694436,), (1347694515,), (1347694516,), (1347694520,), (1347694526,), (1347694553,), (1347694561,), (1347694565,), (1347694572,), (1347694582,), (1347694855,), (1347694862,), (1347694867,), (1347695204,), (1347695229,), (1347695261,), (1347695288,), (1347695337,), (1347695389,), (1347695733,), (1347695757,), (1347695774,), (1347695779,), (1347695786,), (1347695821,), (1347695941,), (1347695923,), (1347695929,), (1347695936,), (1347696066,), (1347696072,), (1347696079,), (1347696086,), (1347696450,), (1347696960,), (1347697008,), (1347697126,), (1347697406,), (1347697411,), (1347697418,), (1347697435,), (1347697439,), (1347697548,), (1347697552,), (1347697570,), (1347697576,), (1347697585,), (1347697599,), (1347697643,), (1347697646,), (1347697655,), (1347697691,), (1347697761,), (1347697774,), (1347697782,), (1347697801,), (1347697829,), (1347697834,), (1347697850,), (1347697857,), (1347697862,), (1347697869,), (1347698265,), (1347698417,), (1347698440,), (1347698463,), (1347698647,), (1347698653,), (1347698659,), (1347698664,), (1347698669,), (1347698673,), (1347698693,), (1347698697,), (1347698703,), (1347698708,), (1347698762,), (1347698767,), (1347698772,), (1347698779,), (1347698780,), (1347698807,), (1347699478,), (1347699562,), (1347699627,), (1347699810,), (1347699899,), (1347700429,), (1347706425,), (1347706574,), (1347706666,), (1347706872,), (1347706900,), (1347706917,), (1347707008,), (1347707010,), (1347707016,), (1347707022,), (1347707026,), (1347707135,), (1347707140,), (1347707169,), (1347707174,), (1347707296,), (1347707357,), (1347707364,), (1347707369,), (1347707373,), (1347707375,), (1347707432,), (1347707470,), (1347707485,), (1347707504,), (1347707694,), (1347707697,), (1347707737,), (1347707768,), (1347707775,), (1347707778,), (1347707854,), (1347707875,), (1347707890,), (1347707896,), (1347707932,), (1347707940,), (1347707945,), (1347707951,), (1347707965,), (1347707983,), (1347708164,), (1347708272,), (1347708289,), (1347708308,), (1347708329,), (1347708394,), (1347708407,), (1347708419,), (1347708424,), (1347708441,), (1347708446,), (1347708507,), (1347708509,), (1347708522,), (1347708528,), (1347708554,), (1347708556,), (1347708561,), (1347708562,), (1347708564,), (1347708567,), (1347708612,), (1347708628,), (1347708633,), (1347708637,), (1347708641,), (1347708645,), (1347708728,), (1347708759,), (1347708867,), (1347708989,), (1347709147,), (1347709284,), (1347709481,), (1347709464,), (1347709470,), (1347709477,), (1347709585,), (1347709625,), (1347709627,), (1347709632,), (1347709636,), (1347709642,), (1347709698,), (1347709706,), (1347709713,), (1347709717,), (1347709764,), (1347709767,), (1347709774,), (1347709988,), (1347710057,), (1347710064,), (1347710154,), (1347710180,), (1347710228,), (1347710353,), (1347710505,), (1347710630,), (1347710656,), (1347711043,), (1347711045,), (1347711049,), (1347711253,), (1347711320,), (1347711322,), (1347711825,), (1347711872,), (1347711975,), (1347713336,), (1347713063,), (1347713113,), (1347713193,), (1347713255,), (1347713825,), (1347713883,), (1347713937,), (1347714101,), (1347714242,), (1347714668,), (1347714725,), (1347714757,), (1347714795,), (1347715212,), (1347715259,), (1347715333,), (1347715836,), (1347715879,), (1347715920,), (1347716331,), (1347716346,), (1347716368,), (1347716381,), (1347716523,), (1347716529,), (1347716822,), (1347716839,), (1347716862,), (1347716918,), (1347717023,), (1347717024,), (1347717025,), (1347717049,), (1347717050,), (1347717053,), (1347717056,), (1347717061,), (1347717065,), (1347717079,), (1347717081,), (1347717085,), (1347717087,), (1347717093,), (1347717112,), (1347717113,), (1347717116,), (1347717121,), (1347717125,), (1347717150,), (1347717153,), (1347717156,), (1347717159,), (1347717163,), (1347717167,), (1347717190,), (1347717194,), (1347717200,), (1347717205,), (1347717209,), (1347717229,), (1347717231,), (1347717235,), (1347717239,), (1347717246,), (1347717250,), (1347717314,), (1347717294,), (1347717298,), (1347717301,), (1347717409,), (1347717410,), (1347717414,), (1347717416,), (1347717419,), (1347717424,), (1347717458,), (1347717472,), (1347717478,), (1347717574,), (1347717631,), (1347718151,), (1347718219,), (1347718287,), (1347718317,), (1347718413,), (1347718866,), (1347718947,), (1347718995,), (1347719059,), (1347719148,), (1347719234,), (1347719690,), (1347719932,), (1347720000,), (1347720068,), (1347720231,), (1347720233,), (1347720238,), (1347720244,), (1347720247,), (1347720251,), (1347720325,), (1347720349,), (1347720370,), (1347720401,), (1347720930,), (1347721129,), (1347721197,), (1347721224,), (1347721262,), (1347721447,), (1347721451,), (1347721461,), (1347721519,), (1347721549,), (1347721634,), (1347721674,), (1347721706,), (1347721745,), (1347721762,), (1347721786,), (1347721943,), (1347721966,), (1347721969,), (1347721972,), (1347721980,), (1347722049,), (1347722060,), (1347722065,), (1347722082,), (1347722094,), (1347722194,), (1347722195,), (1347722198,), (1347722202,), (1347722207,), (1347722320,), (1347722339,), (1347722345,), (1347722348,), (1347722600,), (1347722502,), (1347722522,), (1347722534,), (1347722556,), (1347722578,), (1347722836,), (1347722875,), (1347722917,), (1347722957,), (1347723308,), (1347723318,), (1347723341,), (1347723378,), (1347723393,), (1347723417,), (1347723582,), (1347723601,), (1347723607,), (1347723625,), (1347723812,), (1347723835,), (1347723886,), (1347723909,), (1347723927,), (1347723945,), (1347724125,), (1347724153,), (1347724171,), (1347724197,), (1347724266,), (1347724564,), (1347724751,), (1347724955,), (1347724958,), (1347724966,), (1347724972,), (1347725099,), (1347725102,), (1347725107,), (1347725114,), (1347725132,), (1347725135,), (1347725140,), (1347725145,), (1347725171,), (1347725175,), (1347725179,), (1347725185,), (1347725189,), (1347725201,), (1347725268,), (1347725235,), (1347725238,), (1347725246,), (1347725256,), (1347725306,), (1347725311,), (1347725321,), (1347725325,), (1347725331,), (1347725335,), (1347725355,), (1347725363,), (1347725374,), (1347725381,), (1347725394,), (1347725474,), (1347725565,), (1347725657,), (1347725673,), (1347725694,), (1347725806,), (1347726247,), (1347726266,), (1347726284,), (1347726287,), (1347726303,), (1347726326,), (1347726589,), (1347726615,), (1347726653,), (1347726676,), (1347726880,), (1347726890,), (1347726895,), (1347726902,), (1347726917,), (1347727042,), (1347727045,), (1347727065,), (1347727073,), (1347727079,), (1347727083,), (1347727397,), (1347727422,), (1347727449,), (1347727479,), (1347727507,), (1347727529,), (1347727785,), (1347727794,), (1347727800,), (1347728037,), (1347728061,), (1347728073,), (1347728078,), (1347728083,), (1347728090,), (1347728143,), (1347728146,), (1347728150,), (1347728154,), (1347728179,), (1347728182,), (1347728185,), (1347728188,), (1347728564,), (1347728589,), (1347728623,), (1347728649,), (1347728674,), (1347728726,), (1347728729,), (1347728750,), (1347728753,), (1347728773,), (1347728777,), (1347729138,), (1347728987,), (1347728995,), (1347729037,), (1347729076,), (1347729099,), (1347729365,), (1347729413,), (1347729452,), (1347729485,), (1347729976,), (1347730038,), (1347730110,), (1347730169,), (1347730588,), (1347730624,), (1347730659,), (1347730698,), (1347730734,), (1347730998,), (1347731040,), (1347731084,), (1347731119,), (1347731403,), (1347731431,), (1347731470,), (1347731549,), (1347731644,), (1347731702,), (1347733239,), (1347733249,), (1347733404,), (1347733419,), (1347733769,), (1347733825,), (1347733895,), (1347733973,), (1347734105,), (1347734113,), (1347734223,), (1347734232,), (1347734239,), (1347734258,), (1347734267,), (1347734545,), (1347734550,), (1347734584,), (1347734739,), (1347734740,), (1347734743,), (1347734746,), (1347734748,), (1347734750,), (1347734794,), (1347734798,), (1347734818,), (1347734841,), (1347734863,), (1347734866,), (1347734883,), (1347734888,), (1347734916,), (1347734960,), (1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,), (1347736541,), (1347736544,), (1347736551,), (1347736562,), (1347736694,), (1347736699,), (1347736704,), (1347736707,), (1347736711,), (1347736713,), (1347736753,), (1347736763,), (1347736765,), (1347736896,), (1347736901,), (1347736906,), (1347736909,), (1347736914,), (1347736922,), (1347736941,), (1347736949,), (1347736952,), (1347736955,), (1347736963,), (1347737043,), (1347737310,), (1347737318,), (1347737330,), (1347737335,), (1347737393,), (1347737396,), (1347737399,), (1347737402,), (1347737404,), (1347737407,), (1347737855,), (1347737860,), (1347737878,), (1347737890,), (1347737899,), (1347738015,), (1347738019,), (1347738024,), (1347738088,), (1347738090,), (1347738093,), (1347738096,), (1347738106,), (1347738123,), (1347738124,), (1347738126,), (1347738130,), (1347738132,), (1347738150,), (1347738155,), (1347738157,), (1347738158,), (1347738184,), (1347738185,), (1347738189,), (1347738194,), (1347738198,), (1347738211,), (1347738213,), (1347738216,), (1347738219,), (1347738225,), (1347738270,), (1347738275,), (1347738279,), (1347738282,), (1347738422,), (1347738394,), (1347738406,), (1347738410,), (1347738414,), (1347738506,), (1347738508,), (1347738512,), (1347738516,), (1347738520,), (1347738524,), (1347738616,), (1347738623,), (1347738627,), (1347738630,), (1347738703,), (1347738709,), (1347738719,), (1347738728,), (1347738733,), (1347738738,), (1347738785,), (1347738787,), (1347738799,), (1347738847,), (1347738886,), (1347738897,), (1347739042,), (1347739045,), (1347739047,), (1347739049,), (1347739077,), (1347739083,), (1347739089,), (1347739091,), (1347739144,), (1347739145,), (1347739190,), (1347739349,), (1347739449,), (1347739461,), (1347739523,), (1347739526,), (1347739531,), (1347739534,), (1347739536,), (1347739538,), (1347739551,), (1347739552,), (1347739555,), (1347739558,), (1347739577,), (1347739578,), (1347739583,), (1347739592,), (1347739597,), (1347739599,), (1347739607,), (1347739609,), (1347739612,), (1347739629,), (1347739632,), (1347739637,), (1347739641,), (1347739642,), (1347739643,), (1347739708,), (1347739717,), (1347739725,), (1347739733,), (1347739755,), (1347739756,), (1347739758,), (1347739759,), (1347739788,), (1347739772,), (1347739775,), (1347739780,), (1347739785,), (1347739897,), (1347739927,), (1347739954,), (1347739981,), (1347740014,), (1347740217,), (1347740246,), (1347740267,), (1347740293,), (1347740536,), (1347740598,), (1347740616,), (1347740649,), (1347740695,), (1347740738,), (1347740991,), (1347741019,), (1347741051,), (1347741076,), (1347741405,), (1347741442,), (1347741464,), (1347741470,), (1347741473,), (1347741477,), (1347741500,), (1347741503,), (1347741508,), (1347741782,), (1347741801,), (1347741817,), (1347741831,), (1347741852,), (1347741859,), (1347741978,), (1347741985,), (1347741988,), (1347741991,), (1347741995,), (1347742306,), (1347742313,), (1347742319,), (1347742323,), (1347742328,), (1347742388,), (1347746719,), (1347750365,), (1347750474,), (1347751033,), (1347751077,), (1347751472,), (1347751800,), (1347752102,), (1347752496,), (1347752534,), (1347752573,), (1347752620,), (1347753048,), (1347753124,), (1347753153,), (1347753339,), (1347753362,), (1347753418,), (1347753419,), (1347753422,), (1347753447,), (1347753448,), (1347753451,), (1347753452,), (1347753457,), (1347753461,), (1347753508,), (1347753512,), (1347753515,), (1347753520,), (1347753524,), (1347753528,), (1347753541,), (1347753547,), (1347753550,), (1347753554,), (1347753651,), (1347753603,), (1347753620,), (1347753630,), (1347753638,), (1347753677,), (1347753681,), (1347753685,), (1347753781,), (1347753791,), (1347753800,), (1347753903,), (1347753916,), (1347753990,), (1347753991,), (1347753994,), (1347753998,), (1347754003,), (1347754008,), (1347754028,), (1347754030,), (1347754034,), (1347754036,), (1347754057,), (1347754058,), (1347754061,), (1347754064,), (1347754069,), (1347754074,), (1347754108,), (1347754113,), (1347754116,), (1347754120,), (1347754382,), (1347754383,), (1347754389,), (1347754399,), (1347754404,), (1347754519,), (1347754522,), (1347754534,), (1347754548,), (1347754575,), (1347754654,), (1347754749,), (1347754759,), (1347754795,), (1347754797,), (1347754848,), (1347754935,), (1347754960,), (1347755054,), (1347755055,), (1347755081,), (1347755171,), (1347755182,), (1347755195,), (1347755575,), (1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,), (1347756104,), (1347756105,), (1347756108,), (1347756111,), (1347756120,), (1347756127,), (1347756205,), (1347756231,), (1347756257,), (1347756295,), (1347756599,), (1347756625,), (1347756659,), (1347756686,), (1347756709,), (1347756857,), (1347756867,), (1347756872,), (1347756894,), (1347756913,), (1347757017,), (1347757025,), (1347757362,), (1347757368,), (1347757372,), (1347757375,), (1347757377,), (1347757379,), (1347757391,), (1347757393,), (1347757396,), (1347757399,), (1347757404,), (1347757408,), (1347757435,), (1347757426,), (1347757428,), (1347757432,), (1347757485,), (1347757495,), (1347757508,), (1347757514,), (1347757524,), (1347757528,), (1347757579,), (1347757580,), (1347757585,), (1347757659,), (1347757676,), (1347757710,), (1347757712,), (1347757716,), (1347757720,), (1347757724,), (1347757744,), (1347757749,), (1347757758,), (1347757766,), (1347757768,), (1347757772,), (1347757801,), (1347757802,), (1347757816,), (1347757823,), (1347757878,), (1347757909,), (1347757935,), (1347757961,), (1347757995,), (1347758040,), (1347758254,), (1347758271,), (1347758290,), (1347758316,), (1347758345,), (1347758593,), (1347758596,), (1347758618,), (1347758621,), (1347758626,), (1347758641,), (1347758684,), (1347758706,), (1347758726,), (1347758833,), (1347758835,), (1347758930,), (1347758932,), (1347759000,), (1347759073,), (1347759082,), (1347759087,), (1347759113,), (1347759138,), (1347759149,), (1347759232,), (1347759259,), (1347759292,), (1347759319,), (1347759400,), (1347759652,), (1347760041,), (1347760073,), (1347760110,), (1347760133,), (1347760154,), (1347760209,), (1347760211,), (1347760217,), (1347760221,), (1347760230,), (1347760425,), (1347760448,), (1347760462,), (1347760485,), (1347760504,), (1347760507,), (1347760636,), (1347760672,), (1347760677,), (1347760681,), (1347760852,), (1347760860,), (1347760867,), (1347760871,), (1347760874,), (1347760891,), (1347760901,), (1347760915,), (1347760927,), (1347760930,), (1347760944,), (1347760999,), (1347761006,), (1347761020,), (1347761032,), (1347761037,), (1347761095,), (1347761104,), (1347761116,), (1347761125,), (1347761131,), (1347761141,), (1347761166,), (1347761168,), (1347761174,), (1347761178,), (1347761298,), (1347761309,), (1347761315,), (1347761322,), (1347761326,), (1347761330,), (1347761408,), (1347761412,), (1347761417,), (1347761420,), (1347761424,), (1347761538,), (1347761541,), (1347761547,), (1347761551,), (1347761680,), (1347761685,), (1347761692,), (1347761695,), (1347761698,), (1347761701,), (1347761748,), (1347761726,), (1347761728,), (1347761740,), (1347761801,), (1347761904,), (1347761967,), (1347762203,), (1347762205,), (1347762220,), (1347762345,), (1347762376,), (1347762614,), (1347762643,), (1347762652,), (1347762665,), (1347762668,), (1347762673,), (1347762772,), (1347762774,), (1347762777,), (1347762779,), (1347762816,), (1347762818,), (1347762823,), (1347762828,), (1347762853,), (1347762855,), (1347762858,), (1347762861,), (1347762862,), (1347762867,), (1347762907,), (1347762912,), (1347762917,), (1347762920,), (1347762943,), (1347762951,), (1347762955,), (1347762959,), (1347762963,), (1347762967,), (1347763006,), (1347763011,), (1347763013,), (1347763017,), (1347763022,), (1347763043,), (1347763044,), (1347763049,), (1347763053,), (1347763085,), (1347763086,), (1347763091,), (1347763095,), (1347763101,), (1347763107,), (1347763138,), (1347763128,), (1347763131,), (1347763135,), (1347763183,), (1347763188,), (1347763194,), (1347763199,), (1347763203,), (1347763207,), (1347763222,), (1347763230,), (1347763234,), (1347763242,), (1347763249,), (1347763292,), (1347763295,), (1347763299,), (1347763304,), (1347763309,), (1347763338,), (1347763343,), (1347763348,), (1347763350,), (1347763355,), (1347763358,), (1347763420,), (1347763421,), (1347763425,), (1347763429,), (1347763563,), (1347763587,), (1347763591,), (1347763595,), (1347763600,), (1347763604,), (1347763663,), (1347763665,), (1347763674,), (1347763683,), (1347763722,), (1347763725,), (1347763730,), (1347763734,), (1347763738,), (1347763757,), (1347763758,), (1347763763,), (1347763766,), (1347763771,), (1347763775,), (1347763795,), (1347763799,), (1347763856,), (1347763865,), (1347763877,), (1347763920,), (1347763924,), (1347763930,), (1347764134,), (1347764141,), (1347764152,), (1347764156,), (1347764160,), (1347764179,), (1347764181,), (1347764184,), (1347764189,), (1347764250,), (1347764225,), (1347764227,), (1347764231,), (1347764237,), (1347764278,), (1347764279,), (1347764283,), (1347764286,), (1347764291,), (1347764337,), (1347764345,), (1347764348,), (1347764368,), (1347764392,), (1347764414,), (1347764415,), (1347764419,), (1347764422,), (1347764427,), (1347764429,), (1347764444,), (1347764449,), (1347764460,), (1347764484,), (1347764486,), (1347764491,), (1347764495,), (1347764500,), (1347764504,), (1347764530,), (1347764534,), (1347764543,), (1347764569,), (1347764572,), (1347764577,), (1347764581,), (1347764660,), (1347764691,), (1347764752,), (1347764753,), (1347764790,), (1347764836,), (1347764842,), (1347764858,), (1347764887,), (1347764889,), (1347764893,), (1347764895,), (1347764899,), (1347764955,), (1347764964,), (1347764988,), (1347765000,), (1347765003,), (1347765006,), (1347765097,), (1347765108,), (1347765133,), (1347765160,), (1347765526,), (1347765687,), (1347765794,), (1347765866,), (1347765896,), (1347765914,), (1347766563,), (1347766576,), (1347766643,), (1347766658,), (1347766688,), (1347766695,), (1347766712,), (1347766726,), (1347766730,), (1347766774,), (1347766750,), (1347766754,), (1347766764,), (1347766958,), (1347766985,), (1347767016,), (1347767065,), (1347767189,), (1347767325,), (1347767348,), (1347767388,), (1347767409,), (1347767418,), (1347767621,), (1347767655,), (1347767681,), (1347767709,), (1347767737,), (1347768041,), (1347768064,), (1347768085,), (1347768111,), (1347768142,), (1347768435,), (1347768465,), (1347768535,), (1347768577,), (1347768748,), (1347768768,), (1347768789,), (1347768821,), (1347769033,), (1347769036,), (1347769061,), (1347769081,), (1347769180,), (1347769187,), (1347769198,), (1347769207,), (1347769215,), (1347769223,), (1347769235,), (1347769236,), (1347769237,), (1347769238,), (1347769239,), (1347769240,), (1347769246,), (1347769247,), (1347769253,), (1347769254,), (1347769261,), (1347769262,), (1347769269,), (1347769270,), (1347769276,), (1347769277,), (1347769282,), (1347769283,), (1347769307,), (1347769323,), (1347769326,), (1347769329,), (1347769332,), (1347769335,), (1347769339,), (1347769371,), (1347769386,), (1347769389,), (1347769392,), (1347769395,), (1347769398,), (1347769400,), (1347769458,), (1347769473,), (1347769478,), (1347769480,), (1347769485,), (1347769488,), (1347769492,), (1347769535,), (1347769579,), (1347769595,), (1347769598,), (1347769289,), (1347769291,), (1347769296,), (1347769300,), (1347769303,), (1347769348,), (1347769352,), (1347769356,), (1347769359,), (1347769364,), (1347769428,), (1347769433,), (1347769438,), (1347769444,), (1347769449,), (1347769511,), (1347769515,), (1347769523,), (1347769526,), (1347769531,), (1347769554,), (1347769560,), (1347769565,), (1347769569,), (1347769574,), (1347769610,), (1347769618,), (1347769622,), (1347769626,), (1347769640,), (1347769652,), (1347769696,), (1347769704,), (1347769708,), (1347769711,), (1347769816,), (1347769835,), (1347769857,), (1347769881,), (1347770003,), (1347770008,), (1347770010,), (1347770022,), (1347770031,), (1347770093,), (1347770094,), (1347770105,), (1347770112,), (1347770273,), (1347770276,), (1347770279,), (1347770281,), (1347770286,), (1347770290,), (1347770477,), (1347770484,), (1347770497,), (1347770510,), (1347770565,), (1347770568,), (1347770572,), (1347770576,), (1347770581,), (1347770621,), (1347770625,), (1347770630,), (1347770637,), (1347770644,), (1347770650,), (1347770796,), (1347770805,), (1347770821,), (1347770837,), (1347770843,), (1347771031,), (1347770920,), (1347770933,), (1347770964,), (1347770983,), (1347770992,), (1347771262,), (1347771290,), (1347771313,), (1347771338,), (1347771624,), (1347771642,), (1347771649,), (1347771667,), (1347771671,), (1347771676,), (1347771748,), (1347771750,), (1347771752,), (1347771756,), (1347771762,), (1347772199,), (1347772217,), (1347772270,), (1347772279,), (1347772307,), (1347772608,), (1347772612,), (1347772616,), (1347772620,), (1347772624,), (1347772634,), (1347772676,), (1347772686,), (1347772698,), (1347772768,), (1347772773,), (1347772777,), (1347772783,), (1347772789,), (1347772794,), (1347772955,), (1347772957,), (1347772961,), (1347772966,), (1347772977,), (1347773034,), (1347773038,), (1347773125,), (1347773225,), (1347773256,), (1347773287,), (1347773419,), (1347773421,), (1347773425,), (1347773429,), (1347773458,), (1347773461,), (1347773465,), (1347773468,), (1347773473,), (1347773478,), (1347773509,), (1347773511,), (1347773515,), (1347773517,), (1347773553,), (1347773558,), (1347773565,), (1347773570,), (1347773578,), (1347773622,), (1347773624,), (1347773629,), (1347773633,), (1347773636,), (1347773728,), (1347773691,), (1347773695,), (1347773699,), (1347773707,), (1347773718,), (1347773757,), (1347773774,), (1347773802,), (1347773931,), (1347773935,), (1347773944,), (1347773997,), (1347774009,), (1347774020,), (1347774088,), (1347774135,), (1347774166,), (1347774377,), (1347774494,), (1347774548,), (1347774577,), (1347774597,), (1347774670,), (1347774673,), (1347774678,), (1347774682,), (1347774689,), (1347774883,), (1347774900,), (1347774952,), (1347774968,), (1347774983,), (1347774992,), (1347775078,), (1347775080,), (1347775084,), (1347775087,), (1347775284,), (1347775288,), (1347775292,), (1347775297,), (1347775301,), (1347775306,), (1347775347,), (1347775349,), (1347775351,), (1347775355,), (1347775400,), (1347775403,), (1347775406,), (1347775410,), (1347775413,), (1347775417,), (1347775606,), (1347775641,), (1347775674,), (1347775923,), (1347775949,), (1347775976,), (1347776008,), (1347776030,), (1347776085,), (1347776489,), (1347776570,), (1347776593,), (1347776622,), (1347776644,), (1347776670,), (1347776703,), (1347776707,), (1347776712,), (1347776720,), (1347777031,), (1347776849,), (1347776952,), (1347776975,), (1347776995,), (1347777007,), (1347777066,), (1347777070,), (1347777075,), (1347777269,), (1347777341,), (1347777379,), (1347777416,), (1347777467,), (1347777496,), (1347777692,), (1347777714,), (1347777754,), (1347777789,), (1347781142,), (1347781542,), (1347781605,), (1347781620,), (1347781653,), (1347781676,), (1347781702,), (1347781762,), (1347781766,), (1347781776,), (1347781809,), (1347781852,), (1347782200,), (1347782210,), (1347782238,), (1347782268,), (1347782465,), (1347782469,), (1347782483,), (1347782513,), (1347782539,), (1347782552,), (1347782574,), (1347782583,), (1347782599,), (1347782611,), (1347782761,), (1347782763,), (1347782767,), (1347782771,), (1347782774,), (1347782801,), (1347782803,), (1347782806,), (1347782809,), (1347782814,), (1347782859,), (1347782869,), (1347782879,), (1347782882,), (1347782887,), (1347782923,), (1347782929,), (1347782934,), (1347782946,), (1347782989,), (1347782993,), (1347782998,), (1347783002,), (1347783006,), (1347783112,), (1347783115,), (1347783122,), (1347783127,), (1347783133,), (1347783169,), (1347783171,), (1347783199,), (1347783322,), (1347783324,), (1347783328,), (1347783334,), (1347783342,), (1347783349,), (1347783395,), (1347783373,), (1347783376,), (1347783382,), (1347783389,), (1347783428,), (1347783433,), (1347783446,), (1347783456,), (1347783540,), (1347783550,), (1347783556,), (1347783811,), (1347783826,), (1347783854,), (1347783896,), (1347783931,), (1347783966,), (1347783993,), (1347783997,), (1347784315,), (1347784316,), (1347784331,), (1347784344,), (1347784354,), (1347784367,), (1347784441,), (1347784444,), (1347784460,), (1347784510,), (1347784518,), (1347784623,), (1347784649,), (1347784674,), (1347784705,), (1347784738,), (1347784740,), (1347784744,), (1347784747,), (1347784751,), (1347784759,), (1347784828,), (1347784830,), (1347784836,), (1347784841,), (1347784846,), (1347784861,), (1347784948,), (1347784977,), (1347784980,), (1347784985,), (1347785088,), (1347785090,), (1347785095,), (1347785106,), (1347785162,), (1347785186,), (1347785190,), (1347785195,), (1347785203,), (1347785211,), (1347785245,), (1347785260,), (1347785284,), (1347785288,), (1347785333,), (1347785334,), (1347785339,), (1347785341,), (1347785346,), (1347785352,), (1347785465,), (1347785408,), (1347785415,), (1347785427,), (1347785822,), (1347785850,), (1347785855,), (1347785861,), (1347785927,), (1347785937,), (1347785943,), (1347785959,), (1347785978,), (1347785992,), (1347786031,), (1347786033,), (1347786036,), (1347786040,), (1347786107,), (1347786110,), (1347786112,), (1347786115,), (1347786175,), (1347786326,), (1347786331,), (1347786342,), (1347786347,), (1347786360,), (1347786365,), (1347786568,), (1347786593,), (1347786620,), (1347786642,), (1347786975,), (1347787000,), (1347787025,), (1347787050,), (1347787336,), (1347787352,), (1347787356,), (1347787363,), (1347787368,), (1347787415,), (1347787440,), (1347787465,), (1347787488,), (1347787512,), (1347787653,), (1347787656,), (1347787660,), (1347787663,), (1347787700,), (1347787702,), (1347787706,), (1347787710,), (1347787714,), (1347787719,), (1347787792,), (1347787810,), (1347787850,), (1347787947,), (1347787956,), (1347787960,), (1347787982,), (1347788009,), (1347788033,), (1347788107,), (1347796298,), (1347796457,), (1347796467,), (1347796477,), (1347796556,), (1347796560,), (1347796583,), (1347796719,), (1347796723,), (1347796730,), (1347796825,), (1347796833,), (1347796841,), (1347796870,), (1347797020,), (1347797048,), (1347797071,), (1347797073,), (1347797084,), (1347797111,), (1347797158,), (1347797202,), (1347797205,), (1347797210,), (1347797215,), (1347797245,), (1347797247,), (1347797252,), (1347797255,), (1347797305,), (1347797340,), (1347797346,), (1347797353,), (1347797357,), (1347797388,), (1347797391,), (1347797399,), (1347797442,), (1347797454,), (1347797458,), (1347797472,), (1347797483,), (1347797539,), (1347797543,), (1347797548,), (1347797552,), (1347797579,), (1347797619,), (1347797624,), (1347797884,), (1347797886,), (1347797889,), (1347797893,), (1347797899,), (1347797962,), (1347797943,), (1347797946,), (1347797954,), (1347797958,), (1347798098,), (1347798101,), (1347798106,), (1347798141,), (1347798145,), (1347798151,), (1347798155,), (1347798160,), (1347798165,), (1347798184,), (1347798195,), (1347798201,), (1347798205,), (1347798209,), (1347798213,), (1347798262,), (1347798265,), (1347798279,), (1347798282,), (1347798287,), (1347798396,), (1347798413,), (1347798421,), (1347798665,), (1347798671,), (1347798677,), (1347798683,), (1347798687,), (1347798714,), (1347798772,), (1347798777,), (1347798781,), (1347798786,), (1347798820,), (1347798825,), (1347798834,), (1347798840,), (1347798843,), (1347798860,), (1347798862,), (1347798868,), (1347798870,), (1347798872,), (1347798874,), (1347798910,), (1347798914,), (1347798919,), (1347798925,), (1347798939,), (1347798946,), (1347798952,), (1347798957,), (1347799097,), (1347799130,), (1347799146,), (1347799162,), (1347799174,), (1347799182,), (1347799218,), (1347799230,), (1347799231,), (1347799232,), (1347799233,), (1347799328,), (1347799332,), (1347799342,), (1347799347,), (1347799350,), (1347799356,), (1347799402,), (1347799791,), (1347799377,), (1347799383,), (1347799389,), (1347799394,), (1347799399,), (1347799504,), (1347799534,), (1347799557,), (1347799584,), (1347799600,), (1347799640,), (1347799741,), (1347799770,), (1347799875,), (1347799899,), (1347799927,), (1347800056,), (1347800128,), (1347800285,), (1347800308,), (1347800331,), (1347800341,), (1347800362,), (1347800588,), (1347800648,), (1347800709,), (1347800771,), (1347800861,), (1347801152,), (1347801174,), (1347801280,), (1347802570,), (1347802596,), (1347802624,), (1347802655,), (1347802717,), (1347803058,), (1347803179,), (1347803208,), (1347803213,), (1347803412,), (1347803496,), (1347803521,), (1347803554,), (1347803598,), (1347803829,), (1347803844,), (1347803862,), (1347803872,), (1347804660,), (1347804695,), (1347804728,), (1347804799,), (1347804811,), (1347804830,), (1347804840,), (1347804853,), (1347804988,), (1347805013,), (1347805018,), (1347805090,), (1347805095,), (1347805100,), (1347805135,), (1347805139,), (1347805144,), (1347805148,), (1347805152,), (1347805156,), (1347805219,), (1347805186,), (1347805196,), (1347805204,), (1347805210,), (1347805293,), (1347805297,), (1347805300,), (1347805303,), (1347805404,), (1347805429,), (1347805448,), (1347805476,), (1347805493,), (1347805509,), (1347805553,), (1347805640,), (1347805647,), (1347805685,), (1347805689,), (1347805693,), (1347805714,), (1347805716,), (1347805722,), (1347805725,), (1347805762,), (1347805766,), (1347805772,), (1347805777,), (1347805781,), (1347805965,), (1347805970,), (1347805994,), (1347806009,), (1347806043,), (1347806046,), (1347806052,), (1347806058,), (1347806087,), (1347806092,), (1347806262,), (1347806264,), (1347806268,), (1347806420,), (1347806422,), (1347806427,), (1347806430,), (1347806472,), (1347806512,), (1347806581,), (1347806583,), (1347806589,), (1347806591,), (1347807297,), (1347807271,), (1347807290,), (1347807456,), (1347807473,), (1347807509,), (1347807547,), (1347807576,), (1347807650,), (1347807654,), (1347807659,), (1347807664,), (1347807670,), (1347807673,), (1347807708,), (1347807712,), (1347807720,), (1347807759,), (1347807765,), (1347807774,), (1347807779,), (1347807782,), (1347807786,), (1347807852,), (1347807858,), (1347807864,), (1347807890,), (1347807915,), (1347808308,), (1347808444,), (1347808489,), (1347808523,), (1347808555,), (1347808944,), (1347808985,), (1347809024,), (1347809048,), (1347809166,), (1347809170,), (1347809180,), (1347809183,), (1347809206,), (1347809218,), (1347809322,), (1347809329,), (1347809340,), (1347809673,), (1347809693,), (1347809737,), (1347809771,), (1347809798,), (1347810075,), (1347810169,), (1347810182,), (1347810198,), (1347810230,), (1347810264,), (1347810406,), (1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,), (1347812220,), (1347812242,), (1347812261,), (1347812275,), (1347812281,), (1347812293,), (1347812319,), (1347812322,), (1347812325,), (1347812327,), (1347812372,), (1347812374,), (1347812377,), (1347812428,), (1347812434,), (1347812437,), (1347812449,), (1347812615,), (1347812638,), (1347812671,), (1347812743,), (1347812776,), (1347813355,), (1347813395,), (1347813553,), (1347813586,), (1347813621,), (1347813658,), (1347814001,), (1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,), (1347819499,), (1347819530,), (1347819580,), (1347819602,), (1347819607,), (1347819642,), (1347819646,), (1347819655,), (1347819659,), (1347819664,), (1347819898,), (1347819920,), (1347819959,), (1347820221,), (1347820116,), (1347820152,), (1347820172,), (1347820191,), (1347820337,), (1347820347,), (1347820353,), (1347820356,), (1347820393,), (1347820400,), (1347820432,), (1347820439,), (1347820468,), (1347820476,), (1347820483,), (1347820492,), (1347820494,), (1347820591,), (1347820634,), (1347820665,), (1347820768,), (1347820782,), (1347820790,), (1347820793,), (1347820796,), (1347820801,), (1347820842,), (1347820849,), (1347820859,), (1347820871,), (1347821130,), (1347821153,), (1347821167,), (1347821176,), (1347821180,), (1347821219,), (1347821221,), (1347821229,), (1347821232,), (1347821242,), (1347821307,), (1347821309,), (1347821312,), (1347821477,), (1347821478,), (1347821483,), (1347821486,), (1347821491,), (1347821678,), (1347821682,), (1347821709,), (1347821724,), (1347821727,), (1347821769,), (1347821771,), (1347821783,), (1347821792,), (1347821797,), (1347821803,), (1347821830,), (1347821835,), (1347821883,), (1347821890,), (1347821899,), (1347821906,), (1347821911,), (1347821969,), (1347821947,), (1347821953,), (1347821959,), (1347821964,), (1347822251,), (1347822261,), (1347822281,), (1347822287,), (1347822339,), (1347822349,), (1347822355,), (1347822395,), (1347822400,), (1347822407,), (1347822421,), (1347822434,), (1347822803,), (1347822828,), (1347822838,), (1347822874,), (1347822902,), (1347823191,), (1347823237,), (1347823276,), (1347823293,), (1347823338,), (1347823342,), (1347823347,), (1347823350,), (1347823413,), (1347823421,), (1347823449,), (1347823498,), (1347823561,), (1347823796,), (1347823797,), (1347823807,), (1347823813,), (1347823818,), (1347823852,), (1347823855,), (1347823927,), (1347824250,), (1347824278,), (1347824296,), (1347824328,), (1347824374,), (1347824893,), (1347824958,), (1347825015,), (1347825063,), (1347825094,), (1347825316,), (1347825340,), (1347825387,), (1347825397,), (1347825430,), (1347825674,), (1347825699,), (1347825736,), (1347825783,), (1347825846,), (1347825862,), (1347826112,), (1347826148,), (1347826167,), (1347826438,), (1347826371,), (1347826385,), (1347826399,), (1347826426,), (1347826635,), (1347826653,), (1347826696,), (1347826737,), (1347827190,), (1347827212,), (1347827496,), (1347827668,), (1347827922,), (1347827960,), (1347827975,), (1347828001,), (1347828026,), (1347828098,), (1347828110,), (1347828118,), (1347828774,), (1347828914,), (1347829031,), (1347829136,), (1347829150,), (1347829157,), (1347829279,), (1347829281,), (1347829318,), (1347829435,), (1347829818,), (1347829821,), (1347829922,), (1347829925,), (1347829948,), (1347830386,), (1347830394,), (1347830398,), (1347830455,), (1347830460,), (1347830462,), (1347830648,), (1347830655,), (1347830661,), (1347830666,), (1347830670,), (1347830720,), (1347830707,), (1347830714,), (1347831067,), (1347831100,), (1347831161,), (1347831224,), (1347831276,), (1347831346,), (1347831804,), (1347831846,), (1347831898,), (1347831953,), (1347832009,), (1347832081,), (1347832592,), (1347832659,), (1347833293,), (1347833319,), (1347833408,), (1347833462,), (1347833507,), (1347833545,), (1347833959,), (1347834093,), (1347834280,), (1347834430,), (1347835222,), (1347835287,), (1347835337,), (1347835369,), (1347835888,), (1347835988,), (1347836690,), (1347836731,), (1347836786,), (1347836835,), (1347836888,), (1347837334,), (1347837384,), (1347837421,), (1347837504,), (1347841400,), (1347867543,), (1347867609,), (1347867612,), (1347867617,), (1347867621,), (1347867701,), (1347867703,), (1347867708,), (1347867712,), (1347867752,), (1347867754,), (1347867775,), (1347867784,), (1347867789,), (1347867794,), (1347867819,), (1347867822,), (1347867825,), (1347867932,), (1347867938,), (1347867947,), (1347867953,), (1347867964,), (1347867994,), (1347868145,), (1347868148,), (1347868170,), (1347868187,), (1347868278,), (1347868281,), (1347868287,), (1347868293,), (1347868364,), (1347868384,), (1347868408,), (1347868436,), (1347868456,), (1347868841,), (1347868881,), (1347868982,), (1347869005,), (1347869038,), (1347869401,), (1347869434,), (1347869473,), (1347870599,), (1347872182,), (1347872133,), (1347872170,), (1347872176,), (1347872334,), (1347872448,), (1347872466,), (1347872475,), (1347872497,), (1347872681,), (1347872684,), (1347873050,), (1347873051,), (1347873055,), (1347873099,), (1347873196,), (1347873494,), (1347873496,), (1347873529,), (1347873623,), (1347873625,), (1347873630,), (1347873635,), (1347873748,), (1347873750,), (1347873779,), (1347873794,), (1347873810,), (1347874023,), (1347874058,), (1347874124,), (1347874325,), (1347874328,), (1347874350,), (1347874361,), (1347874459,), (1347874460,), (1347874466,), (1347874776,), (1347874780,), (1347874797,), (1347874808,), (1347874815,), (1347874853,), (1347874857,), (1347875265,), (1347875237,), (1347875245,), (1347875315,), (1347875317,), (1347875322,), (1347875371,), (1347875374,), (1347875387,), (1347875411,), (1347875413,), (1347875417,), (1347875421,), (1347875457,), (1347875458,), (1347875462,), (1347875474,), (1347875623,), (1347875747,), (1347875763,), (1347875780,), (1347875792,), (1347875830,), (1347875835,), (1347875839,), (1347875844,), (1347875851,), (1347875856,), (1347875878,), (1347875892,), (1347875906,), (1347875915,), (1347875929,), (1347876008,), (1347876027,), (1347876032,), (1347876038,), (1347876059,), (1347876101,), (1347876104,), (1347876108,), (1347876110,), (1347876113,), (1347876166,), (1347876168,), (1347876183,), (1347876188,), (1347876337,), (1347876342,), (1347876347,), (1347876376,), (1347876382,), (1347876391,), (1347876396,), (1347876400,), (1347876557,), (1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,), (1347878823,), (1347878837,), (1347878841,), (1347878845,), (1347878850,), (1347878985,), (1347879001,), (1347879032,), (1347879066,), (1347879407,), (1347879436,), (1347879466,), (1347880022,), (1347879830,), (1347879833,), (1347879860,), (1347879891,), (1347880078,), (1347880087,), (1347880093,), (1347880097,), (1347880629,), (1347880635,), (1347880691,), (1347880696,), (1347880707,), (1347880711,), (1347880714,), (1347880718,), (1347880768,), (1347880814,), (1347880825,), (1347880831,), (1347880836,), (1347880843,), (1347880930,), (1347880934,), (1347880938,), (1347880941,), (1347880944,), (1347880975,), (1347880978,), (1347880983,), (1347881016,), (1347881020,), (1347881024,), (1347881028,), (1347881086,), (1347881088,), (1347881095,), (1347881102,), (1347881105,), (1347881109,), (1347881386,), (1347881408,), (1347881421,), (1347881425,), (1347881798,), (1347881838,), (1347881865,), (1347881908,), (1347881933,), (1347882964,), (1347883021,), (1347883070,), (1347883127,), (1347883171,), (1347883296,), (1347883328,), (1347883515,), (1347883471,), (1347883909,), (1347884461,), (1347884482,), (1347884517,), (1347885099,), (1347885147,), (1347885170,), (1347885182,), (1347885194,), (1347885350,), (1347885447,), (1347885519,), (1347885885,), (1347885899,), (1347885935,), (1347885984,), (1347886423,), (1347886478,), (1347886530,), (1347886567,), (1347886981,), (1347887027,), (1347887079,), (1347887120,), (1347887638,), (1347887700,), (1347887772,), (1347887814,), (1347887845,), (1347887925,), (1347888048,), (1347888074,), (1347888109,), (1347888131,), (1347888159,), (1347888286,), (1347888325,), (1347888373,), (1347888425,), (1347888907,), (1347888985,), (1347889013,), (1347889084,), (1347889247,), (1347889676,), (1347889771,), (1347889830,), (1347890223,), (1347890314,), (1347890932,), (1347890974,), (1347891012,), (1347891037,), (1347891101,), (1347891172,), (1347891729,), (1347891553,), (1347891600,), (1347891644,), (1347891697,), (1347892131,), (1347892327,), (1347892333,), (1347892375,), (1347892381,), (1347892813,), (1347892961,), (1347893015,), (1347893080,), (1347893134,), (1347893148,), (1347893379,), (1347893408,), (1347893473,), (1347893525,), (1347893986,), (1347894065,), (1347894164,), (1347894250,), (1347894297,), (1347894372,), (1347894525,), (1347894576,), (1347894674,), (1347894723,), (1347894838,), (1347894841,), (1347894846,), (1347894871,), (1347894896,), (1347895126,), (1347895307,), (1347895345,), (1347895375,), (1347895388,), (1347895573,), (1347895578,), (1347895583,), (1347895587,), (1347895656,), (1347895661,), (1347895665,), (1347895870,), (1347895935,), (1347896067,), (1347896126,), (1347896142,), (1347896184,), (1347896193,), (1347896206,), (1347896306,), (1347896330,), (1347896340,), (1347896351,), (1347896359,), (1347896530,), (1347896534,), (1347896540,), (1347896542,), (1347896546,), (1347896550,), (1347896576,), (1347896592,), (1347896598,), (1347896604,), (1347896671,), (1347896733,), (1347896754,), (1347896758,), (1347896870,), (1347896825,), (1347896829,), (1347896837,), (1347897020,), (1347897043,), (1347897053,), (1347897056,), (1347897059,), (1347897066,), (1347897197,), (1347897205,), (1347897210,), (1347897259,), (1347897280,), (1347897291,), (1347897468,), (1347897480,), (1347897646,), (1347897659,), (1347897664,), (1347897683,), (1347897837,), (1347897860,), (1347897874,), (1347897953,), (1347897955,), (1347897989,), (1347897993,), (1347898000,), (1347898277,), (1347898315,), (1347898332,), (1347898353,), (1347898377,), (1347898405,), (1347898457,), (1347898462,), (1347898469,), (1347898474,), (1347898669,), (1347898695,), (1347898717,), (1347898934,), (1347898948,), (1347898974,), (1347898998,), (1347899003,), (1347899250,), (1347899294,), (1347899323,), (1347899353,), (1347899367,), (1347899662,), (1347899695,), (1347899701,), (1347899720,), (1347899728,), (1347899980,), (1347900008,), (1347900045,), (1347900316,), (1347900348,), (1347900371,), (1347900404,), (1347900439,), (1347900466,), (1347900567,), (1347900544,), (1347900551,), (1347900558,), (1347900673,), (1347900687,), (1347901001,), (1347901149,), (1347901205,), (1347901231,), (1347901260,), (1347901294,), (1347901624,), (1347901650,), (1347901679,), (1347901723,), (1347901740,), (1347901988,), (1347902020,), (1347902066,), (1347902896,), (1347902909,), (1347902929,), (1347902944,), (1347902967,), (1347903396,), (1347903442,), (1347903499,), (1347903548,), (1347903572,), (1347904094,), (1347904136,), (1347904161,), (1347904187,), (1347904220,), (1347904280,), (1347904694,), (1347904726,), (1347904752,), (1347904780,), (1347904783,), (1347904785,), (1347904788,), (1347904885,), (1347904888,), (1347904894,), (1347904902,), (1347904906,), (1347904909,), (1347905110,), (1347905129,), (1347905161,), (1347905523,), (1347905554,), (1347905583,), (1347905638,), (1347905658,), (1347905685,), (1347906687,), (1347906714,), (1347906744,), (1347907612,), (1347907414,), (1347907462,), (1347907535,), (1347907582,), (1347908172,), (1347908238,), (1347908315,), (1347909008,), (1347909044,), (1347909071,), (1347909099,), (1347909122,), (1347909225,), (1347909460,), (1347909470,), (1347909498,), (1347909530,), (1347909540,), (1347909544,), (1347909692,), (1347909698,), (1347909710,), (1347909717,), (1347910053,), (1347910102,), (1347910142,), (1347910198,), (1347910248,), (1347910260,), (1347910588,), (1347910614,), (1347910642,), (1347910673,), (1347911048,), (1347911051,), (1347911054,), (1347911058,), (1347911317,), (1347911339,), (1347911371,), (1347911396,), (1347911424,), (1347911615,), (1347911618,), (1347911644,), (1347911673,), (1347911687,), (1347912003,), (1347912058,), (1347912101,), (1347912361,), (1347912365,), (1347912385,), (1347912397,), (1347912648,), (1347912702,), (1347912727,), (1347912771,), (1347912838,), (1347913102,), (1347913128,), (1347913135,), (1347913169,), (1347913417,), (1347913442,), (1347913522,), (1347913552,), (1347913588,), (1347913838,), (1347913790,), (1347913807,), (1347913810,), (1347913822,), (1347913831,), (1347913926,), (1347914012,), (1347914063,), (1347914189,), (1347914193,), (1347914220,), (1347914273,), (1347914532,), (1347914597,), (1347914625,), (1347914633,), (1347914637,), (1347914642,), (1347914646,), (1347914731,), (1347915468,), (1347915521,), (1347915556,), (1347916350,), (1347916378,), (1347916405,), (1347916429,), (1347916455,), (1347916480,), (1347916650,), (1347916671,), (1347916702,), (1347916744,), (1347917068,), (1347917075,), (1347917078,), (1347917080,), (1347917117,), (1347917120,), (1347917125,), (1347917129,), (1347917381,), (1347917394,), (1347917422,), (1347917767,), (1347917808,), (1347917966,), (1347918326,), (1347918356,), (1347918423,), (1347918602,), (1347918656,), (1347918700,), (1347919063,), (1347919094,), (1347919123,), (1347919154,), (1347919189,), (1347919503,), (1347919538,), (1347919554,), (1347919575,), (1347919712,), (1347919722,), (1347919754,), (1347919789,), (1347919823,), (1347919835,), (1347919902,), (1347919874,), (1347919878,), (1347919881,), (1347919884,), (1347919888,), (1347920059,), (1347920151,), (1347920177,), (1347920322,), (1347920326,), (1347920330,), (1347920335,), (1347920343,), (1347920351,), (1347920427,), (1347920430,), (1347920434,), (1347920451,), (1347920926,), (1347920966,), (1347921022,), (1347921197,), (1347921231,), (1347921254,), (1347921259,), (1347921272,), (1347921281,), (1347921357,), (1347921365,), (1347921385,), (1347921770,), (1347921804,), (1347921840,), (1347921873,), (1347921905,), (1347922054,), (1347922077,), (1347922098,), (1347922105,), (1347922111,), (1347922138,), (1347922240,), (1347922265,), (1347922289,), (1347922315,), (1347922499,), (1347922605,), (1347922638,), (1347922708,), (1347922738,), (1347922753,), (1347922809,), (1347922816,), (1347922835,), (1347922858,), (1347922885,), (1347922897,), (1347923047,), (1347923062,), (1347923111,), (1347923143,), (1347923356,), (1347923377,), (1347923389,), (1347923392,), (1347923420,), (1347923425,), (1347923429,), (1347923435,), (1347923618,), (1347923527,), (1347923551,), (1347923583,), (1347924188,), (1347924225,), (1347924283,), (1347924306,), (1347924682,), (1347924708,), (1347924732,), (1347925183,), (1347925320,), (1347925526,), (1347925558,), (1347925640,), (1347926176,), (1347926181,), (1347926204,), (1347926223,), (1347926306,), (1347926314,), (1347926377,), (1347926400,), (1347926503,), (1347926514,), (1347927067,), (1347927080,), (1347927083,), (1347927086,), (1347927104,), (1347927382,), (1347927461,), (1347927537,), (1347927550,), (1347927731,), (1347927734,), (1347927761,), (1347927815,), (1347927820,), (1347927849,), (1347927854,), (1347927869,), (1347928172,), (1347928220,), (1347928300,), (1347928312,), (1347928378,), (1347928417,), (1347928562,), (1347928580,), (1347928587,), (1347928806,), (1347928808,), (1347928814,), (1347928821,), (1347928830,), (1347929392,), (1347929450,), (1347929503,), (1347929557,), (1347929614,), (1347929947,), (1347930045,), (1347930146,), (1347930666,), (1347930417,), (1347930456,), (1347930535,), (1347930603,), (1347931301,), (1347931415,), (1347931533,), (1347931676,), (1347931725,), (1347931811,), (1347932574,), (1347932721,), (1347932778,), (1347933798,), (1347933853,), (1347933948,), (1347933994,), (1347934159,), (1347934212,), (1347934505,), (1347934512,), (1347934538,), (1347934561,), (1347934641,), (1347935217,), (1347935280,), (1347935434,), (1347935556,), (1347936099,), (1347936138,), (1347936202,), (1347936277,), (1347936351,), (1347936387,), (1347936697,), (1347936750,), (1347936794,), (1347937000,), (1347937072,), (1347937092,), (1347937095,), (1347937099,), (1347937107,), (1347937162,), (1347937168,), (1347937173,), (1347937179,), (1347937296,), (1347937323,), (1347937353,), (1347937381,), (1347937406,), (1347937467,), (1347937605,), (1347937712,), (1347937794,), (1347937809,), (1347938115,), (1347938117,), (1347938150,), (1347938157,), (1347938276,), (1347938428,), (1347938457,), (1347938484,), (1347938494,), (1347938506,), (1347938513,), (1347938555,), (1347938558,), (1347938564,), (1347938609,), (1347938597,), (1347938600,), (1347938605,), (1347938925,), (1347938929,), (1347938991,), (1347938995,), (1347939422,), (1347939440,), (1347939452,), (1347939581,), (1347939584,), (1347939635,), (1347939652,), (1347939734,), (1347939739,), (1347939746,), (1347939754,), (1347939759,), (1347939801,), (1347939806,), (1347939809,), (1347939966,), (1347940004,), (1347940009,), (1347940016,), (1347940021,), (1347940082,), (1347940085,), (1347940090,), (1347940096,), (1347940101,), (1347940105,), (1347940137,), (1347940139,), (1347940159,), (1347940267,), (1347940269,), (1347940275,), (1347940280,), (1347940286,), (1347940289,), (1347940349,), (1347940359,), (1347940367,), (1347940378,), (1347940383,), (1347940390,), (1347940442,), (1347940444,), (1347940452,), (1347940456,), (1347940513,), (1347940517,), (1347940520,), (1347940524,), (1347940556,), (1347940559,), (1347940563,), (1347940567,), (1347940602,), (1347940608,), (1347946524,), (1347948121,), (1347948210,), (1347949137,), (1347949259,), (1347949352,), (1347949670,), (1347950147,), (1347950233,), (1347950320,), (1347950397,), (1347951079,), (1347951149,), (1347951208,), (1347951242,), (1347951277,), (1347951301,), (1347951715,), (1347951826,), (1347951886,), (1347953234,), (1347953574,), (1347953633,), (1347953676,), (1347953727,), (1347953781,), (1347953819,), (1347954006,), (1347954033,), (1347954049,), (1347954066,), (1347954102,), (1347954411,), (1347954465,), (1347954516,), (1347954638,), (1347954704,), (1347955070,), (1347955101,), (1347955124,), (1347955133,), (1347955174,), (1347955180,), (1347955184,), (1347955188,), (1347955207,), (1347955251,), (1347955625,), (1347955712,), (1347955785,), (1347955845,), (1347955916,), (1347956321,), (1347956355,), (1347956406,), (1347956435,), (1347956698,), (1347956724,), (1347956763,), (1347956796,), (1347957497,), (1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,), (1347960385,), (1347960398,), (1347960416,), (1347960548,), (1347960551,), (1347960557,), (1347960665,), (1347960685,), (1347960706,), (1347960738,), (1347960759,), (1347960782,), (1347960985,), (1347960989,), (1347961003,), (1347961033,), (1347961188,), (1347961205,), (1347961213,), (1347961217,), (1347961357,), (1347961364,), (1347961380,), (1347961407,), (1347961421,), (1347961559,), (1347961562,), (1347961569,), (1347961579,), (1347961584,), (1347961623,), (1347961658,), (1347961661,), (1347961668,), (1347962005,), (1347961829,), (1347961895,), (1347961919,), (1347961970,), (1347962179,), (1347962203,), (1347962214,), (1347962217,), (1347962229,), (1347962235,), (1347962319,), (1347962344,), (1347962445,), (1347962456,), (1347962490,), (1347962547,), (1347962568,), (1347962584,), (1347962708,), (1347962712,), (1347962742,), (1347962775,), (1347962795,), (1347962803,), (1347962889,), (1347962892,), (1347963026,), (1347963029,), (1347963033,), (1347963036,), (1347963040,), (1347963043,), (1347963152,), (1347963187,), (1347963207,), (1347963229,), (1347963433,), (1347963436,), (1347963440,), (1347963762,), (1347963784,), (1347963810,), (1347963828,), (1347963832,), (1347963835,), (1347964148,), (1347964176,), (1347964200,), (1347964204,), (1347964350,), (1347964361,), (1347964388,), (1347964409,), (1347964786,), (1347964804,), (1347964838,), (1347964875,), (1347964913,), (1347965140,), (1347965153,), (1347965181,), (1347965201,), (1347965348,), (1347965354,), (1347965359,), (1347965366,), (1347965924,), (1347965659,), (1347965727,), (1347965834,), (1347965867,), (1347965904,), (1347966203,), (1347966220,), (1347966235,), (1347966264,), (1347966358,), (1347966378,), (1347966416,), (1347966424,), (1347966455,), (1347966464,), (1347966696,), (1347966720,), (1347966741,), (1347966746,), (1347966753,), (1347966760,), (1347967035,), (1347967116,), (1347967180,), (1347967220,), (1347967404,), (1347967412,), (1347967416,), (1347967420,), (1347967445,), (1347967473,), (1347967567,), (1347967587,), (1347967592,), (1347967599,), (1347967829,), (1347967852,), (1347967871,), (1347967898,), (1347967915,), (1347967920,), (1347968009,), (1347968021,), (1347968031,), (1347968037,), (1347968068,), (1347968207,), (1347968231,), (1347968249,), (1347968253,), (1347968509,), (1347968512,), (1347968517,), (1347968523,), (1347968528,), (1347968630,), (1347968635,), (1347968639,), (1347968642,), (1347968738,), (1347968755,), (1347968786,), (1347968793,), (1347968795,), (1347968827,), (1347970012,), (1347970106,), (1347970186,), (1347970304,), (1347971242,), (1347970904,), (1347970985,), (1347971074,), (1347971145,), (1347971662,), (1347971736,), (1347971814,), (1347972370,), (1347972410,), (1347972474,), (1347972544,), (1347972758,), (1347972906,), (1347973119,), (1347973160,), (1347973195,), (1347973241,), (1347973336,), (1347973827,), (1347973935,), (1347974030,), (1347974065,), (1347974412,), (1347974481,), (1347974525,), (1347974561,), (1347974618,), (1347974695,), (1347974921,), (1347975065,), (1347975111,), (1347975172,), (1347975275,), (1347975348,), (1347975552,), (1347975573,), (1347975598,), (1347975605,), (1347975830,), (1347975909,), (1347975950,), (1347976005,), (1347976052,), (1347976114,), (1347976365,), (1347976386,), (1347976395,), (1347976632,), (1347976676,), (1347976683,), (1347976694,), (1347976715,), (1347976733,), (1347977015,), (1347977107,), (1347977204,), (1347977248,), (1347977321,), (1347977348,), (1347977507,), (1347977572,), (1347977589,), (1347977869,), (1347977910,), (1347977912,), (1347977931,), (1347977949,), (1347977953,), (1347978048,), (1347978072,), (1347978092,), (1347978102,), (1347978676,), (1347978392,), (1347978426,), (1347978526,), (1347978619,), (1347979037,), (1347979077,), (1347979109,), (1347979145,), (1347979160,), (1347979632,), (1347979702,), (1347979755,), (1347979821,), (1347980136,), (1347980180,), (1347980221,), (1347980273,), (1347980312,), (1347980337,), (1347980510,), (1347980524,), (1347980560,), (1347980651,), (1347980666,), (1347980694,), (1347980731,), (1347980800,), (1347981148,), (1347981179,), (1347981226,), (1347981256,), (1347981514,), (1347981519,), (1347981530,), (1347981533,), (1347981665,), (1347981671,), (1347981678,), (1347981685,), (1347981691,), (1347981697,), (1347981722,), (1347981724,), (1347981731,), (1347981736,), (1347981889,), (1347981907,), (1347981931,), (1347981962,), (1347981998,), (1347982191,), (1347982198,), (1347982219,), (1347982271,), (1347982298,), (1347982540,), (1347982556,), (1347982601,), (1347982639,), (1347983273,), (1347983320,), (1347983349,), (1347983372,), (1347983413,), (1347983459,), (1347983841,), (1347983893,), (1347983939,), (1347984008,), (1347984055,), (1347984648,), (1347984382,), (1347984446,), (1347984527,), (1347984601,), (1347984968,), (1347984999,), (1347985415,), (1347985439,), (1347985460,), (1347985482,), (1347985510,), (1347985532,), (1347985790,), (1347985792,), (1347985813,), (1347985825,), (1347985852,), (1347985989,), (1347986002,), (1347986011,), (1347986014,), (1347986737,), (1347986770,), (1347986797,), (1347986825,), (1347986860,), (1347986888,), (1347987190,), (1347987302,), (1347987475,), (1347987507,), (1347987758,), (1347987784,), (1347987790,), (1347987835,), (1347987862,), (1347987891,), (1347988296,), (1347988332,), (1347988355,), (1347988472,), (1347988491,), (1347988501,), (1347988516,), (1347988528,), (1347988533,), (1347988731,), (1347988758,), (1347988769,), (1347988805,), (1347988835,), (1347989029,), (1347989039,), (1347989053,), (1347989063,), (1347989078,), (1347989087,), (1347989262,), (1347989272,), (1347989274,), (1347989294,), (1347989461,), (1347989463,), (1347989465,), (1347989515,), (1347989640,), (1347989693,), (1347989699,), (1347989741,), (1347989778,), (1347989804,), (1347989836,), (1347990022,), (1347989990,), (1347990005,), (1347990274,), (1347990315,), (1347990326,), (1347993043,), (1347993046,), (1347993048,), (1347993049,), (1347993083,), (1347993087,), (1347993091,), (1347993095,), (1347993188,), (1347993212,), (1347993239,), (1347993267,), (1347993296,), (1347993326,), (1347993489,), (1347993490,), (1347993493,), (1347993519,), (1347993728,), (1347993759,), (1347993778,), (1347993798,), (1347993824,), (1347993860,), (1347994216,), (1347994249,), (1347994275,), (1347994299,), (1347994327,), (1347994434,), (1347994463,), (1347994493,), (1347994548,), (1347995040,), (1347994694,), (1347994859,), (1347994909,), (1347994945,), (1347995004,), (1347995255,), (1347995297,), (1347995319,), (1347995345,), (1347995358,), (1347995666,), (1347995794,), (1347995941,), (1347996069,), (1347996207,), (1347996364,), (1347996646,), (1347996681,), (1347996728,), (1347996765,), (1347996804,), (1347996843,), (1347997268,), (1347997350,), (1347997387,), (1347997425,), (1347997947,), (1347997963,), (1347998005,), (1347998033,), (1347998043,), (1347998059,), (1347998529,), (1347998534,), (1347998538,), (1347998544,), (1347998855,), (1347998859,), (1347998875,), (1347998890,), (1347998947,), (1347998965,), (1347999167,), (1347999178,), (1347999189,), (1347999196,), (1347999203,), (1347999474,), (1347999486,), (1347999503,), (1347999523,), (1347999544,), (1347999640,), (1347999651,), (1347999656,), (1347999659,), (1347999663,), (1347999776,), (1347999781,), (1347999797,), (1347999968,), (1348000004,), (1348000036,), (1348000064,), (1348000091,), (1348000112,), (1348000322,), (1348000352,), (1348000381,), (1348000412,), (1348000441,), (1348000699,), (1348000729,), (1348000757,), (1348000791,), (1348001681,), (1348001358,), (1348001414,), (1348001468,), (1348001549,), (1348001625,), (1348001951,), (1348001974,), (1348002000,), (1348002024,), (1348002246,), (1348002380,), (1348002440,), (1348002496,), (1348002540,), (1348002837,), (1348002847,), (1348002872,), (1348002881,), (1348002887,), (1348002891,), (1348003399,), (1348003529,), (1348003618,), (1348003821,), (1348004054,), (1348004059,), (1348004090,), (1348004093,), (1348004100,), (1348004124,), (1348004369,), (1348004396,), (1348004423,), (1348004448,), (1348004475,), (1348004723,), (1348004745,), (1348004768,), (1348005108,), (1348005141,), (1348005151,), (1348005157,), (1348005163,), (1348005251,), (1348005274,), (1348005318,), (1348005346,), (1348005364,), (1348005372,), (1348005455,), (1348005480,), (1348005762,), (1348005794,), (1348005818,), (1348005847,), (1348005863,), (1348005875,), (1348005951,), (1348005955,), (1348005959,), (1348005979,), (1348006002,), (1348006113,), (1348006141,), (1348006146,), (1348006152,), (1348006177,), (1348006182,), (1348006196,), (1348006201,), (1348006211,), (1348006214,), (1348006404,), (1348006269,), (1348006305,), (1348006340,), (1348006370,), (1348006548,), (1348006562,), (1348006572,), (1348006578,), (1348007152,), (1348007169,), (1348007200,), (1348007227,), (1348007242,), (1348007260,), (1348007678,), (1348007709,), (1348007754,), (1348007888,), (1348007922,), (1348007940,), (1348008113,), (1348008147,), (1348008179,), (1348008481,), (1348008488,), (1348008505,), (1348008509,), (1348008512,), (1348008672,), (1348008683,), (1348008694,), (1348008699,), (1348008726,), (1348008734,), (1348008768,), (1348008770,), (1348008774,), (1348008785,), (1348008813,), (1348009160,), (1348009211,), (1348009245,), (1348009288,), (1348009325,), (1348009364,), (1348009878,), (1348009972,), (1348010022,), (1348020008,), (1348020181,), (1348020206,), (1348020227,), (1348020240,), (1348020384,), (1348020388,), (1348020411,), (1348020470,), (1348020487,), (1348021104,), (1348021780,), (1348021828,), (1348022340,), (1348022365,), (1348022728,), (1348022752,), (1348022803,), (1348022807,), (1348023012,), (1348023057,), (1348023434,), (1348023490,), (1348023552,), (1348023823,), (1348023813,), (1348024560,), (1348024563,), (1348025100,), (1348025116,), (1348027368,), (1348029849,), (1348030499,), (1348079511,), (1348080215,), (1348080445,), (1348080739,), (1348080745,), (1348080842,), (1348081724,), (1348084431,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27032025': {'nb_upload': 24, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21815996]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181] map_info['map_portfolio_photo'] : {21815996: [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181]} final : True mtd_id 4302 list_pids : [1348023823, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181] Looping around the photos to save general results len do output : 1 /21815996Didn'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, '2700193') ('4302', '21815996', '1348023823', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023552', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023490', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023434', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023057', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348023012', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022807', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022803', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022752', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022728', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022365', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348022340', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021828', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021780', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348021104', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020487', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020470', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020411', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020388', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020384', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020240', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020227', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020206', None, None, None, None, None, '2700193') ('4302', None, None, None, None, None, None, None, '2700193') ('4302', '21815996', '1348020181', None, None, None, None, None, '2700193') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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, '21815996', 'None', None, None, None, None, '2700193'), ('4302', '21815996', '1348023823', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023552', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023490', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023434', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023057', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348023012', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022807', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022803', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022752', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022728', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022365', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348022340', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348021828', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348021780', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348021104', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020487', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020470', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020411', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020388', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020384', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020240', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020227', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020206', None, None, None, None, None, '2700193'), ('4302', '21815996', '1348020181', None, None, None, None, None, '2700193')] time used for this insertion : 0.42070531845092773 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.0155510902404785 time spend to save output : 0.42102813720703125 total time spend for step 5 : 4.43657922744751 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 (2700193) 2.80user 1.99system 0:23.37elapsed 20%CPU (0avgtext+0avgdata 166876maxresident)k 752inputs+18136outputs (8major+80186minor)pagefaults 0swaps