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 : 539205 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 (2734134) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2734134) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121697 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2734134'] with mtr_portfolio_ids : ['22121697'] and first list_photo_ids : [] new path : /proc/539205/ Name: python3 Umask: 0002 State: R (running) Tgid: 539205 Ngid: 0 Pid: 539205 PPid: 539204 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 539205 NSpid: 539205 NSpgid: 537958 NSsid: 537958 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98680 kB VmRSS: 98680 kB RssAnon: 59800 kB RssFile: 38880 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 580 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: 47 nonvoluntary_ctxt_switches: 134 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '539205', 'Ngid': '0', 'Pid': '539205', 'PPid': '539204', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '539205', 'NSpid': '539205', 'NSpgid': '537958', 'NSsid': '537958', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98680 kB', 'VmRSS': '98680 kB', 'RssAnon': '59800 kB', 'RssFile': '38880 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '580 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': '47', 'nonvoluntary_ctxt_switches': '134'} ('datou_batch_current', '539205', '1106828', '0', '1106828', '865576', '98680', b'', 'marlene', '2734134') 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 (22121697) 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 (2734134 ) ) 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 (22121697) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350632783, 'portfolio_id': 22121697}, {'photo_id': 1350632516, 'portfolio_id': 22121697}, {'photo_id': 1350632487, 'portfolio_id': 22121697}, {'photo_id': 1350632459, 'portfolio_id': 22121697}, {'photo_id': 1350632267, 'portfolio_id': 22121697}, {'photo_id': 1350632251, 'portfolio_id': 22121697}, {'photo_id': 1350632137, 'portfolio_id': 22121697}, {'photo_id': 1350632132, 'portfolio_id': 22121697}, {'photo_id': 1350632109, 'portfolio_id': 22121697}, {'photo_id': 1350631903, 'portfolio_id': 22121697}, {'photo_id': 1350631532, 'portfolio_id': 22121697}, {'photo_id': 1350631490, 'portfolio_id': 22121697}, {'photo_id': 1350631486, 'portfolio_id': 22121697}, {'photo_id': 1350631481, 'portfolio_id': 22121697}, {'photo_id': 1350631284, 'portfolio_id': 22121697}, {'photo_id': 1350631195, 'portfolio_id': 22121697}, {'photo_id': 1350631179, 'portfolio_id': 22121697}, {'photo_id': 1350630926, 'portfolio_id': 22121697}, {'photo_id': 1350630902, 'portfolio_id': 22121697}, {'photo_id': 1350630751, 'portfolio_id': 22121697}, {'photo_id': 1350630722, 'portfolio_id': 22121697}, {'photo_id': 1350630694, 'portfolio_id': 22121697}, {'photo_id': 1350630350, 'portfolio_id': 22121697}, {'photo_id': 1350630324, 'portfolio_id': 22121697}, {'photo_id': 1350630287, 'portfolio_id': 22121697}, {'photo_id': 1350629986, 'portfolio_id': 22121697}, {'photo_id': 1350629955, 'portfolio_id': 22121697}] map_portfolio_id_photo_id: {22121697: [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955]} ##### 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.02423381805419922 #### 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 Apr 18 05:46:25 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 (22121697) 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 : 22121697 get user id for portfolio 22121697 get sub ptf for main ptf 22121697, type 3726 and hashtags ['environnement', 'plastique', 'Carton_brun', 'kraft', 'Carton_gris', 'autre_refus', 'mal_croppe', 'metal', 'Teint_Dans_La_Masse', 'flou', 'papier', '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`=22121697 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_brun','kraft','Carton_gris','autre_refus','mal_croppe','metal','Teint_Dans_La_Masse','flou','papier','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`=22121697 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_brun','kraft','Carton_gris','autre_refus','mal_croppe','metal','Teint_Dans_La_Masse','flou','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22121697, 'sub_port_id': 22121704, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604249, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}, 'metal': {'main_port_id': 22121697, 'sub_port_id': 22121705, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604250, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}, 'cartonnette': {'main_port_id': 22121697, 'sub_port_id': 22121706, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604251, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22121697, 'sub_port_id': 22121707, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604252, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}, 'papier': {'main_port_id': 22121697, 'sub_port_id': 22121708, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604253, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}, 'flou': {'main_port_id': 22121697, 'sub_port_id': 22121709, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604254, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}, 'autre_refus': {'main_port_id': 22121697, 'sub_port_id': 22121710, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604255, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}, 'kraft': {'main_port_id': 22121697, 'sub_port_id': 22121711, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604256, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}, 'environnement': {'main_port_id': 22121697, 'sub_port_id': 22121712, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604257, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}, 'Carton_gris': {'main_port_id': 22121697, 'sub_port_id': 22121713, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604258, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}, 'plastique': {'main_port_id': 22121697, 'sub_port_id': 22121714, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604259, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}, 'mal_croppe': {'main_port_id': 22121697, 'sub_port_id': 22121715, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604260, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22121704 , 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=22121697 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 (22121704) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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 22121705 , 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=22121697 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 (22121705) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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 22121706 , 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=22121697 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 (22121706) result : ((1350631306,), (1350631307,), (1350631574,), (1350633143,), (1350633145,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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 22121707 , 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=22121697 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 (22121707) result : ((1350630876,), (1350630877,), (1350631235,), (1350631302,), (1350631571,), (1350631572,), (1350632194,), (1350632619,), (1350633116,), (1350633305,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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 22121708 , 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=22121697 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 (22121708) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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 22121709 , 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=22121697 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 (22121709) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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 22121710 , 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=22121697 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 (22121710) result : ((1350630878,), (1350633120,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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 22121711 , 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=22121697 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 (22121711) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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 22121712 , 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=22121697 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 (22121712) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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 22121713 , 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=22121697 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 (22121713) result : ((1350632198,), (1350633128,), (1350633129,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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 22121714 , 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=22121697 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 (22121714) result : ((1350631282,), (1350631478,), (1350631575,), (1350631576,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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 22121715 , 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=22121697 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 (22121715) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22121697) result : ((1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,)) 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`=22121697 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_brun','kraft','Carton_gris','autre_refus','mal_croppe','metal','Teint_Dans_La_Masse','flou','papier','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`=22121697 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_brun','kraft','Carton_gris','autre_refus','mal_croppe','metal','Teint_Dans_La_Masse','flou','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22121697, 'sub_port_id': 22121717, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604261, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}, 'metal': {'main_port_id': 22121697, 'sub_port_id': 22121718, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604262, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}, 'cartonnette': {'main_port_id': 22121697, 'sub_port_id': 22121719, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604263, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22121697, 'sub_port_id': 22121720, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604264, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}, 'papier': {'main_port_id': 22121697, 'sub_port_id': 22121721, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604265, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}, 'flou': {'main_port_id': 22121697, 'sub_port_id': 22121722, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604266, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}, 'autre_refus': {'main_port_id': 22121697, 'sub_port_id': 22121723, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604267, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}, 'kraft': {'main_port_id': 22121697, 'sub_port_id': 22121724, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604268, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}, 'environnement': {'main_port_id': 22121697, 'sub_port_id': 22121725, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604269, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}, 'Carton_gris': {'main_port_id': 22121697, 'sub_port_id': 22121726, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604270, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}, 'plastique': {'main_port_id': 22121697, 'sub_port_id': 22121727, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604271, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}, 'mal_croppe': {'main_port_id': 22121697, 'sub_port_id': 22121728, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14604272, 'last_updated_at': datetime.datetime(2025, 4, 17, 7, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 7, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 7, 5, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121717,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121704 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121718,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121705 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121706 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121707 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121708 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121709 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121710 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121724,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121711 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121725,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121712 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121726,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121713 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121727,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121714 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22121728,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22121715 lien utilise dans velours : https://www.fotonower.com/velours/22121717,22121718,22121719,22121720,22121721,22121722,22121723,22121724,22121725,22121726,22121727,22121728?tags=Carton_brun,metal,cartonnette,Teint_Dans_La_Masse,papier,flou,autre_refus,kraft,environnement,Carton_gris,plastique,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22121697]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955] map_info['map_portfolio_photo'] : {22121697: [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955]} final : False mtd_id 4302 list_pids : [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955] Looping around the photos to save general results len do output : 1 /22121697. 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, '2734134') ('4302', '22121697', '1350632783', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632516', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632487', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632459', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632267', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632251', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632137', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632132', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632109', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631903', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631532', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631490', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631486', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631481', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631284', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631195', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631179', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630926', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630902', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630751', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630722', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630694', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630350', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630324', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630287', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350629986', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350629955', None, None, None, None, None, '2734134') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 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, '22121697', "{'Carton_brun': 22121704, 'metal': 22121705, 'cartonnette': 22121706, 'Teint_Dans_La_Masse': 22121707, 'papier': 22121708, 'flou': 22121709, 'autre_refus': 22121710, 'kraft': 22121711, 'environnement': 22121712, 'Carton_gris': 22121713, 'plastique': 22121714, 'mal_croppe': 22121715}", None, None, None, None, '2734134'), ('4302', '22121697', '1350632783', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632516', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632487', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632459', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632267', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632251', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632137', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632132', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632109', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631903', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631532', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631490', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631486', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631481', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631284', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631195', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631179', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630926', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630902', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630751', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630722', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630694', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630350', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630324', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630287', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350629986', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350629955', None, None, None, None, None, '2734134')] time used for this insertion : 0.023041963577270508 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4810304641723633 time spend to save output : 0.025274038314819336 total time spend for step 1 : 1.5063045024871826 step2:final Fri Apr 18 05:46:27 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 (22121697) 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 22121697 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350629986,1350629955,1350630350,1350630324,1350630287,1350630751,1350630722,1350630694,1350630926,1350630902,1350631195,1350631179,1350631284,1350631490,1350631486,1350631481,1350631903,1350631532,1350632137,1350632132,1350632109,1350632267,1350632251,1350632516,1350632487,1350632459,1350632783); 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([22121697]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} new output for save of step final : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955] map_info['map_portfolio_photo'] : {22121697: [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955]} final : False mtd_id 4302 list_pids : [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955] Looping around the photos to save general results len do output : 27 /1350632783.Didn't retrieve data . /1350632516.Didn't retrieve data . /1350632487.Didn't retrieve data . /1350632459.Didn't retrieve data . /1350632267.Didn't retrieve data . /1350632251.Didn't retrieve data . /1350632137.Didn't retrieve data . /1350632132.Didn't retrieve data . /1350632109.Didn't retrieve data . /1350631903.Didn't retrieve data . /1350631532.Didn't retrieve data . /1350631490.Didn't retrieve data . /1350631486.Didn't retrieve data . /1350631481.Didn't retrieve data . /1350631284.Didn't retrieve data . /1350631195.Didn't retrieve data . /1350631179.Didn't retrieve data . /1350630926.Didn't retrieve data . /1350630902.Didn't retrieve data . /1350630751.Didn't retrieve data . /1350630722.Didn't retrieve data . /1350630694.Didn't retrieve data . /1350630350.Didn't retrieve data . /1350630324.Didn't retrieve data . /1350630287.Didn't retrieve data . /1350629986.Didn't retrieve data . /1350629955.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, '2734134') ('4302', '22121697', '1350632783', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632516', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632487', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632459', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632267', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632251', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632137', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632132', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632109', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631903', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631532', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631490', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631486', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631481', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631284', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631195', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631179', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630926', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630902', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630751', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630722', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630694', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630350', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630324', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630287', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350629986', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350629955', None, None, None, None, None, '2734134') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 81 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', '22121697', '1350632783', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350632516', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350632487', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350632459', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350632267', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350632251', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350632137', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350632132', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350632109', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350631903', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350631532', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350631490', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350631486', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350631481', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350631284', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350631195', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350631179', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350630926', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350630902', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350630751', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350630722', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350630694', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350630350', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350630324', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350630287', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350629986', '0.05472739365877293', None, None, None, None, '2734134'), ('4302', '22121697', '1350629955', '0.05472739365877293', None, None, None, None, '2734134')] time used for this insertion : 0.017164230346679688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07648229598999023 time spend to save output : 0.018462181091308594 total time spend for step 2 : 0.09494447708129883 step3:velours_tree Fri Apr 18 05:46:27 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 : {22121697: [{'Carton_brun': 22121704, 'metal': 22121705, 'cartonnette': 22121706, 'Teint_Dans_La_Masse': 22121707, 'papier': 22121708, 'flou': 22121709, 'autre_refus': 22121710, 'kraft': 22121711, 'environnement': 22121712, 'Carton_gris': 22121713, 'plastique': 22121714, 'mal_croppe': 22121715}]} input_args_next_step : {22121697: ()} output_args : {22121697: [{'Carton_brun': 22121704, 'metal': 22121705, 'cartonnette': 22121706, 'Teint_Dans_La_Masse': 22121707, 'papier': 22121708, 'flou': 22121709, 'autre_refus': 22121710, 'kraft': 22121711, 'environnement': 22121712, 'Carton_gris': 22121713, 'plastique': 22121714, 'mal_croppe': 22121715}]} args : 22121697 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 22121704, 'metal': 22121705, 'cartonnette': 22121706, 'Teint_Dans_La_Masse': 22121707, 'papier': 22121708, 'flou': 22121709, 'autre_refus': 22121710, 'kraft': 22121711, 'environnement': 22121712, 'Carton_gris': 22121713, 'plastique': 22121714, 'mal_croppe': 22121715},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22121697) 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([22121697]) 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.30140209197998047 time spend to save output : 6.341934204101562e-05 total time spend for step 3 : 0.3014655113220215 step4:send_mail_cod Fri Apr 18 05:46:27 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 : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} input_args_next_step : {1350632783: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350632783 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350632516 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350632487 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350632459 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350632267 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350632251 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350632137 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350632132 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350632109 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350631903 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350631532 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350631490 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350631486 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350631481 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350631284 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350631195 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350631179 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350630926 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350630902 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350630751 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350630722 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350630694 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350630350 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350630324 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350630287 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350629986 depend.output_id : 0 input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ()} output_args : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',)} args : 1350629955 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 : {22121697: [{'Carton_brun': 22121704, 'metal': 22121705, 'cartonnette': 22121706, 'Teint_Dans_La_Masse': 22121707, 'papier': 22121708, 'flou': 22121709, 'autre_refus': 22121710, 'kraft': 22121711, 'environnement': 22121712, 'Carton_gris': 22121713, 'plastique': 22121714, 'mal_croppe': 22121715}]} input_args_next_step : {1350632783: ('0.05472739365877293',), 1350632516: ('0.05472739365877293',), 1350632487: ('0.05472739365877293',), 1350632459: ('0.05472739365877293',), 1350632267: ('0.05472739365877293',), 1350632251: ('0.05472739365877293',), 1350632137: ('0.05472739365877293',), 1350632132: ('0.05472739365877293',), 1350632109: ('0.05472739365877293',), 1350631903: ('0.05472739365877293',), 1350631532: ('0.05472739365877293',), 1350631490: ('0.05472739365877293',), 1350631486: ('0.05472739365877293',), 1350631481: ('0.05472739365877293',), 1350631284: ('0.05472739365877293',), 1350631195: ('0.05472739365877293',), 1350631179: ('0.05472739365877293',), 1350630926: ('0.05472739365877293',), 1350630902: ('0.05472739365877293',), 1350630751: ('0.05472739365877293',), 1350630722: ('0.05472739365877293',), 1350630694: ('0.05472739365877293',), 1350630350: ('0.05472739365877293',), 1350630324: ('0.05472739365877293',), 1350630287: ('0.05472739365877293',), 1350629986: ('0.05472739365877293',), 1350629955: ('0.05472739365877293',), 22121697: ()} output_args : {22121697: [{'Carton_brun': 22121704, 'metal': 22121705, 'cartonnette': 22121706, 'Teint_Dans_La_Masse': 22121707, 'papier': 22121708, 'flou': 22121709, 'autre_refus': 22121710, 'kraft': 22121711, 'environnement': 22121712, 'Carton_gris': 22121713, 'plastique': 22121714, 'mal_croppe': 22121715}]} args : 22121697 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 :28, first value : ('0.05472739365877293',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22121697) 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 (1350632783,1350632516,1350632487,1350632459,1350632267,1350632251,1350632137,1350632132,1350632109,1350631903,1350631532,1350631490,1350631486,1350631481,1350631284,1350631195,1350631179,1350630926,1350630902,1350630751,1350630722,1350630694,1350630350,1350630324,1350630287,1350629986,1350629955) Found this number of photos: 27 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350629955 begin to download photo : 1350630722 begin to download photo : 1350631284 begin to download photo : 1350632109 begin to download photo : 1350632487 download finish for photo 1350632109 begin to download photo : 1350632132 download finish for photo 1350632487 begin to download photo : 1350632516 download finish for photo 1350630722 begin to download photo : 1350630751 download finish for photo 1350629955 begin to download photo : 1350629986 download finish for photo 1350631284 begin to download photo : 1350631481 download finish for photo 1350632132 begin to download photo : 1350632137 download finish for photo 1350630751 begin to download photo : 1350630902 download finish for photo 1350632516 begin to download photo : 1350632783 download finish for photo 1350629986 begin to download photo : 1350630287 download finish for photo 1350631481 begin to download photo : 1350631486 download finish for photo 1350630902 begin to download photo : 1350630926 download finish for photo 1350632783 download finish for photo 1350632137 begin to download photo : 1350632251 download finish for photo 1350630287 begin to download photo : 1350630324 download finish for photo 1350631486 begin to download photo : 1350631490 download finish for photo 1350630926 begin to download photo : 1350631179 download finish for photo 1350632251 begin to download photo : 1350632267 download finish for photo 1350630324 begin to download photo : 1350630350 download finish for photo 1350631490 begin to download photo : 1350631532 download finish for photo 1350631179 begin to download photo : 1350631195 download finish for photo 1350632267 begin to download photo : 1350632459 download finish for photo 1350631532 begin to download photo : 1350631903 download finish for photo 1350630350 begin to download photo : 1350630694 download finish for photo 1350631195 download finish for photo 1350632459 download finish for photo 1350631903 download finish for photo 1350630694 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221217051744947988/ length of list_filenames : 27 ; length of list_pids : 27 ; length of list_args : 27 results_Auto_P22121697_18-04-2025_05_46_28.pdf 22121705 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=22121705 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221217051744947988 22121706 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=22121706 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350631306: '1744866371_2660407_1350630751_65768604c75eeb886cb6485d2fc31688_rle_crop_3751246545_0.png', 1350631307: '1744866371_2660407_1350630751_65768604c75eeb886cb6485d2fc31688_rle_crop_3751246551_0.png', 1350631574: '1744866541_2662034_1350631486_7895d4d6edfd056aa0c0643a1ec5076d_rle_crop_3751248365_0.png', 1350633143: '1744867093_2666986_1350632783_2258b8bc772f9970fba19931049dc237_rle_crop_3751260253_0.png', 1350633145: '1744867093_2666986_1350632487_a36fcf7964cd07a9bae141f11b9a64d7_rle_crop_3751260266_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/cbe8f013cfdd1fe674fdacf4855d14bb_63430691.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e4f359fa7690796d7b1c43045b68a323_6303883.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/a380a59dd85306bd2f5d1d3cb1ec48b6_14263375.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b329035c4eed27925ca586cbb5d09a4b_30458022.png change filename to text .imagette221217061744947988/ imagette221217061744947988/1744866541_2662034_1350631486_7895d4d6edfd056aa0c0643a1ec5076d_rle_crop_3751248365_0.png.png imagette221217061744947988/1744866371_2660407_1350630751_65768604c75eeb886cb6485d2fc31688_rle_crop_3751246551_0.png.png imagette221217061744947988/1744867093_2666986_1350632783_2258b8bc772f9970fba19931049dc237_rle_crop_3751260253_0.png.png imagette221217061744947988/1744866371_2660407_1350630751_65768604c75eeb886cb6485d2fc31688_rle_crop_3751246545_0.png.png imagette221217061744947988/1744867093_2666986_1350632487_a36fcf7964cd07a9bae141f11b9a64d7_rle_crop_3751260266_0.png.png imagette221217091744947989/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/46da48fb15ebb12e7d08b237c8a24fa3_83696525.png imagette221217061744947988 22121709 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=22121709 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221217091744947989 22121710 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=22121710 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350630878: '1744866192_2658621_1350630287_37f30117b8ea9912015a50f2981a198f_rle_crop_3751245654_0.png', 1350633120: '1744867093_2666986_1350632487_a36fcf7964cd07a9bae141f11b9a64d7_rle_crop_3751260271_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1c2725bc5b0e8400810c95e19f2071d2_55800428.png change filename to text .imagette221217101744947989/ imagette221217101744947989/1744867093_2666986_1350632487_a36fcf7964cd07a9bae141f11b9a64d7_rle_crop_3751260271_0.png.png imagette221217101744947989/1744866192_2658621_1350630287_37f30117b8ea9912015a50f2981a198f_rle_crop_3751245654_0.png.png imagette221217111744947989/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/5a54a2288bbfac666ac92945056961ee_70602134.png imagette221217101744947989 22121711 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=22121711 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221217111744947989 22121714 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=22121714 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350631282: '1744866342_268877_1350630350_a470255f6f98c08e9f9274203fb5c659_rle_crop_3751246501_0.png', 1350631478: '1744866462_272723_1350631284_93da370ecbdeb9739da5b6c491081464_rle_crop_3751247268_0.png', 1350631575: '1744866541_2662034_1350631486_7895d4d6edfd056aa0c0643a1ec5076d_rle_crop_3751248366_0.png', 1350631576: '1744866541_2662034_1350631481_4100af82a707ddb58aac988e6d0d15e8_rle_crop_3751248376_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/fa91f81f1e76325e7e3bd86e31512ed6_62427112.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/29bccccde23f2c1221c5ff6ba18dd21f_63058624.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e5158a2c1bcd7b2492a5ac751c056e0f_92519620.png change filename to text .imagette221217141744947989/ imagette221217141744947989/1744866342_268877_1350630350_a470255f6f98c08e9f9274203fb5c659_rle_crop_3751246501_0.png.png imagette221217141744947989/1744866462_272723_1350631284_93da370ecbdeb9739da5b6c491081464_rle_crop_3751247268_0.png.png imagette221217141744947989/1744866541_2662034_1350631486_7895d4d6edfd056aa0c0643a1ec5076d_rle_crop_3751248366_0.png.png imagette221217141744947989/1744866541_2662034_1350631481_4100af82a707ddb58aac988e6d0d15e8_rle_crop_3751248376_0.png.png imagette221217151744947990/ imagette221217041744947990/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7368f0bf1026e48e45b4e6bcf4c959b3_83349324.png imagette221217141744947989 22121715 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=22121715 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221217151744947990 22121704 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=22121704 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221217041744947990 22121707 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=22121707 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350630876: '1744866192_2658621_1350630324_b0f26eb21b16ca23c08ccfa37e806970_rle_crop_3751245649_0.png', 1350630877: '1744866192_2658621_1350630287_37f30117b8ea9912015a50f2981a198f_rle_crop_3751245659_0.png', 1350631235: '1744866312_2659815_1350630722_66febeff395e7f5a739c0282c90bcd07_rle_crop_3751246374_0.png', 1350631302: '1744866371_2660407_1350630751_65768604c75eeb886cb6485d2fc31688_rle_crop_3751246547_0.png', 1350631571: '1744866541_2662034_1350631486_7895d4d6edfd056aa0c0643a1ec5076d_rle_crop_3751248363_0.png', 1350631572: '1744866541_2662034_1350631481_4100af82a707ddb58aac988e6d0d15e8_rle_crop_3751248378_0.png', 1350632194: '1744866791_2664053_1350631903_425d2a38015f8440f080fbd435b8fd98_rle_crop_3751253231_0.png', 1350632619: '1744866913_2665020_1350632132_d18346595eaff223f5aa0b65036b3981_rle_crop_3751255666_0.png', 1350633116: '1744867093_2666986_1350632783_2258b8bc772f9970fba19931049dc237_rle_crop_3751260261_0.png', 1350633305: '1744867152_2667648_1350632516_3debf99eaa7bab9312c881fc9bb29484_rle_crop_3751260671_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/10b1a1fc88c9ed0ae89e8b9632b25c5e_75494199.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7a3c7fee9918acdcde92307620f8f2dc_33011969.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/c03366955a701f6ed5d76c26f3f2929d_61581969.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/3b18767655573e2db537a53be7183802_78049620.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/94112f625b9ba7ffd99954fdac5c0334_45484184.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/d875202d70b9d236ff5e202871972290_51842521.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/980a178eafe638e760e8ca91a96a6c1a_38626132.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/9c8b885ccc7a140f5938f19228d10f2b_68281634.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/d45445f6bd6bcd14dde84a4a5e2e0d13_59419726.png change filename to text .imagette221217071744947990/ imagette221217071744947990/1744866541_2662034_1350631481_4100af82a707ddb58aac988e6d0d15e8_rle_crop_3751248378_0.png.png imagette221217071744947990/1744866312_2659815_1350630722_66febeff395e7f5a739c0282c90bcd07_rle_crop_3751246374_0.png.png imagette221217071744947990/1744866791_2664053_1350631903_425d2a38015f8440f080fbd435b8fd98_rle_crop_3751253231_0.png.png imagette221217071744947990/1744866192_2658621_1350630287_37f30117b8ea9912015a50f2981a198f_rle_crop_3751245659_0.png.png imagette221217071744947990/1744866913_2665020_1350632132_d18346595eaff223f5aa0b65036b3981_rle_crop_3751255666_0.png.png imagette221217071744947990/1744866541_2662034_1350631486_7895d4d6edfd056aa0c0643a1ec5076d_rle_crop_3751248363_0.png.png imagette221217071744947990/1744866371_2660407_1350630751_65768604c75eeb886cb6485d2fc31688_rle_crop_3751246547_0.png.png imagette221217071744947990/1744866192_2658621_1350630324_b0f26eb21b16ca23c08ccfa37e806970_rle_crop_3751245649_0.png.png imagette221217071744947990/1744867093_2666986_1350632783_2258b8bc772f9970fba19931049dc237_rle_crop_3751260261_0.png.png imagette221217071744947990/1744867152_2667648_1350632516_3debf99eaa7bab9312c881fc9bb29484_rle_crop_3751260671_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/d9bb274df5ce37f72d2c1ea3fdd4c737_73948049.png imagette221217071744947990 22121713 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=22121713 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350632198: '1744866791_2664053_1350631903_425d2a38015f8440f080fbd435b8fd98_rle_crop_3751253224_0.png', 1350633128: '1744867093_2666986_1350632783_2258b8bc772f9970fba19931049dc237_rle_crop_3751260251_0.png', 1350633129: '1744867093_2666986_1350632459_9727aecb087a5b75ea7b6173be827182_rle_crop_3751260285_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b98e989e2b588f4a75316ccc9f3993ad_42058163.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/449cdd104644c29302196fa5e98b459e_80373508.png change filename to text .imagette221217131744947991/ imagette221217131744947991/1744866791_2664053_1350631903_425d2a38015f8440f080fbd435b8fd98_rle_crop_3751253224_0.png.png imagette221217131744947991/1744867093_2666986_1350632459_9727aecb087a5b75ea7b6173be827182_rle_crop_3751260285_0.png.png imagette221217131744947991/1744867093_2666986_1350632783_2258b8bc772f9970fba19931049dc237_rle_crop_3751260251_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/0879d3d9016ca9c6c6d1061ed90ba790_6519746.png imagette221217131744947991 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22121697 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22121717,22121718,22121719,22121720,22121721,22121722,22121723,22121724,22121725,22121726,22121727,22121728?tags=Carton_brun,metal,cartonnette,Teint_Dans_La_Masse,papier,flou,autre_refus,kraft,environnement,Carton_gris,plastique,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1350632783] : ('0.05472739365877293',) no score found for photo 1350632783 We are sending mail with results at report@fotonower.com args[1350632516] : ('0.05472739365877293',) no score found for photo 1350632516 We are sending mail with results at report@fotonower.com args[1350632487] : ('0.05472739365877293',) no score found for photo 1350632487 We are sending mail with results at report@fotonower.com args[1350632459] : ('0.05472739365877293',) no score found for photo 1350632459 We are sending mail with results at report@fotonower.com args[1350632267] : ('0.05472739365877293',) no score found for photo 1350632267 We are sending mail with results at report@fotonower.com args[1350632251] : ('0.05472739365877293',) no score found for photo 1350632251 We are sending mail with results at report@fotonower.com args[1350632137] : ('0.05472739365877293',) no score found for photo 1350632137 We are sending mail with results at report@fotonower.com args[1350632132] : ('0.05472739365877293',) no score found for photo 1350632132 We are sending mail with results at report@fotonower.com args[1350632109] : ('0.05472739365877293',) no score found for photo 1350632109 We are sending mail with results at report@fotonower.com args[1350631903] : ('0.05472739365877293',) no score found for photo 1350631903 We are sending mail with results at report@fotonower.com args[1350631532] : ('0.05472739365877293',) no score found for photo 1350631532 We are sending mail with results at report@fotonower.com args[1350631490] : ('0.05472739365877293',) no score found for photo 1350631490 We are sending mail with results at report@fotonower.com args[1350631486] : ('0.05472739365877293',) no score found for photo 1350631486 We are sending mail with results at report@fotonower.com args[1350631481] : ('0.05472739365877293',) no score found for photo 1350631481 We are sending mail with results at report@fotonower.com args[1350631284] : ('0.05472739365877293',) no score found for photo 1350631284 We are sending mail with results at report@fotonower.com args[1350631195] : ('0.05472739365877293',) no score found for photo 1350631195 We are sending mail with results at report@fotonower.com args[1350631179] : ('0.05472739365877293',) no score found for photo 1350631179 We are sending mail with results at report@fotonower.com args[1350630926] : ('0.05472739365877293',) no score found for photo 1350630926 We are sending mail with results at report@fotonower.com args[1350630902] : ('0.05472739365877293',) no score found for photo 1350630902 We are sending mail with results at report@fotonower.com args[1350630751] : ('0.05472739365877293',) no score found for photo 1350630751 We are sending mail with results at report@fotonower.com args[1350630722] : ('0.05472739365877293',) no score found for photo 1350630722 We are sending mail with results at report@fotonower.com args[1350630694] : ('0.05472739365877293',) no score found for photo 1350630694 We are sending mail with results at report@fotonower.com args[1350630350] : ('0.05472739365877293',) no score found for photo 1350630350 We are sending mail with results at report@fotonower.com args[1350630324] : ('0.05472739365877293',) no score found for photo 1350630324 We are sending mail with results at report@fotonower.com args[1350630287] : ('0.05472739365877293',) no score found for photo 1350630287 We are sending mail with results at report@fotonower.com args[1350629986] : ('0.05472739365877293',) no score found for photo 1350629986 We are sending mail with results at report@fotonower.com args[1350629955] : ('0.05472739365877293',) no score found for photo 1350629955 We are sending mail with results at report@fotonower.com refus_total : 0.05472739365877293 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=22121697 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_P22121697_18-04-2025_05_46_28.pdf results_Auto_P22121697_18-04-2025_05_46_28.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22121697_18-04-2025_05_46_28.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','22121697','results_Auto_P22121697_18-04-2025_05_46_28.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22121697_18-04-2025_05_46_28.pdf','pdf','','0.27','0.05472739365877293') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22121697]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955] map_info['map_portfolio_photo'] : {22121697: [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955]} final : False mtd_id 4302 list_pids : [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955] 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, '2734134') ('4302', '22121697', '1350632783', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632516', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632487', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632459', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632267', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632251', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632137', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632132', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632109', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631903', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631532', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631490', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631486', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631481', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631284', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631195', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631179', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630926', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630902', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630751', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630722', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630694', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630350', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630324', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630287', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350629986', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350629955', None, None, None, None, None, '2734134') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '22121697', '1350632783', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632516', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632487', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632459', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632267', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632251', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632137', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632132', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632109', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631903', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631532', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631490', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631486', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631481', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631284', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631195', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631179', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630926', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630902', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630751', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630722', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630694', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630350', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630324', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630287', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350629986', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350629955', None, None, None, None, None, '2734134')] time used for this insertion : 0.01805424690246582 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.230919122695923 time spend to save output : 0.018444299697875977 total time spend for step 4 : 5.249363422393799 step5:split_time_score Fri Apr 18 05:46: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 : ['22121697'] 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 : [('22121697',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22121697) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350632487: {'path': 'temp/1744947987_539205_1350632487_a36fcf7964cd07a9bae141f11b9a64d7.jpg', 'extension': 'jpg'}, 1350632516: {'path': 'temp/1744947987_539205_1350632516_3debf99eaa7bab9312c881fc9bb29484.jpg', 'extension': 'jpg'}, 1350632783: {'path': 'temp/1744947987_539205_1350632783_2258b8bc772f9970fba19931049dc237.jpg', 'extension': 'jpg'}, 1350630722: {'path': 'temp/1744947987_539205_1350630722_66febeff395e7f5a739c0282c90bcd07.jpg', 'extension': 'jpg'}, 1350630751: {'path': 'temp/1744947987_539205_1350630751_65768604c75eeb886cb6485d2fc31688.jpg', 'extension': 'jpg'}, 1350630902: {'path': 'temp/1744947987_539205_1350630902_01dc69b3d93e82159e7f33a5148a66d4.jpg', 'extension': 'jpg'}, 1350630926: {'path': 'temp/1744947987_539205_1350630926_106a2923cd0110932e2fc3a317a8327f.jpg', 'extension': 'jpg'}, 1350631179: {'path': 'temp/1744947987_539205_1350631179_6c5735b38228bc939c97bc9fff11bba8.jpg', 'extension': 'jpg'}, 1350631195: {'path': 'temp/1744947987_539205_1350631195_fed5dd1c0135db335e28b941f4755d4c.jpg', 'extension': 'jpg'}, 1350632109: {'path': 'temp/1744947987_539205_1350632109_5b9ef2d7bb11e3e71bffd3c37d6296cd.jpg', 'extension': 'jpg'}, 1350632132: {'path': 'temp/1744947987_539205_1350632132_d18346595eaff223f5aa0b65036b3981.jpg', 'extension': 'jpg'}, 1350632137: {'path': 'temp/1744947987_539205_1350632137_ca6615ddc703fc664df0a95176b59337.jpg', 'extension': 'jpg'}, 1350632251: {'path': 'temp/1744947987_539205_1350632251_ba185a9513ba78b0960f438693ce6784.jpg', 'extension': 'jpg'}, 1350632267: {'path': 'temp/1744947987_539205_1350632267_845a115f96a51db24f3bf940026b0152.jpg', 'extension': 'jpg'}, 1350632459: {'path': 'temp/1744947987_539205_1350632459_9727aecb087a5b75ea7b6173be827182.jpg', 'extension': 'jpg'}, 1350631284: {'path': 'temp/1744947987_539205_1350631284_93da370ecbdeb9739da5b6c491081464.jpg', 'extension': 'jpg'}, 1350631481: {'path': 'temp/1744947987_539205_1350631481_4100af82a707ddb58aac988e6d0d15e8.jpg', 'extension': 'jpg'}, 1350631486: {'path': 'temp/1744947987_539205_1350631486_7895d4d6edfd056aa0c0643a1ec5076d.jpg', 'extension': 'jpg'}, 1350631490: {'path': 'temp/1744947987_539205_1350631490_396835e0c527f6e0f6b704faa15d12e4.jpg', 'extension': 'jpg'}, 1350631532: {'path': 'temp/1744947987_539205_1350631532_bacf6150f45e2a651b5a3d8251673e0b.jpg', 'extension': 'jpg'}, 1350631903: {'path': 'temp/1744947987_539205_1350631903_425d2a38015f8440f080fbd435b8fd98.jpg', 'extension': 'jpg'}, 1350629955: {'path': 'temp/1744947987_539205_1350629955_4d58285e129dd1e9d2d2d5c9af58da10.jpg', 'extension': 'jpg'}, 1350629986: {'path': 'temp/1744947987_539205_1350629986_3659982f36426121bd4ce04bb6f3ad12.jpg', 'extension': 'jpg'}, 1350630287: {'path': 'temp/1744947987_539205_1350630287_37f30117b8ea9912015a50f2981a198f.jpg', 'extension': 'jpg'}, 1350630324: {'path': 'temp/1744947987_539205_1350630324_b0f26eb21b16ca23c08ccfa37e806970.jpg', 'extension': 'jpg'}, 1350630350: {'path': 'temp/1744947987_539205_1350630350_a470255f6f98c08e9f9274203fb5c659.jpg', 'extension': 'jpg'}, 1350630694: {'path': 'temp/1744947987_539205_1350630694_8974b0b5dbd3c7d6b61d88eb75d1a1e7.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 = 22121697; (('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 = 22121697 group by h (('07', 27),) 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=22121697 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 (22121697) 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 (22121697) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17042025 22121697 Nombre de photos uploadées : 27 / 23040 (0%) 17042025 22121697 Nombre de photos taguées (types de déchets): 0 / 27 (0%) 17042025 22121697 Nombre de photos taguées (volume) : 0 / 27 (0%) [{'photo_id': 1350629986, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/3659982f36426121bd4ce04bb6f3ad12.jpg', 'username': None, 'uploaded_at': 1744866067, 'text': 'image_17042025_07_00_04_010143m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350629955, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/4d58285e129dd1e9d2d2d5c9af58da10.jpg', 'username': None, 'uploaded_at': 1744866067, 'text': 'image_17042025_07_00_24_010135m0.jpg 2e-05 for time 1, id_amount 4 this amount prod time diff : 1e-05'}, {'photo_id': 1350630350, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/a470255f6f98c08e9f9274203fb5c659.jpg', 'username': None, 'uploaded_at': 1744866127, 'text': 'image_17042025_07_00_54_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350630324, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b0f26eb21b16ca23c08ccfa37e806970.jpg', 'username': None, 'uploaded_at': 1744866127, 'text': 'image_17042025_07_01_04_010156m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ??????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012755393981933594 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22121697, '2025-04-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1721208,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02667832374572754 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= 1721208 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22109428, 'dashboard_result_id': 9963881, '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_P22109428_18-04-2025_05_34_53.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22109455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22109456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22109457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22109458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22109459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22109460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22109461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22109462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22109463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22109464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22109465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22109466, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22110285, 'dashboard_result_id': 9963882, '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_P22110285_18-04-2025_05_34_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22110329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22110334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22110336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22110337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22110338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22110339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22110340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22110341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22110342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22110343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22110344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22110345, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22111035, 'dashboard_result_id': 9963883, '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_P22111035_18-04-2025_05_35_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22111043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111047, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22111457, 'dashboard_result_id': 9963884, '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_P22111457_18-04-2025_05_36_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111467, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22111469, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22112780, 'dashboard_result_id': 9963885, '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_P22112780_18-04-2025_05_36_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22112782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22112783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22112784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22112785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22112786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22112787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22112788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22112789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22112790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22112791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22112792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22112793, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22113134, 'dashboard_result_id': 9963886, '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_P22113134_18-04-2025_05_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22113147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22113148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22113149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22113150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22113151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22113152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22113153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22113154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22113155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22113156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22113157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22113158, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22113655, 'dashboard_result_id': 9963887, '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_P22113655_18-04-2025_05_38_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22113657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22113658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22113659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22113660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22113661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22113662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22113663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22113664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22113665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22113666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22113667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22113668, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22114370, 'dashboard_result_id': 9963888, '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_P22114370_18-04-2025_05_38_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22114408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22114409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22114410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22114411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22114412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22114413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22114414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22114415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22114416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22114417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22114418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22114419, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22114903, 'dashboard_result_id': 9963889, '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_P22114903_18-04-2025_05_39_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22114904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22114905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22114906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22114907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22114908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22114909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22114910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22114911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22114912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22114913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22114914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22114915, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22115415, 'dashboard_result_id': 9963890, '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_P22115415_18-04-2025_05_40_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22115416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22115417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22115418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22115419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22115420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22115421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22115422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22115423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22115424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22115425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22115426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22115427, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22116007, 'dashboard_result_id': 9963891, '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_P22116007_18-04-2025_05_40_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22116032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22116033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22116034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22116035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22116036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22116037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22116038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22116039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22116040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22116041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22116042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22116043, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22116457, 'dashboard_result_id': 9963892, '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_P22116457_18-04-2025_05_40_41.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22116458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22116459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22116460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22116461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22116462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22116463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22116464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22116465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22116466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22116467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22116468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22116469, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22117034, 'dashboard_result_id': 9963893, '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_P22117034_17-04-2025_03_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22117071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22117072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22117073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22117074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22117075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22117076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22117077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22117078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22117079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22117080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22117081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22117082, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22117347, 'dashboard_result_id': 9963894, '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_P22117347_17-04-2025_04_00_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22117350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22117351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22117352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22117353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22117354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22117355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22117356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22117357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22117358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22117359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22117360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22117361, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22117600, 'dashboard_result_id': 9963895, '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_P22117600_18-04-2025_00_02_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22117639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22117640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22117641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22117642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22117643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22117644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22117645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22117646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22117647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22117648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22117649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22117650, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22119017, 'dashboard_result_id': 9963896, '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_P22119017_18-04-2025_05_43_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22119018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22119019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22119020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22119021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22119022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22119023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22119024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22119025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22119026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22119027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22119028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22119029, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22119196, 'dashboard_result_id': 9963897, '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_P22119196_18-04-2025_05_44_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22119197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22119198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22119199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22119200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22119201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22119202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22119203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22119204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22119205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22119206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22119207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22119208, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22119607, 'dashboard_result_id': 9963898, '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_P22119607_18-04-2025_05_44_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22119608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22119609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22119610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22119611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22119612, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22119613, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22119614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22119615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22119616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22119617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22119618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22119619, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22120069, 'dashboard_result_id': 9963899, '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_P22120069_18-04-2025_05_45_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22120070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22120071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22120072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22120073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22120074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22120075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22120076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22120077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22120078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22120079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22120080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22120081, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22120437, 'dashboard_result_id': 9963900, '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_P22120437_18-04-2025_05_45_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22120499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22120500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22120501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22120502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22120503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22120504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22120505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22120506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22120507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22120508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22120509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22120510, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22121396, 'dashboard_result_id': 9963901, '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_P22121396_18-04-2025_05_46_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22121397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22121398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22121399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22121400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22121401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22121402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22121403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22121404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22121405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22121406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22121407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22121408, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22121697, 'dashboard_result_id': 9963902, '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_P22121697_17-04-2025_07_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22121704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22121705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22121706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22121707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22121708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22121709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22121710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22121711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22121712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22121713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22121714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22121715, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22122263, 'dashboard_result_id': 9963903, '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_P22122263_17-04-2025_07_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22122266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22122267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22122268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22122269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22122270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22122271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22122272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22122273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22122274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22122275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22122276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22122277, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22122830, 'dashboard_result_id': 9963904, '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_P22122830_17-04-2025_07_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22122876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22122877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22122878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22122879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22122880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22122881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22122882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22122883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22122884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22122885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22122886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22122887, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22123197, 'dashboard_result_id': 9963905, '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_P22123197_17-04-2025_08_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22123200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22123201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22123202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22123203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22123204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22123205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22123206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22123207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22123208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22123209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22123210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22123211, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22123509, 'dashboard_result_id': 9963906, '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_P22123509_17-04-2025_08_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22123536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22123537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22123538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22123539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22123540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22123541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22123542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22123543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22123544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22123545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22123546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22123547, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22123926, 'dashboard_result_id': 9963907, '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_P22123926_18-04-2025_00_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22123932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22123933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22123934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22123935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22123936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22123937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22123938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22123939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22123940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22123941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22123942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22123943, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22125427, 'dashboard_result_id': 9963908, '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_P22125427_17-04-2025_09_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125440, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22125958, 'dashboard_result_id': 9963909, '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_P22125958_17-04-2025_09_46_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125973, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22126585, 'dashboard_result_id': 9963910, '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_P22126585_17-04-2025_10_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22126623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22126624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22126625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22126626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22126627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22126628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22126629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22126630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22126631, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22126632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22126633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22126634, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22127126, 'dashboard_result_id': 9963911, '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_P22127126_17-04-2025_10_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127138, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22127830, 'dashboard_result_id': 9963912, '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_P22127830_17-04-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127842, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22128489, 'dashboard_result_id': 9963913, '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_P22128489_17-04-2025_10_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22128493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22128494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22128495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22128496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22128497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22128498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22128499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22128500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22128501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22128502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22128503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22128504, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22129126, 'dashboard_result_id': 9963914, '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_P22129126_17-04-2025_11_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22129156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22129157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22129158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22129159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22129160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22129161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22129162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22129163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22129164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22129165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22129166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22129167, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22129636, 'dashboard_result_id': 9963915, '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_P22129636_17-04-2025_11_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22129663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22129664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22129665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22129666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22129667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22129668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22129669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22129670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22129671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22129672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22129673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22129674, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22130303, 'dashboard_result_id': 9963916, '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_P22130303_17-04-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22130328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22130329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22130330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22130331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22130332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22130333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22130334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22130335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22130336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22130337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22130338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22130339, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22130914, 'dashboard_result_id': 9963917, '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_P22130914_17-04-2025_11_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22130916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22130917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22130918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22130919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22130920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22130921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22130922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22130923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22130924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22130925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22130926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22130927, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22131282, 'dashboard_result_id': 9963918, '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_P22131282_17-04-2025_12_04_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22131284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22131285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22131286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22131287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22131288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22131289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22131290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22131291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22131292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22131293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22131294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22131295, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22131955, 'dashboard_result_id': 9963919, '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_P22131955_18-04-2025_00_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22131984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22131985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22131986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22131987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22131988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22131989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22131990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22131991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22131992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22131993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22131994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22131995, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22134150, 'dashboard_result_id': 9963920, '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_P22134150_17-04-2025_13_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134162, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22134502, 'dashboard_result_id': 9963921, '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_P22134502_17-04-2025_14_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134573, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22135140, 'dashboard_result_id': 9963922, '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_P22135140_17-04-2025_14_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135152, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22135842, 'dashboard_result_id': 9963923, '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_P22135842_17-04-2025_14_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135883, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22136371, 'dashboard_result_id': 9963924, '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_P22136371_17-04-2025_14_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22136374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22136375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22136376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22136377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22136378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22136379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22136380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22136381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22136382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22136383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22136384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22136385, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22136983, 'dashboard_result_id': 9963925, '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_P22136983_17-04-2025_15_00_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22136988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22136989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22136990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22136991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22136992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22136993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22136994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22136995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22136996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22136997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22136998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22136999, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22137490, 'dashboard_result_id': 9963926, '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_P22137490_17-04-2025_15_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22137492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22137493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22137494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22137495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22137496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22137497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22137498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22137499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22137500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22137501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22137502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22137503, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22138183, 'dashboard_result_id': 9963927, '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_P22138183_17-04-2025_15_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22138208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22138209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22138210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22138211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22138212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22138213, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22138214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22138215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22138216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22138217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22138218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22138219, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22138849, 'dashboard_result_id': 9963928, '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_P22138849_17-04-2025_15_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22138880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22138881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22138882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22138883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22138884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22138885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22138886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22138887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22138888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22138889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22138890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22138891, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22139472, 'dashboard_result_id': 9963929, '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_P22139472_17-04-2025_16_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22139473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22139474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22139475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22139476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22139477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22139478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22139479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22139480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22139481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22139482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22139483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22139484, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22140073, 'dashboard_result_id': 9963930, '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_P22140073_17-04-2025_16_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22140080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22140081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22140082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22140083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22140084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22140085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22140086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22140087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22140088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22140089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22140090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22140091, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22140760, 'dashboard_result_id': 9963931, '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_P22140760_17-04-2025_16_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22140763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22140764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22140765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22140766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22140767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22140768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22140769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22140770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22140771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22140772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22140773, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22140774, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22141160, 'dashboard_result_id': 9963932, '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_P22141160_17-04-2025_16_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22141180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22141181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22141182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22141183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22141184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22141185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22141186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22141187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22141188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22141189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22141190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22141191, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22141820, 'dashboard_result_id': 9963933, '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_P22141820_17-04-2025_17_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22141823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22141824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22141825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22141826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22141827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22141828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22141829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22141830, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22141831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22141832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22141833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22141834, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22142522, 'dashboard_result_id': 9963934, '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_P22142522_17-04-2025_17_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22142524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22142525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22142526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22142527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22142528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22142529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22142530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22142531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22142532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22142533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22142534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22142535, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22143351, 'dashboard_result_id': 9963935, '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_P22143351_17-04-2025_17_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22143354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22143355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22143356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22143357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22143358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22143359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22143360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22143361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22143362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22143363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22143364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22143365, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22144314, 'dashboard_result_id': 9963936, '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_P22144314_17-04-2025_18_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144350, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22144739, 'dashboard_result_id': 9963937, '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_P22144739_17-04-2025_18_33_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144751, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22145408, 'dashboard_result_id': 9963938, '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_P22145408_17-04-2025_18_47_45.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22145449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22145450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22145451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22145452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22145453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22145454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22145455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22145456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22145457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22145458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22145459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22145460, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22146025, 'dashboard_result_id': 9963939, '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_P22146025_17-04-2025_19_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22146029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22146030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22146031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22146032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22146033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22146034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22146035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22146036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22146037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22146038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22146039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22146040, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22146806, 'dashboard_result_id': 9963940, '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_P22146806_17-04-2025_19_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22146854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22146855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22146856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22146857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22146858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22146859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22146860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22146861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22146862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22146863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22146864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22146865, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22147754, 'dashboard_result_id': 9963941, '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_P22147754_17-04-2025_19_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22147800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22147802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22147803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22147804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22147806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22147807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22147808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22147810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22147811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22147812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22147813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22147815, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22148955, 'dashboard_result_id': 9963942, '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_P22148955_17-04-2025_19_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22148984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22148985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22148986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22148987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22148988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22148989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22148990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22148991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22148992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22148993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22148994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22148995, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22149555, 'dashboard_result_id': 9963943, '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_P22149555_17-04-2025_20_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22149558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22149559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22149560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22149561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22149562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22149563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22149564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22149565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22149566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22149567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22149568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22149569, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22150422, 'dashboard_result_id': 9963944, '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_P22150422_17-04-2025_20_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22150536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22150537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22150538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22150539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22150540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22150541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22150542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22150543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22150544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22150545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22150546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22150547, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22151606, 'dashboard_result_id': 9963945, '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_P22151606_17-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22151608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22151609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22151610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22151611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22151612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22151613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22151614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22151615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22151616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22151617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22151618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22151619, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22151992, 'dashboard_result_id': 9963946, '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_P22151992_17-04-2025_21_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22152053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22152054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22152055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22152056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22152057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22152058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22152059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22152060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22152061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22152062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22152063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22152065, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22153496, 'dashboard_result_id': 9963947, '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_P22153496_17-04-2025_21_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22153536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22153537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22153538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22153539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22153540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22153541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22153542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22153543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22153544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22153545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22153546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22153547, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22153951, 'dashboard_result_id': 9963948, '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_P22153951_17-04-2025_21_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22153981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22153982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22153983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22153984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22153985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22153986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22153987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22153988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22153989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22153990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22153991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22153992, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22154716, 'dashboard_result_id': 9963949, '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_P22154716_17-04-2025_21_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22154720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22154721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22154722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22154723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22154724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22154725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22154726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22154727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22154728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22154729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22154730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22154731, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22155322, 'dashboard_result_id': 9963950, '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_P22155322_17-04-2025_22_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22155323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22155324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22155325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22155326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22155327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22155328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22155329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22155330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22155331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22155332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22155333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22155334, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22155908, 'dashboard_result_id': 9963951, '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_P22155908_17-04-2025_22_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22155940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22155941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22155942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22155943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22155944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22155945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22155946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22155947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22155948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22155949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22155950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22155951, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22157097, 'dashboard_result_id': 9963952, '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_P22157097_17-04-2025_22_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22157125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22157126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22157127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22157128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22157129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22157130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22157131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22157132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22157133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22157134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22157135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22157136, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22157982, 'dashboard_result_id': 9963953, '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_P22157982_17-04-2025_22_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22158011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22158012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22158013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22158014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22158015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22158016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22158017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22158018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22158019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22158020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22158021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22158022, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22159002, 'dashboard_result_id': 9963954, '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_P22159002_17-04-2025_23_03_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22159004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22159005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22159006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22159007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22159008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22159009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22159010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22159011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22159012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22159013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22159014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22159015, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22159366, 'dashboard_result_id': 9963955, '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_P22159366_17-04-2025_23_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22159469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22159470, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22159471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22159472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22159473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22159474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22159475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22159476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22159477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22159478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22159479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22159480, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22160562, 'dashboard_result_id': 9963956, '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_P22160562_17-04-2025_23_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22160599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22160600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22160601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22160602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22160603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22160604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22160605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22160606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22160607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22160608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22160609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22160610, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22161353, 'dashboard_result_id': 9963957, '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_P22161353_17-04-2025_23_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22161379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22161380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22161381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22161382, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22161383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22161384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22161385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22161386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22161387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22161389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22161390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22161391, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1733212, 'mtr_portfolio_id': 22162225, 'dashboard_result_id': 9963958, '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_P22162225_18-04-2025_01_01_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22162227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22162228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22162229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22162230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22162231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22162232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22162233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22162234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22162235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22162236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22162237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22162238, '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 = 22109428 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': 2734113, 'mtr_portfolio_id': 22109428, 'created_at': datetime.datetime(2025, 4, 18, 5, 34, 49), 'result': '0.05326626683953516', 'result_long': None, 'result_double': None}] Qualite : 0.05326626683953516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22109428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22109428_18-04-2025_05_34_53.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22109428 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_P22109428_18-04-2025_05_34_53.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22109455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22109456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22109457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22109458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22109459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22109460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22109461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22109462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22109463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22109464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22109465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22109466, 'pht': 3726}}" where mtr_portfolio_id = 22109428 and dashboard_run_id = 1733212 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`=22109428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963881, 0.05326626683953516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22109428_18-04-2025_05_34_53.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22109455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22109456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22109457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22109458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22109459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22109460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22109461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22109462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22109463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22109464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22109465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22109466, '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 = 22110285 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': 2734114, 'mtr_portfolio_id': 22110285, 'created_at': datetime.datetime(2025, 4, 18, 5, 34, 28), 'result': '0.05893092211052675', 'result_long': None, 'result_double': None}] Qualite : 0.05893092211052675 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22110285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22110285_18-04-2025_05_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22110285 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_P22110285_18-04-2025_05_34_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22110329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22110334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22110336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22110337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22110338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22110339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22110340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22110341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22110342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22110343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22110344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22110345, 'pht': 3726}}" where mtr_portfolio_id = 22110285 and dashboard_run_id = 1733212 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`=22110285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963882, 0.05893092211052675, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22110285_18-04-2025_05_34_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22110329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22110334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22110336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22110337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22110338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22110339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22110340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22110341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22110342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22110343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22110344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22110345, '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 = 22111035 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': 2734115, 'mtr_portfolio_id': 22111035, 'created_at': datetime.datetime(2025, 4, 18, 5, 35, 28), 'result': '0.05039574714889079', 'result_long': None, 'result_double': None}] Qualite : 0.05039574714889079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22111035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22111035_18-04-2025_05_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22111035 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_P22111035_18-04-2025_05_35_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22111043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111047, 'pht': 3726}}" where mtr_portfolio_id = 22111035 and dashboard_run_id = 1733212 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`=22111035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963883, 0.05039574714889079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22111035_18-04-2025_05_35_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22111043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111047, '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 = 22111457 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': 2734116, 'mtr_portfolio_id': 22111457, 'created_at': datetime.datetime(2025, 4, 18, 5, 36, 1), 'result': '0.044204172515926475', 'result_long': None, 'result_double': None}] Qualite : 0.044204172515926475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22111457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22111457_18-04-2025_05_36_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22111457 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_P22111457_18-04-2025_05_36_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111467, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22111469, 'pht': 3726}}" where mtr_portfolio_id = 22111457 and dashboard_run_id = 1733212 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`=22111457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963884, 0.044204172515926475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22111457_18-04-2025_05_36_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111467, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22111469, '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 = 22112780 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': 2734117, 'mtr_portfolio_id': 22112780, 'created_at': datetime.datetime(2025, 4, 18, 5, 36, 29), 'result': '0.0464569880209319', 'result_long': None, 'result_double': None}] Qualite : 0.0464569880209319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22112780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22112780_18-04-2025_05_36_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22112780 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_P22112780_18-04-2025_05_36_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22112782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22112783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22112784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22112785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22112786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22112787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22112788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22112789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22112790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22112791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22112792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22112793, 'pht': 3726}}" where mtr_portfolio_id = 22112780 and dashboard_run_id = 1733212 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`=22112780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963885, 0.0464569880209319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22112780_18-04-2025_05_36_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22112782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22112783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22112784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22112785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22112786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22112787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22112788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22112789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22112790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22112791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22112792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22112793, '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 = 22113134 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': 2734118, 'mtr_portfolio_id': 22113134, 'created_at': datetime.datetime(2025, 4, 18, 5, 37, 28), 'result': '0.051928431047967925', 'result_long': None, 'result_double': None}] Qualite : 0.051928431047967925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22113134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22113134_18-04-2025_05_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22113134 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_P22113134_18-04-2025_05_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22113147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22113148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22113149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22113150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22113151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22113152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22113153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22113154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22113155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22113156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22113157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22113158, 'pht': 3726}}" where mtr_portfolio_id = 22113134 and dashboard_run_id = 1733212 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`=22113134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963886, 0.051928431047967925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22113134_18-04-2025_05_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22113147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22113148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22113149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22113150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22113151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22113152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22113153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22113154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22113155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22113156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22113157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22113158, '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 = 22113655 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': 2734119, 'mtr_portfolio_id': 22113655, 'created_at': datetime.datetime(2025, 4, 18, 5, 38), 'result': '0.04935505336417203', 'result_long': None, 'result_double': None}] Qualite : 0.04935505336417203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22113655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22113655_18-04-2025_05_38_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22113655 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_P22113655_18-04-2025_05_38_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22113657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22113658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22113659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22113660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22113661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22113662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22113663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22113664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22113665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22113666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22113667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22113668, 'pht': 3726}}" where mtr_portfolio_id = 22113655 and dashboard_run_id = 1733212 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`=22113655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963887, 0.04935505336417203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22113655_18-04-2025_05_38_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22113657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22113658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22113659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22113660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22113661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22113662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22113663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22113664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22113665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22113666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22113667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22113668, '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 = 22114370 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': 2734120, 'mtr_portfolio_id': 22114370, 'created_at': datetime.datetime(2025, 4, 18, 5, 38, 29), 'result': '0.0421763809676091', 'result_long': None, 'result_double': None}] Qualite : 0.0421763809676091 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22114370 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22114370_18-04-2025_05_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22114370 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_P22114370_18-04-2025_05_38_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22114408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22114409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22114410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22114411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22114412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22114413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22114414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22114415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22114416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22114417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22114418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22114419, 'pht': 3726}}" where mtr_portfolio_id = 22114370 and dashboard_run_id = 1733212 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`=22114370 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963888, 0.0421763809676091, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22114370_18-04-2025_05_38_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22114408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22114409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22114410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22114411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22114412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22114413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22114414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22114415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22114416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22114417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22114418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22114419, '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 = 22114903 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': 2734121, 'mtr_portfolio_id': 22114903, 'created_at': datetime.datetime(2025, 4, 18, 5, 39, 28), 'result': '0.04637668367251088', 'result_long': None, 'result_double': None}] Qualite : 0.04637668367251088 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22114903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22114903_18-04-2025_05_39_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22114903 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_P22114903_18-04-2025_05_39_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22114904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22114905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22114906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22114907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22114908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22114909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22114910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22114911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22114912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22114913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22114914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22114915, 'pht': 3726}}" where mtr_portfolio_id = 22114903 and dashboard_run_id = 1733212 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`=22114903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963889, 0.04637668367251088, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22114903_18-04-2025_05_39_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22114904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22114905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22114906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22114907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22114908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22114909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22114910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22114911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22114912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22114913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22114914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22114915, '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 = 22115415 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': 2734122, 'mtr_portfolio_id': 22115415, 'created_at': datetime.datetime(2025, 4, 18, 5, 39, 59), 'result': '0.051671926222815766', 'result_long': None, 'result_double': None}] Qualite : 0.051671926222815766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22115415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22115415_18-04-2025_05_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22115415 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_P22115415_18-04-2025_05_40_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22115416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22115417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22115418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22115419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22115420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22115421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22115422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22115423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22115424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22115425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22115426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22115427, 'pht': 3726}}" where mtr_portfolio_id = 22115415 and dashboard_run_id = 1733212 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`=22115415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963890, 0.051671926222815766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22115415_18-04-2025_05_40_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22115416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22115417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22115418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22115419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22115420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22115421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22115422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22115423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22115424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22115425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22115426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22115427, '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 = 22116007 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': 2734123, 'mtr_portfolio_id': 22116007, 'created_at': datetime.datetime(2025, 4, 18, 5, 40, 29), 'result': '0.06118719126519021', 'result_long': None, 'result_double': None}] Qualite : 0.06118719126519021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22116007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22116007_18-04-2025_05_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22116007 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_P22116007_18-04-2025_05_40_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22116032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22116033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22116034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22116035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22116036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22116037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22116038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22116039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22116040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22116041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22116042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22116043, 'pht': 3726}}" where mtr_portfolio_id = 22116007 and dashboard_run_id = 1733212 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`=22116007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963891, 0.06118719126519021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22116007_18-04-2025_05_40_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22116032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22116033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22116034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22116035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22116036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22116037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22116038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22116039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22116040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22116041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22116042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22116043, '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 = 22116457 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': 2734124, 'mtr_portfolio_id': 22116457, 'created_at': datetime.datetime(2025, 4, 18, 5, 40, 38), 'result': '0.04927003371459403', 'result_long': None, 'result_double': None}] Qualite : 0.04927003371459403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22116457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22116457_18-04-2025_05_40_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22116457 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_P22116457_18-04-2025_05_40_41.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22116458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22116459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22116460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22116461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22116462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22116463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22116464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22116465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22116466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22116467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22116468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22116469, 'pht': 3726}}" where mtr_portfolio_id = 22116457 and dashboard_run_id = 1733212 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`=22116457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963892, 0.04927003371459403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22116457_18-04-2025_05_40_41.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22116458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22116459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22116460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22116461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22116462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22116463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22116464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22116465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22116466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22116467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22116468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22116469, '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 = 22117034 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': 2734125, 'mtr_portfolio_id': 22117034, 'created_at': datetime.datetime(2025, 4, 18, 5, 41, 28), 'result': '0.06018409570347596', 'result_long': None, 'result_double': None}] Qualite : 0.06018409570347596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22117034 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22117034_17-04-2025_03_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22117034 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_P22117034_17-04-2025_03_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22117071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22117072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22117073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22117074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22117075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22117076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22117077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22117078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22117079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22117080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22117081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22117082, 'pht': 3726}}" where mtr_portfolio_id = 22117034 and dashboard_run_id = 1733212 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`=22117034 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963893, 0.06018409570347596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22117034_17-04-2025_03_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22117071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22117072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22117073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22117074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22117075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22117076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22117077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22117078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22117079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22117080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22117081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22117082, '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 = 22117347 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': 2734126, 'mtr_portfolio_id': 22117347, 'created_at': datetime.datetime(2025, 4, 18, 5, 41, 57), 'result': '0.04368670763285473', 'result_long': None, 'result_double': None}] Qualite : 0.04368670763285473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22117347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22117347_17-04-2025_04_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22117347 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_P22117347_17-04-2025_04_00_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22117350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22117351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22117352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22117353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22117354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22117355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22117356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22117357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22117358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22117359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22117360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22117361, 'pht': 3726}}" where mtr_portfolio_id = 22117347 and dashboard_run_id = 1733212 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`=22117347 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963894, 0.04368670763285473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22117347_17-04-2025_04_00_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22117350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22117351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22117352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22117353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22117354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22117355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22117356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22117357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22117358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22117359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22117360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22117361, '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 = 22117600 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': 2734127, 'mtr_portfolio_id': 22117600, 'created_at': datetime.datetime(2025, 4, 18, 5, 42, 29), 'result': '0.04223337352818484', 'result_long': None, 'result_double': None}] Qualite : 0.04223337352818484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22117600 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22117600_18-04-2025_00_02_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22117600 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_P22117600_18-04-2025_00_02_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22117639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22117640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22117641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22117642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22117643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22117644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22117645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22117646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22117647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22117648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22117649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22117650, 'pht': 3726}}" where mtr_portfolio_id = 22117600 and dashboard_run_id = 1733212 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`=22117600 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963895, 0.04223337352818484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22117600_18-04-2025_00_02_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22117639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22117640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22117641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22117642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22117643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22117644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22117645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22117646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22117647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22117648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22117649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22117650, '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 = 22119017 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': 2734128, 'mtr_portfolio_id': 22119017, 'created_at': datetime.datetime(2025, 4, 18, 5, 43, 30), 'result': '0.01883186654157207', 'result_long': None, 'result_double': None}] Qualite : 0.01883186654157207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22119017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22119017_18-04-2025_05_43_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22119017 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_P22119017_18-04-2025_05_43_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22119018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22119019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22119020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22119021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22119022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22119023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22119024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22119025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22119026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22119027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22119028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22119029, 'pht': 3726}}" where mtr_portfolio_id = 22119017 and dashboard_run_id = 1733212 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`=22119017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963896, 0.01883186654157207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22119017_18-04-2025_05_43_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22119018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22119019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22119020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22119021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22119022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22119023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22119024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22119025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22119026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22119027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22119028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22119029, '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 = 22119196 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': 2734129, 'mtr_portfolio_id': 22119196, 'created_at': datetime.datetime(2025, 4, 18, 5, 43, 59), 'result': '0.04013905567270706', 'result_long': None, 'result_double': None}] Qualite : 0.04013905567270706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22119196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22119196_18-04-2025_05_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22119196 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_P22119196_18-04-2025_05_44_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22119197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22119198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22119199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22119200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22119201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22119202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22119203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22119204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22119205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22119206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22119207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22119208, 'pht': 3726}}" where mtr_portfolio_id = 22119196 and dashboard_run_id = 1733212 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`=22119196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963897, 0.04013905567270706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22119196_18-04-2025_05_44_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22119197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22119198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22119199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22119200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22119201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22119202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22119203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22119204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22119205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22119206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22119207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22119208, '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 = 22119607 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': 2734130, 'mtr_portfolio_id': 22119607, 'created_at': datetime.datetime(2025, 4, 18, 5, 44, 30), 'result': '0.040558905367645726', 'result_long': None, 'result_double': None}] Qualite : 0.040558905367645726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22119607 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22119607_18-04-2025_05_44_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22119607 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_P22119607_18-04-2025_05_44_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22119608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22119609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22119610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22119611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22119612, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22119613, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22119614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22119615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22119616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22119617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22119618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22119619, 'pht': 3726}}" where mtr_portfolio_id = 22119607 and dashboard_run_id = 1733212 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`=22119607 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963898, 0.040558905367645726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22119607_18-04-2025_05_44_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22119608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22119609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22119610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22119611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22119612, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22119613, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22119614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22119615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22119616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22119617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22119618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22119619, '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 = 22120069 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': 2734131, 'mtr_portfolio_id': 22120069, 'created_at': datetime.datetime(2025, 4, 18, 5, 45, 29), 'result': '0.04962723338689827', 'result_long': None, 'result_double': None}] Qualite : 0.04962723338689827 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22120069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22120069_18-04-2025_05_45_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22120069 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_P22120069_18-04-2025_05_45_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22120070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22120071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22120072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22120073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22120074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22120075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22120076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22120077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22120078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22120079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22120080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22120081, 'pht': 3726}}" where mtr_portfolio_id = 22120069 and dashboard_run_id = 1733212 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`=22120069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963899, 0.04962723338689827, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22120069_18-04-2025_05_45_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22120070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22120071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22120072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22120073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22120074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22120075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22120076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22120077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22120078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22120079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22120080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22120081, '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 = 22120437 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': 2734132, 'mtr_portfolio_id': 22120437, 'created_at': datetime.datetime(2025, 4, 18, 5, 45, 38), 'result': '0.04780230937370558', 'result_long': None, 'result_double': None}] Qualite : 0.04780230937370558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22120437 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22120437_18-04-2025_05_45_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22120437 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_P22120437_18-04-2025_05_45_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22120499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22120500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22120501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22120502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22120503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22120504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22120505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22120506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22120507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22120508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22120509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22120510, 'pht': 3726}}" where mtr_portfolio_id = 22120437 and dashboard_run_id = 1733212 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`=22120437 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963900, 0.04780230937370558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22120437_18-04-2025_05_45_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22120499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22120500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22120501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22120502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22120503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22120504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22120505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22120506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22120507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22120508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22120509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22120510, '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 = 22121396 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': 2734133, 'mtr_portfolio_id': 22121396, 'created_at': datetime.datetime(2025, 4, 18, 5, 45, 59), 'result': '0.0217253490201696', 'result_long': None, 'result_double': None}] Qualite : 0.0217253490201696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22121396 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22121396_18-04-2025_05_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22121396 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_P22121396_18-04-2025_05_46_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22121397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22121398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22121399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22121400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22121401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22121402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22121403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22121404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22121405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22121406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22121407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22121408, 'pht': 3726}}" where mtr_portfolio_id = 22121396 and dashboard_run_id = 1733212 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`=22121396 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963901, 0.0217253490201696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22121396_18-04-2025_05_46_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22121397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22121398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22121399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22121400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22121401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22121402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22121403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22121404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22121405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22121406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22121407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22121408, '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 = 22121697 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': 2734134, 'mtr_portfolio_id': 22121697, 'created_at': datetime.datetime(2025, 4, 18, 5, 46, 27), 'result': '0.05472739365877293', 'result_long': None, 'result_double': None}] Qualite : 0.05472739365877293 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22121697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22121697_18-04-2025_05_46_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22121697 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_P22121697_18-04-2025_05_46_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22121704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22121705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22121706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22121707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22121708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22121709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22121710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22121711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22121712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22121713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22121714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22121715, 'pht': 3726}}" where mtr_portfolio_id = 22121697 and dashboard_run_id = 1733212 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`=22121697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963902, 0.05472739365877293, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22121697_18-04-2025_05_46_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22121704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22121705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22121706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22121707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22121708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22121709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22121710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22121711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22121712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22121713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22121714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22121715, '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 = 22122263 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': 2729584, 'mtr_portfolio_id': 22122263, 'created_at': datetime.datetime(2025, 4, 17, 7, 34, 59), 'result': '0.019917481527083038', 'result_long': None, 'result_double': None}] Qualite : 0.019917481527083038 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22122263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22122263_17-04-2025_07_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22122263 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_P22122263_17-04-2025_07_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22122266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22122267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22122268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22122269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22122270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22122271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22122272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22122273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22122274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22122275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22122276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22122277, 'pht': 3726}}" where mtr_portfolio_id = 22122263 and dashboard_run_id = 1733212 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`=22122263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963903, 0.019917481527083038, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22122263_17-04-2025_07_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22122266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22122267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22122268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22122269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22122270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22122271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22122272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22122273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22122274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22122275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22122276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22122277, '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 = 22122830 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': 2729621, 'mtr_portfolio_id': 22122830, 'created_at': datetime.datetime(2025, 4, 17, 7, 48, 58), 'result': '0.03831934317753435', 'result_long': None, 'result_double': None}] Qualite : 0.03831934317753435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22122830 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22122830_17-04-2025_07_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22122830 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_P22122830_17-04-2025_07_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22122876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22122877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22122878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22122879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22122880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22122881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22122882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22122883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22122884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22122885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22122886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22122887, 'pht': 3726}}" where mtr_portfolio_id = 22122830 and dashboard_run_id = 1733212 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`=22122830 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963904, 0.03831934317753435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22122830_17-04-2025_07_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22122876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22122877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22122878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22122879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22122880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22122881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22122882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22122883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22122884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22122885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22122886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22122887, '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 = 22123197 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': 2729660, 'mtr_portfolio_id': 22123197, 'created_at': datetime.datetime(2025, 4, 17, 8, 3, 1), 'result': '0.06381588274222416', 'result_long': None, 'result_double': None}] Qualite : 0.06381588274222416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22123197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22123197_17-04-2025_08_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22123197 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_P22123197_17-04-2025_08_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22123200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22123201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22123202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22123203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22123204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22123205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22123206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22123207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22123208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22123209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22123210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22123211, 'pht': 3726}}" where mtr_portfolio_id = 22123197 and dashboard_run_id = 1733212 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`=22123197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963905, 0.06381588274222416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22123197_17-04-2025_08_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22123200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22123201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22123202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22123203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22123204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22123205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22123206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22123207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22123208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22123209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22123210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22123211, '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 = 22123509 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': 2729688, 'mtr_portfolio_id': 22123509, 'created_at': datetime.datetime(2025, 4, 17, 8, 17, 1), 'result': '0.05169329037708516', 'result_long': None, 'result_double': None}] Qualite : 0.05169329037708516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22123509 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22123509_17-04-2025_08_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22123509 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_P22123509_17-04-2025_08_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22123536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22123537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22123538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22123539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22123540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22123541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22123542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22123543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22123544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22123545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22123546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22123547, 'pht': 3726}}" where mtr_portfolio_id = 22123509 and dashboard_run_id = 1733212 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`=22123509 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963906, 0.05169329037708516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22123509_17-04-2025_08_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22123536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22123537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22123538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22123539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22123540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22123541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22123542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22123543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22123544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22123545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22123546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22123547, '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 = 22123926 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': 2729720, 'mtr_portfolio_id': 22123926, 'created_at': datetime.datetime(2025, 4, 18, 0, 2, 58), 'result': '0.05801691974205643', 'result_long': None, 'result_double': None}] Qualite : 0.05801691974205643 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22123926 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22123926_18-04-2025_00_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22123926 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_P22123926_18-04-2025_00_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22123932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22123933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22123934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22123935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22123936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22123937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22123938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22123939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22123940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22123941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22123942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22123943, 'pht': 3726}}" where mtr_portfolio_id = 22123926 and dashboard_run_id = 1733212 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`=22123926 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963907, 0.05801691974205643, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22123926_18-04-2025_00_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22123932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22123933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22123934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22123935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22123936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22123937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22123938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22123939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22123940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22123941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22123942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22123943, '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 = 22125427 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': 2729903, 'mtr_portfolio_id': 22125427, 'created_at': datetime.datetime(2025, 4, 17, 9, 32, 59), 'result': '0.07609948659353487', 'result_long': None, 'result_double': None}] Qualite : 0.07609948659353487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22125427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22125427_17-04-2025_09_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22125427 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_P22125427_17-04-2025_09_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125440, 'pht': 3726}}" where mtr_portfolio_id = 22125427 and dashboard_run_id = 1733212 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`=22125427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963908, 0.07609948659353487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22125427_17-04-2025_09_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125440, '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 = 22125958 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': 2729958, 'mtr_portfolio_id': 22125958, 'created_at': datetime.datetime(2025, 4, 17, 9, 46, 29), 'result': '0.040791638735464784', 'result_long': None, 'result_double': None}] Qualite : 0.040791638735464784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22125958 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22125958_17-04-2025_09_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22125958 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_P22125958_17-04-2025_09_46_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125973, 'pht': 3726}}" where mtr_portfolio_id = 22125958 and dashboard_run_id = 1733212 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`=22125958 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963909, 0.040791638735464784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22125958_17-04-2025_09_46_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125973, '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 = 22126585 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': 2730017, 'mtr_portfolio_id': 22126585, 'created_at': datetime.datetime(2025, 4, 17, 10, 3), 'result': '0.039803100705294046', 'result_long': None, 'result_double': None}] Qualite : 0.039803100705294046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22126585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22126585_17-04-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22126585 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_P22126585_17-04-2025_10_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22126623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22126624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22126625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22126626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22126627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22126628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22126629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22126630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22126631, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22126632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22126633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22126634, 'pht': 3726}}" where mtr_portfolio_id = 22126585 and dashboard_run_id = 1733212 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`=22126585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963910, 0.039803100705294046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22126585_17-04-2025_10_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22126623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22126624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22126625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22126626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22126627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22126628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22126629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22126630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22126631, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22126632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22126633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22126634, '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 = 22127126 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': 2730080, 'mtr_portfolio_id': 22127126, 'created_at': datetime.datetime(2025, 4, 17, 10, 16, 59), 'result': '0.04161163822967295', 'result_long': None, 'result_double': None}] Qualite : 0.04161163822967295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22127126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22127126_17-04-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22127126 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_P22127126_17-04-2025_10_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127138, 'pht': 3726}}" where mtr_portfolio_id = 22127126 and dashboard_run_id = 1733212 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`=22127126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963911, 0.04161163822967295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22127126_17-04-2025_10_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127138, '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 = 22127830 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': 2730130, 'mtr_portfolio_id': 22127830, 'created_at': datetime.datetime(2025, 4, 17, 10, 32, 59), 'result': '0.05113692324651091', 'result_long': None, 'result_double': None}] Qualite : 0.05113692324651091 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22127830 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22127830_17-04-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22127830 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_P22127830_17-04-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127842, 'pht': 3726}}" where mtr_portfolio_id = 22127830 and dashboard_run_id = 1733212 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`=22127830 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963912, 0.05113692324651091, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22127830_17-04-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127842, '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 = 22128489 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': 2730186, 'mtr_portfolio_id': 22128489, 'created_at': datetime.datetime(2025, 4, 17, 10, 47), 'result': '0.047800612884581026', 'result_long': None, 'result_double': None}] Qualite : 0.047800612884581026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22128489 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22128489_17-04-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22128489 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_P22128489_17-04-2025_10_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22128493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22128494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22128495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22128496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22128497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22128498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22128499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22128500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22128501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22128502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22128503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22128504, 'pht': 3726}}" where mtr_portfolio_id = 22128489 and dashboard_run_id = 1733212 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`=22128489 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963913, 0.047800612884581026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22128489_17-04-2025_10_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22128493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22128494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22128495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22128496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22128497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22128498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22128499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22128500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22128501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22128502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22128503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22128504, '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 = 22129126 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': 2730253, 'mtr_portfolio_id': 22129126, 'created_at': datetime.datetime(2025, 4, 17, 11, 2, 58), 'result': '0.06274269107324076', 'result_long': None, 'result_double': None}] Qualite : 0.06274269107324076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22129126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22129126_17-04-2025_11_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22129126 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_P22129126_17-04-2025_11_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22129156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22129157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22129158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22129159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22129160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22129161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22129162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22129163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22129164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22129165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22129166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22129167, 'pht': 3726}}" where mtr_portfolio_id = 22129126 and dashboard_run_id = 1733212 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`=22129126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963914, 0.06274269107324076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22129126_17-04-2025_11_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22129156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22129157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22129158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22129159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22129160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22129161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22129162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22129163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22129164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22129165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22129166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22129167, '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 = 22129636 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': 2730322, 'mtr_portfolio_id': 22129636, 'created_at': datetime.datetime(2025, 4, 17, 11, 19), 'result': '0.028603013767922597', 'result_long': None, 'result_double': None}] Qualite : 0.028603013767922597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22129636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22129636_17-04-2025_11_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22129636 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_P22129636_17-04-2025_11_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22129663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22129664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22129665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22129666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22129667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22129668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22129669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22129670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22129671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22129672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22129673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22129674, 'pht': 3726}}" where mtr_portfolio_id = 22129636 and dashboard_run_id = 1733212 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`=22129636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963915, 0.028603013767922597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22129636_17-04-2025_11_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22129663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22129664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22129665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22129666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22129667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22129668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22129669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22129670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22129671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22129672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22129673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22129674, '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 = 22130303 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': 2730364, 'mtr_portfolio_id': 22130303, 'created_at': datetime.datetime(2025, 4, 17, 11, 32, 59), 'result': '0.03977955558965707', 'result_long': None, 'result_double': None}] Qualite : 0.03977955558965707 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22130303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22130303_17-04-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22130303 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_P22130303_17-04-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22130328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22130329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22130330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22130331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22130332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22130333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22130334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22130335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22130336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22130337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22130338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22130339, 'pht': 3726}}" where mtr_portfolio_id = 22130303 and dashboard_run_id = 1733212 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`=22130303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963916, 0.03977955558965707, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22130303_17-04-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22130328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22130329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22130330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22130331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22130332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22130333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22130334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22130335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22130336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22130337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22130338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22130339, '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 = 22130914 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': 2730429, 'mtr_portfolio_id': 22130914, 'created_at': datetime.datetime(2025, 4, 17, 11, 48, 58), 'result': '0.046891635541977505', 'result_long': None, 'result_double': None}] Qualite : 0.046891635541977505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22130914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22130914_17-04-2025_11_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22130914 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_P22130914_17-04-2025_11_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22130916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22130917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22130918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22130919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22130920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22130921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22130922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22130923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22130924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22130925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22130926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22130927, 'pht': 3726}}" where mtr_portfolio_id = 22130914 and dashboard_run_id = 1733212 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`=22130914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963917, 0.046891635541977505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22130914_17-04-2025_11_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22130916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22130917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22130918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22130919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22130920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22130921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22130922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22130923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22130924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22130925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22130926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22130927, '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 = 22131282 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': 2730462, 'mtr_portfolio_id': 22131282, 'created_at': datetime.datetime(2025, 4, 17, 12, 4, 30), 'result': '0.037596226116251304', 'result_long': None, 'result_double': None}] Qualite : 0.037596226116251304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22131282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22131282_17-04-2025_12_04_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22131282 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_P22131282_17-04-2025_12_04_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22131284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22131285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22131286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22131287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22131288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22131289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22131290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22131291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22131292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22131293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22131294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22131295, 'pht': 3726}}" where mtr_portfolio_id = 22131282 and dashboard_run_id = 1733212 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`=22131282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963918, 0.037596226116251304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22131282_17-04-2025_12_04_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22131284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22131285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22131286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22131287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22131288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22131289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22131290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22131291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22131292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22131293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22131294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22131295, '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 = 22131955 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': 2730539, 'mtr_portfolio_id': 22131955, 'created_at': datetime.datetime(2025, 4, 18, 0, 3, 29), 'result': '0.02678960900464045', 'result_long': None, 'result_double': None}] Qualite : 0.02678960900464045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22131955 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22131955_18-04-2025_00_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22131955 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_P22131955_18-04-2025_00_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22131984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22131985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22131986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22131987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22131988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22131989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22131990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22131991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22131992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22131993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22131994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22131995, 'pht': 3726}}" where mtr_portfolio_id = 22131955 and dashboard_run_id = 1733212 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`=22131955 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963919, 0.02678960900464045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22131955_18-04-2025_00_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22131984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22131985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22131986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22131987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22131988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22131989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22131990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22131991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22131992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22131993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22131994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22131995, '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 = 22134150 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': 2730816, 'mtr_portfolio_id': 22134150, 'created_at': datetime.datetime(2025, 4, 17, 13, 47, 1), 'result': '0.03380996099756384', 'result_long': None, 'result_double': None}] Qualite : 0.03380996099756384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22134150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134150_17-04-2025_13_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22134150 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_P22134150_17-04-2025_13_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134162, 'pht': 3726}}" where mtr_portfolio_id = 22134150 and dashboard_run_id = 1733212 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`=22134150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963920, 0.03380996099756384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134150_17-04-2025_13_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134162, '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 = 22134502 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': 2730838, 'mtr_portfolio_id': 22134502, 'created_at': datetime.datetime(2025, 4, 17, 14, 2, 59), 'result': '0.057995338370224234', 'result_long': None, 'result_double': None}] Qualite : 0.057995338370224234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22134502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134502_17-04-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22134502 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_P22134502_17-04-2025_14_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134573, 'pht': 3726}}" where mtr_portfolio_id = 22134502 and dashboard_run_id = 1733212 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`=22134502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963921, 0.057995338370224234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134502_17-04-2025_14_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134573, '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 = 22135140 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': 2730903, 'mtr_portfolio_id': 22135140, 'created_at': datetime.datetime(2025, 4, 17, 14, 18, 57), 'result': '0.04704927001433636', 'result_long': None, 'result_double': None}] Qualite : 0.04704927001433636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22135140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135140_17-04-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22135140 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_P22135140_17-04-2025_14_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135152, 'pht': 3726}}" where mtr_portfolio_id = 22135140 and dashboard_run_id = 1733212 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`=22135140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963922, 0.04704927001433636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135140_17-04-2025_14_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135152, '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 = 22135842 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': 2730968, 'mtr_portfolio_id': 22135842, 'created_at': datetime.datetime(2025, 4, 17, 14, 33), 'result': '0.03390971668086789', 'result_long': None, 'result_double': None}] Qualite : 0.03390971668086789 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22135842 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135842_17-04-2025_14_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22135842 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_P22135842_17-04-2025_14_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135883, 'pht': 3726}}" where mtr_portfolio_id = 22135842 and dashboard_run_id = 1733212 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`=22135842 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963923, 0.03390971668086789, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135842_17-04-2025_14_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135883, '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 = 22136371 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': 2731035, 'mtr_portfolio_id': 22136371, 'created_at': datetime.datetime(2025, 4, 17, 14, 47), 'result': '0.04547629630377487', 'result_long': None, 'result_double': None}] Qualite : 0.04547629630377487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22136371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22136371_17-04-2025_14_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22136371 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_P22136371_17-04-2025_14_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22136374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22136375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22136376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22136377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22136378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22136379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22136380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22136381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22136382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22136383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22136384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22136385, 'pht': 3726}}" where mtr_portfolio_id = 22136371 and dashboard_run_id = 1733212 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`=22136371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963924, 0.04547629630377487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22136371_17-04-2025_14_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22136374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22136375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22136376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22136377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22136378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22136379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22136380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22136381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22136382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22136383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22136384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22136385, '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 = 22136983 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': 2731101, 'mtr_portfolio_id': 22136983, 'created_at': datetime.datetime(2025, 4, 17, 15, 0, 58), 'result': '0.033278480000430696', 'result_long': None, 'result_double': None}] Qualite : 0.033278480000430696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22136983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22136983_17-04-2025_15_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22136983 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_P22136983_17-04-2025_15_00_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22136988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22136989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22136990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22136991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22136992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22136993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22136994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22136995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22136996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22136997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22136998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22136999, 'pht': 3726}}" where mtr_portfolio_id = 22136983 and dashboard_run_id = 1733212 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`=22136983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963925, 0.033278480000430696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22136983_17-04-2025_15_00_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22136988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22136989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22136990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22136991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22136992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22136993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22136994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22136995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22136996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22136997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22136998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22136999, '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 = 22137490 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': 2731162, 'mtr_portfolio_id': 22137490, 'created_at': datetime.datetime(2025, 4, 17, 15, 16, 57), 'result': '0.04708161938471637', 'result_long': None, 'result_double': None}] Qualite : 0.04708161938471637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22137490 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22137490_17-04-2025_15_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22137490 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_P22137490_17-04-2025_15_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22137492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22137493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22137494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22137495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22137496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22137497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22137498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22137499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22137500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22137501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22137502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22137503, 'pht': 3726}}" where mtr_portfolio_id = 22137490 and dashboard_run_id = 1733212 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`=22137490 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963926, 0.04708161938471637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22137490_17-04-2025_15_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22137492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22137493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22137494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22137495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22137496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22137497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22137498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22137499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22137500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22137501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22137502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22137503, '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 = 22138183 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': 2731212, 'mtr_portfolio_id': 22138183, 'created_at': datetime.datetime(2025, 4, 17, 15, 32, 59), 'result': '0.041171409272125384', 'result_long': None, 'result_double': None}] Qualite : 0.041171409272125384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22138183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22138183_17-04-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22138183 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_P22138183_17-04-2025_15_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22138208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22138209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22138210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22138211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22138212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22138213, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22138214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22138215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22138216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22138217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22138218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22138219, 'pht': 3726}}" where mtr_portfolio_id = 22138183 and dashboard_run_id = 1733212 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`=22138183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963927, 0.041171409272125384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22138183_17-04-2025_15_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22138208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22138209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22138210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22138211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22138212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22138213, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22138214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22138215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22138216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22138217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22138218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22138219, '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 = 22138849 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': 2731287, 'mtr_portfolio_id': 22138849, 'created_at': datetime.datetime(2025, 4, 17, 15, 47), 'result': '0.02847865096285985', 'result_long': None, 'result_double': None}] Qualite : 0.02847865096285985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22138849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22138849_17-04-2025_15_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22138849 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_P22138849_17-04-2025_15_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22138880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22138881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22138882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22138883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22138884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22138885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22138886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22138887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22138888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22138889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22138890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22138891, 'pht': 3726}}" where mtr_portfolio_id = 22138849 and dashboard_run_id = 1733212 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`=22138849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963928, 0.02847865096285985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22138849_17-04-2025_15_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22138880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22138881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22138882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22138883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22138884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22138885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22138886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22138887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22138888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22138889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22138890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22138891, '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 = 22139472 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': 2731328, 'mtr_portfolio_id': 22139472, 'created_at': datetime.datetime(2025, 4, 17, 16, 2, 58), 'result': '0.036174194504190314', 'result_long': None, 'result_double': None}] Qualite : 0.036174194504190314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22139472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22139472_17-04-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22139472 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_P22139472_17-04-2025_16_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22139473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22139474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22139475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22139476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22139477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22139478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22139479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22139480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22139481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22139482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22139483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22139484, 'pht': 3726}}" where mtr_portfolio_id = 22139472 and dashboard_run_id = 1733212 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`=22139472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963929, 0.036174194504190314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22139472_17-04-2025_16_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22139473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22139474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22139475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22139476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22139477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22139478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22139479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22139480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22139481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22139482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22139483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22139484, '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 = 22140073 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': 2731395, 'mtr_portfolio_id': 22140073, 'created_at': datetime.datetime(2025, 4, 17, 16, 18, 59), 'result': '0.04270722225547444', 'result_long': None, 'result_double': None}] Qualite : 0.04270722225547444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22140073 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22140073_17-04-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22140073 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_P22140073_17-04-2025_16_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22140080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22140081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22140082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22140083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22140084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22140085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22140086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22140087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22140088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22140089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22140090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22140091, 'pht': 3726}}" where mtr_portfolio_id = 22140073 and dashboard_run_id = 1733212 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`=22140073 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963930, 0.04270722225547444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22140073_17-04-2025_16_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22140080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22140081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22140082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22140083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22140084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22140085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22140086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22140087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22140088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22140089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22140090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22140091, '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 = 22140760 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': 2731462, 'mtr_portfolio_id': 22140760, 'created_at': datetime.datetime(2025, 4, 17, 16, 32, 58), 'result': '0.04958894470237618', 'result_long': None, 'result_double': None}] Qualite : 0.04958894470237618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22140760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22140760_17-04-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22140760 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_P22140760_17-04-2025_16_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22140763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22140764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22140765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22140766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22140767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22140768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22140769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22140770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22140771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22140772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22140773, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22140774, 'pht': 3726}}" where mtr_portfolio_id = 22140760 and dashboard_run_id = 1733212 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`=22140760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963931, 0.04958894470237618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22140760_17-04-2025_16_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22140763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22140764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22140765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22140766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22140767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22140768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22140769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22140770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22140771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22140772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22140773, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22140774, '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 = 22141160 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': 2731502, 'mtr_portfolio_id': 22141160, 'created_at': datetime.datetime(2025, 4, 17, 16, 46, 30), 'result': '0.05199023035237896', 'result_long': None, 'result_double': None}] Qualite : 0.05199023035237896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22141160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22141160_17-04-2025_16_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22141160 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_P22141160_17-04-2025_16_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22141180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22141181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22141182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22141183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22141184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22141185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22141186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22141187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22141188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22141189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22141190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22141191, 'pht': 3726}}" where mtr_portfolio_id = 22141160 and dashboard_run_id = 1733212 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`=22141160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963932, 0.05199023035237896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22141160_17-04-2025_16_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22141180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22141181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22141182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22141183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22141184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22141185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22141186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22141187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22141188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22141189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22141190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22141191, '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 = 22141820 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': 2731585, 'mtr_portfolio_id': 22141820, 'created_at': datetime.datetime(2025, 4, 17, 17, 2, 59), 'result': '0.028526883290806923', 'result_long': None, 'result_double': None}] Qualite : 0.028526883290806923 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22141820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22141820_17-04-2025_17_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22141820 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_P22141820_17-04-2025_17_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22141823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22141824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22141825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22141826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22141827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22141828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22141829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22141830, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22141831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22141832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22141833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22141834, 'pht': 3726}}" where mtr_portfolio_id = 22141820 and dashboard_run_id = 1733212 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`=22141820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963933, 0.028526883290806923, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22141820_17-04-2025_17_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22141823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22141824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22141825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22141826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22141827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22141828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22141829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22141830, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22141831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22141832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22141833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22141834, '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 = 22142522 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': 2731688, 'mtr_portfolio_id': 22142522, 'created_at': datetime.datetime(2025, 4, 17, 17, 19, 1), 'result': '0.05352550274045417', 'result_long': None, 'result_double': None}] Qualite : 0.05352550274045417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22142522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22142522_17-04-2025_17_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22142522 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_P22142522_17-04-2025_17_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22142524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22142525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22142526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22142527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22142528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22142529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22142530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22142531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22142532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22142533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22142534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22142535, 'pht': 3726}}" where mtr_portfolio_id = 22142522 and dashboard_run_id = 1733212 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`=22142522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963934, 0.05352550274045417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22142522_17-04-2025_17_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22142524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22142525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22142526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22142527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22142528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22142529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22142530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22142531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22142532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22142533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22142534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22142535, '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 = 22143351 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': 2731725, 'mtr_portfolio_id': 22143351, 'created_at': datetime.datetime(2025, 4, 17, 17, 32, 59), 'result': '0.04475613619986851', 'result_long': None, 'result_double': None}] Qualite : 0.04475613619986851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22143351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22143351_17-04-2025_17_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22143351 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_P22143351_17-04-2025_17_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22143354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22143355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22143356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22143357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22143358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22143359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22143360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22143361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22143362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22143363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22143364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22143365, 'pht': 3726}}" where mtr_portfolio_id = 22143351 and dashboard_run_id = 1733212 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`=22143351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963935, 0.04475613619986851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22143351_17-04-2025_17_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22143354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22143355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22143356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22143357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22143358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22143359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22143360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22143361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22143362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22143363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22143364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22143365, '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 = 22144314 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': 2731869, 'mtr_portfolio_id': 22144314, 'created_at': datetime.datetime(2025, 4, 17, 18, 16, 59), 'result': '0.05901953950970541', 'result_long': None, 'result_double': None}] Qualite : 0.05901953950970541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22144314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144314_17-04-2025_18_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22144314 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_P22144314_17-04-2025_18_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144350, 'pht': 3726}}" where mtr_portfolio_id = 22144314 and dashboard_run_id = 1733212 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`=22144314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963936, 0.05901953950970541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144314_17-04-2025_18_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144350, '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 = 22144739 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': 2731921, 'mtr_portfolio_id': 22144739, 'created_at': datetime.datetime(2025, 4, 17, 18, 33, 28), 'result': '0.05912426492609885', 'result_long': None, 'result_double': None}] Qualite : 0.05912426492609885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22144739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144739_17-04-2025_18_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22144739 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_P22144739_17-04-2025_18_33_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144751, 'pht': 3726}}" where mtr_portfolio_id = 22144739 and dashboard_run_id = 1733212 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`=22144739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963937, 0.05912426492609885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144739_17-04-2025_18_33_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144751, '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 = 22145408 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': 2732009, 'mtr_portfolio_id': 22145408, 'created_at': datetime.datetime(2025, 4, 17, 18, 47, 44), 'result': '0.0438171484041344', 'result_long': None, 'result_double': None}] Qualite : 0.0438171484041344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22145408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22145408_17-04-2025_18_47_45.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22145408 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_P22145408_17-04-2025_18_47_45.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22145449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22145450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22145451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22145452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22145453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22145454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22145455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22145456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22145457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22145458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22145459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22145460, 'pht': 3726}}" where mtr_portfolio_id = 22145408 and dashboard_run_id = 1733212 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`=22145408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963938, 0.0438171484041344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22145408_17-04-2025_18_47_45.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22145449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22145450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22145451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22145452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22145453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22145454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22145455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22145456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22145457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22145458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22145459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22145460, '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 = 22146025 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': 2732056, 'mtr_portfolio_id': 22146025, 'created_at': datetime.datetime(2025, 4, 17, 19, 2, 57), 'result': '0.050151335411307556', 'result_long': None, 'result_double': None}] Qualite : 0.050151335411307556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22146025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22146025_17-04-2025_19_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22146025 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_P22146025_17-04-2025_19_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22146029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22146030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22146031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22146032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22146033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22146034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22146035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22146036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22146037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22146038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22146039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22146040, 'pht': 3726}}" where mtr_portfolio_id = 22146025 and dashboard_run_id = 1733212 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`=22146025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963939, 0.050151335411307556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22146025_17-04-2025_19_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22146029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22146030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22146031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22146032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22146033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22146034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22146035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22146036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22146037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22146038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22146039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22146040, '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 = 22146806 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': 2732141, 'mtr_portfolio_id': 22146806, 'created_at': datetime.datetime(2025, 4, 17, 19, 16, 58), 'result': '0.03650714827488994', 'result_long': None, 'result_double': None}] Qualite : 0.03650714827488994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22146806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22146806_17-04-2025_19_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22146806 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_P22146806_17-04-2025_19_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22146854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22146855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22146856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22146857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22146858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22146859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22146860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22146861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22146862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22146863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22146864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22146865, 'pht': 3726}}" where mtr_portfolio_id = 22146806 and dashboard_run_id = 1733212 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`=22146806 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963940, 0.03650714827488994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22146806_17-04-2025_19_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22146854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22146855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22146856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22146857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22146858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22146859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22146860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22146861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22146862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22146863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22146864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22146865, '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 = 22147754 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': 2732196, 'mtr_portfolio_id': 22147754, 'created_at': datetime.datetime(2025, 4, 17, 19, 32, 59), 'result': '0.050713689603941105', 'result_long': None, 'result_double': None}] Qualite : 0.050713689603941105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22147754 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22147754_17-04-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22147754 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_P22147754_17-04-2025_19_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22147800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22147802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22147803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22147804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22147806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22147807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22147808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22147810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22147811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22147812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22147813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22147815, 'pht': 3726}}" where mtr_portfolio_id = 22147754 and dashboard_run_id = 1733212 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`=22147754 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963941, 0.050713689603941105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22147754_17-04-2025_19_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22147800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22147802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22147803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22147804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22147806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22147807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22147808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22147810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22147811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22147812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22147813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22147815, '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 = 22148955 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': 2732272, 'mtr_portfolio_id': 22148955, 'created_at': datetime.datetime(2025, 4, 17, 19, 49, 2), 'result': '0.05568143482096619', 'result_long': None, 'result_double': None}] Qualite : 0.05568143482096619 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22148955 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22148955_17-04-2025_19_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22148955 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_P22148955_17-04-2025_19_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22148984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22148985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22148986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22148987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22148988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22148989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22148990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22148991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22148992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22148993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22148994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22148995, 'pht': 3726}}" where mtr_portfolio_id = 22148955 and dashboard_run_id = 1733212 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`=22148955 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963942, 0.05568143482096619, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22148955_17-04-2025_19_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22148984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22148985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22148986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22148987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22148988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22148989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22148990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22148991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22148992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22148993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22148994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22148995, '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 = 22149555 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': 2732312, 'mtr_portfolio_id': 22149555, 'created_at': datetime.datetime(2025, 4, 17, 20, 2, 58), 'result': '0.04670585416197204', 'result_long': None, 'result_double': None}] Qualite : 0.04670585416197204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22149555 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22149555_17-04-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22149555 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_P22149555_17-04-2025_20_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22149558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22149559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22149560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22149561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22149562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22149563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22149564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22149565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22149566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22149567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22149568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22149569, 'pht': 3726}}" where mtr_portfolio_id = 22149555 and dashboard_run_id = 1733212 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`=22149555 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963943, 0.04670585416197204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22149555_17-04-2025_20_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22149558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22149559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22149560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22149561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22149562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22149563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22149564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22149565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22149566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22149567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22149568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22149569, '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 = 22150422 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': 2732373, 'mtr_portfolio_id': 22150422, 'created_at': datetime.datetime(2025, 4, 17, 20, 16, 57), 'result': '0.03475386831050838', 'result_long': None, 'result_double': None}] Qualite : 0.03475386831050838 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22150422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22150422_17-04-2025_20_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22150422 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_P22150422_17-04-2025_20_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22150536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22150537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22150538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22150539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22150540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22150541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22150542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22150543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22150544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22150545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22150546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22150547, 'pht': 3726}}" where mtr_portfolio_id = 22150422 and dashboard_run_id = 1733212 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`=22150422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963944, 0.03475386831050838, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22150422_17-04-2025_20_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22150536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22150537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22150538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22150539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22150540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22150541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22150542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22150543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22150544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22150545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22150546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22150547, '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 = 22151606 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': 2732439, 'mtr_portfolio_id': 22151606, 'created_at': datetime.datetime(2025, 4, 17, 20, 32, 57), 'result': '0.05243456456753769', 'result_long': None, 'result_double': None}] Qualite : 0.05243456456753769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22151606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151606_17-04-2025_20_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22151606 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_P22151606_17-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22151608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22151609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22151610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22151611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22151612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22151613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22151614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22151615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22151616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22151617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22151618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22151619, 'pht': 3726}}" where mtr_portfolio_id = 22151606 and dashboard_run_id = 1733212 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`=22151606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963945, 0.05243456456753769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151606_17-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22151608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22151609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22151610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22151611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22151612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22151613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22151614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22151615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22151616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22151617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22151618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22151619, '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 = 22151992 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': 2732486, 'mtr_portfolio_id': 22151992, 'created_at': datetime.datetime(2025, 4, 17, 21, 3), 'result': '0.04713630305415385', 'result_long': None, 'result_double': None}] Qualite : 0.04713630305415385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22151992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151992_17-04-2025_21_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22151992 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_P22151992_17-04-2025_21_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22152053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22152054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22152055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22152056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22152057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22152058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22152059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22152060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22152061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22152062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22152063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22152065, 'pht': 3726}}" where mtr_portfolio_id = 22151992 and dashboard_run_id = 1733212 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`=22151992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963946, 0.04713630305415385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151992_17-04-2025_21_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22152053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22152054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22152055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22152056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22152057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22152058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22152059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22152060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22152061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22152062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22152063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22152065, '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 = 22153496 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': 2732620, 'mtr_portfolio_id': 22153496, 'created_at': datetime.datetime(2025, 4, 17, 21, 16, 57), 'result': '0.04655722121213239', 'result_long': None, 'result_double': None}] Qualite : 0.04655722121213239 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22153496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22153496_17-04-2025_21_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22153496 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_P22153496_17-04-2025_21_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22153536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22153537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22153538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22153539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22153540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22153541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22153542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22153543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22153544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22153545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22153546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22153547, 'pht': 3726}}" where mtr_portfolio_id = 22153496 and dashboard_run_id = 1733212 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`=22153496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963947, 0.04655722121213239, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22153496_17-04-2025_21_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22153536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22153537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22153538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22153539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22153540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22153541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22153542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22153543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22153544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22153545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22153546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22153547, '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 = 22153951 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': 2732652, 'mtr_portfolio_id': 22153951, 'created_at': datetime.datetime(2025, 4, 17, 21, 33), 'result': '0.06628926190622103', 'result_long': None, 'result_double': None}] Qualite : 0.06628926190622103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22153951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22153951_17-04-2025_21_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22153951 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_P22153951_17-04-2025_21_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22153981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22153982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22153983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22153984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22153985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22153986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22153987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22153988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22153989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22153990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22153991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22153992, 'pht': 3726}}" where mtr_portfolio_id = 22153951 and dashboard_run_id = 1733212 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`=22153951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963948, 0.06628926190622103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22153951_17-04-2025_21_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22153981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22153982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22153983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22153984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22153985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22153986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22153987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22153988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22153989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22153990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22153991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22153992, '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 = 22154716 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': 2732733, 'mtr_portfolio_id': 22154716, 'created_at': datetime.datetime(2025, 4, 17, 21, 49, 30), 'result': '0.04768226599632791', 'result_long': None, 'result_double': None}] Qualite : 0.04768226599632791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22154716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22154716_17-04-2025_21_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22154716 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_P22154716_17-04-2025_21_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22154720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22154721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22154722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22154723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22154724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22154725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22154726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22154727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22154728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22154729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22154730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22154731, 'pht': 3726}}" where mtr_portfolio_id = 22154716 and dashboard_run_id = 1733212 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`=22154716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963949, 0.04768226599632791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22154716_17-04-2025_21_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22154720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22154721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22154722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22154723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22154724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22154725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22154726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22154727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22154728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22154729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22154730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22154731, '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 = 22155322 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': 2732785, 'mtr_portfolio_id': 22155322, 'created_at': datetime.datetime(2025, 4, 17, 22, 3), 'result': '0.04840716398683219', 'result_long': None, 'result_double': None}] Qualite : 0.04840716398683219 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22155322 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22155322_17-04-2025_22_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22155322 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_P22155322_17-04-2025_22_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22155323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22155324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22155325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22155326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22155327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22155328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22155329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22155330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22155331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22155332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22155333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22155334, 'pht': 3726}}" where mtr_portfolio_id = 22155322 and dashboard_run_id = 1733212 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`=22155322 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963950, 0.04840716398683219, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22155322_17-04-2025_22_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22155323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22155324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22155325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22155326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22155327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22155328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22155329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22155330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22155331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22155332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22155333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22155334, '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 = 22155908 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': 2732882, 'mtr_portfolio_id': 22155908, 'created_at': datetime.datetime(2025, 4, 17, 22, 18, 59), 'result': '0.06299230351687314', 'result_long': None, 'result_double': None}] Qualite : 0.06299230351687314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22155908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22155908_17-04-2025_22_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22155908 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_P22155908_17-04-2025_22_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22155940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22155941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22155942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22155943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22155944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22155945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22155946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22155947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22155948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22155949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22155950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22155951, 'pht': 3726}}" where mtr_portfolio_id = 22155908 and dashboard_run_id = 1733212 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`=22155908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963951, 0.06299230351687314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22155908_17-04-2025_22_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22155940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22155941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22155942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22155943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22155944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22155945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22155946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22155947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22155948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22155949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22155950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22155951, '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 = 22157097 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': 2732960, 'mtr_portfolio_id': 22157097, 'created_at': datetime.datetime(2025, 4, 17, 22, 32, 59), 'result': '0.05598031954730696', 'result_long': None, 'result_double': None}] Qualite : 0.05598031954730696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22157097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22157097_17-04-2025_22_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22157097 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_P22157097_17-04-2025_22_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22157125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22157126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22157127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22157128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22157129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22157130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22157131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22157132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22157133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22157134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22157135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22157136, 'pht': 3726}}" where mtr_portfolio_id = 22157097 and dashboard_run_id = 1733212 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`=22157097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963952, 0.05598031954730696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22157097_17-04-2025_22_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22157125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22157126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22157127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22157128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22157129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22157130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22157131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22157132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22157133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22157134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22157135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22157136, '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 = 22157982 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': 2733040, 'mtr_portfolio_id': 22157982, 'created_at': datetime.datetime(2025, 4, 17, 22, 46, 59), 'result': '0.045254210494092784', 'result_long': None, 'result_double': None}] Qualite : 0.045254210494092784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22157982 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22157982_17-04-2025_22_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22157982 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_P22157982_17-04-2025_22_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22158011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22158012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22158013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22158014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22158015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22158016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22158017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22158018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22158019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22158020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22158021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22158022, 'pht': 3726}}" where mtr_portfolio_id = 22157982 and dashboard_run_id = 1733212 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`=22157982 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963953, 0.045254210494092784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22157982_17-04-2025_22_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22158011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22158012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22158013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22158014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22158015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22158016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22158017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22158018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22158019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22158020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22158021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22158022, '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 = 22159002 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': 2733093, 'mtr_portfolio_id': 22159002, 'created_at': datetime.datetime(2025, 4, 17, 23, 3, 1), 'result': '0.06669500678305743', 'result_long': None, 'result_double': None}] Qualite : 0.06669500678305743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22159002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22159002_17-04-2025_23_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22159002 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_P22159002_17-04-2025_23_03_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22159004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22159005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22159006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22159007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22159008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22159009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22159010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22159011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22159012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22159013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22159014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22159015, 'pht': 3726}}" where mtr_portfolio_id = 22159002 and dashboard_run_id = 1733212 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`=22159002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963954, 0.06669500678305743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22159002_17-04-2025_23_03_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22159004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22159005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22159006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22159007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22159008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22159009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22159010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22159011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22159012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22159013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22159014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22159015, '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 = 22159366 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': 2733126, 'mtr_portfolio_id': 22159366, 'created_at': datetime.datetime(2025, 4, 17, 23, 16, 59), 'result': '0.06204319454947508', 'result_long': None, 'result_double': None}] Qualite : 0.06204319454947508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22159366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22159366_17-04-2025_23_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22159366 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_P22159366_17-04-2025_23_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22159469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22159470, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22159471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22159472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22159473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22159474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22159475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22159476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22159477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22159478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22159479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22159480, 'pht': 3726}}" where mtr_portfolio_id = 22159366 and dashboard_run_id = 1733212 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`=22159366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963955, 0.06204319454947508, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22159366_17-04-2025_23_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22159469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22159470, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22159471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22159472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22159473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22159474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22159475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22159476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22159477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22159478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22159479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22159480, '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 = 22160562 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': 2733184, 'mtr_portfolio_id': 22160562, 'created_at': datetime.datetime(2025, 4, 17, 23, 32, 59), 'result': '0.05262684660563953', 'result_long': None, 'result_double': None}] Qualite : 0.05262684660563953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22160562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22160562_17-04-2025_23_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22160562 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_P22160562_17-04-2025_23_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22160599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22160600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22160601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22160602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22160603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22160604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22160605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22160606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22160607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22160608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22160609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22160610, 'pht': 3726}}" where mtr_portfolio_id = 22160562 and dashboard_run_id = 1733212 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`=22160562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963956, 0.05262684660563953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22160562_17-04-2025_23_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22160599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22160600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22160601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22160602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22160603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22160604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22160605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22160606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22160607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22160608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22160609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22160610, '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 = 22161353 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': 2733227, 'mtr_portfolio_id': 22161353, 'created_at': datetime.datetime(2025, 4, 17, 23, 46, 58), 'result': '0.07187437328418227', 'result_long': None, 'result_double': None}] Qualite : 0.07187437328418227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22161353 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22161353_17-04-2025_23_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22161353 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_P22161353_17-04-2025_23_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22161379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22161380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22161381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22161382, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22161383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22161384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22161385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22161386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22161387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22161389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22161390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22161391, 'pht': 3726}}" where mtr_portfolio_id = 22161353 and dashboard_run_id = 1733212 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`=22161353 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963957, 0.07187437328418227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22161353_17-04-2025_23_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22161379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22161380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22161381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22161382, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22161383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22161384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22161385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22161386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22161387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22161389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22161390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22161391, '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 = 22162225 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': 2733280, 'mtr_portfolio_id': 22162225, 'created_at': datetime.datetime(2025, 4, 18, 1, 1, 28), 'result': '0.071540497961312', 'result_long': None, 'result_double': None}] Qualite : 0.071540497961312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22162225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22162225_18-04-2025_01_01_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22162225 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_P22162225_18-04-2025_01_01_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22162227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22162228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22162229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22162230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22162231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22162232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22162233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22162234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22162235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22162236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22162237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22162238, 'pht': 3726}}" where mtr_portfolio_id = 22162225 and dashboard_run_id = 1733212 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`=22162225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9963958, 0.071540497961312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22162225_18-04-2025_01_01_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22162227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22162228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22162229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22162230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22162231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22162232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22162233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22162234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22162235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22162236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22162237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22162238, '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 (22109428,22110285,22111035,22111457,22112780,22113134,22113655,22114370,22114903,22115415,22116007,22116457,22117034,22117347,22117600,22119017,22119196,22119607,22120069,22120437,22121396,22121697,22122263,22122830,22123197,22123509,22123926,22125427,22125958,22126585,22127126,22127830,22128489,22129126,22129636,22130303,22130914,22131282,22131955,22134150,22134502,22135140,22135842,22136371,22136983,22137490,22138183,22138849,22139472,22140073,22140760,22141160,22141820,22142522,22143351,22144314,22144739,22145408,22146025,22146806,22147754,22148955,22149555,22150422,22151606,22151992,22153496,22153951,22154716,22155322,22155908,22157097,22157982,22159002,22159366,22160562,22161353,22162225) result : ((1350567378,), (1350567383,), (1350567592,), (1350567694,), (1350567795,), (1350567865,), (1350567897,), (1350568060,), (1350568094,), (1350568120,), (1350568443,), (1350568449,), (1350568452,), (1350568561,), (1350568566,), (1350568570,), (1350568575,), (1350568580,), (1350568582,), (1350568697,), (1350568726,), (1350568759,), (1350568778,), (1350568783,), (1350568788,), (1350568928,), (1350568958,), (1350568987,), (1350569021,), (1350569076,), (1350569592,), (1350569619,), (1350569645,), (1350569677,), (1350569724,), (1350569778,), (1350570250,), (1350570304,), (1350570358,), (1350570406,), (1350570484,), (1350570564,), (1350571005,), (1350571053,), (1350571116,), (1350571170,), (1350571524,), (1350571531,), (1350571557,), (1350571586,), (1350571615,), (1350571655,), (1350571945,), (1350572004,), (1350572059,), (1350572453,), (1350572457,), (1350572474,), (1350572501,), (1350572543,), (1350572601,), (1350572981,), (1350573002,), (1350573033,), (1350573063,), (1350573114,), (1350573171,), (1350573681,), (1350573452,), (1350573572,), (1350573613,), (1350574211,), (1350574241,), (1350574262,), (1350574502,), (1350574514,), (1350574526,), (1350574566,), (1350574581,), (1350574591,), (1350574651,), (1350574804,), (1350574818,), (1350574824,), (1350574976,), (1350575028,), (1350575076,), (1350575106,), (1350575136,), (1350575298,), (1350575305,), (1350575311,), (1350575337,), (1350575365,), (1350575384,), (1350575424,), (1350575427,), (1350575430,), (1350575433,), (1350575619,), (1350575629,), (1350575639,), (1350575670,), (1350575685,), (1350575697,), (1350575900,), (1350575928,), (1350575958,), (1350575989,), (1350576020,), (1350576053,), (1350576314,), (1350576345,), (1350576373,), (1350576865,), (1350576941,), (1350576989,), (1350577049,), (1350577098,), (1350577161,), (1350577344,), (1350577992,), (1350577956,), (1350577984,), (1350578032,), (1350578037,), (1350578043,), (1350578049,), (1350578055,), (1350578059,), (1350578087,), (1350578092,), (1350578097,), (1350578100,), (1350578105,), (1350578150,), (1350578155,), (1350578160,), (1350578244,), (1350578249,), (1350578252,), (1350578257,), (1350578262,), (1350578292,), (1350578307,), (1350578313,), (1350579225,), (1350579229,), (1350579234,), (1350579528,), (1350579535,), (1350579540,), (1350579771,), (1350579778,), (1350579785,), (1350579796,), (1350579803,), (1350580173,), (1350580185,), (1350580192,), (1350580199,), (1350580206,), (1350580210,), (1350580263,), (1350580281,), (1350580286,), (1350580291,), (1350580329,), (1350580335,), (1350580338,), (1350580343,), (1350580350,), (1350580362,), (1350580451,), (1350580457,), (1350580460,), (1350580465,), (1350580471,), (1350580477,), (1350580673,), (1350580700,), (1350580733,), (1350580766,), (1350580971,), (1350580989,), (1350581004,), (1350581021,), (1350581028,), (1350581262,), (1350581098,), (1350581102,), (1350581109,), (1350581116,), (1350581191,), (1350581327,), (1350581337,), (1350581344,), (1350581443,), (1350581447,), (1350581450,), (1350581453,), (1350581457,), (1350581493,), (1350581507,), (1350581511,), (1350581514,), (1350581517,), (1350581522,), (1350581555,), (1350581567,), (1350581571,), (1350581580,), (1350581659,), (1350581666,), (1350581683,), (1350581689,), (1350581729,), (1350581734,), (1350581738,), (1350581742,), (1350581746,), (1350581750,), (1350581790,), (1350581793,), (1350581796,), (1350581798,), (1350581802,), (1350581806,), (1350581837,), (1350581852,), (1350581856,), (1350581860,), (1350581892,), (1350581895,), (1350581897,), (1350581899,), (1350581901,), (1350581904,), (1350581974,), (1350582003,), (1350582033,), (1350582061,), (1350582090,), (1350582120,), (1350582411,), (1350582436,), (1350582460,), (1350582487,), (1350582797,), (1350582829,), (1350582858,), (1350582895,), (1350583932,), (1350584007,), (1350584063,), (1350584091,), (1350584122,), (1350584154,), (1350584619,), (1350593649,), (1350594115,), (1350594118,), (1350594121,), (1350594320,), (1350594324,), (1350594356,), (1350594361,), (1350594522,), (1350594621,), (1350594656,), (1350594871,), (1350594875,), (1350594880,), (1350594887,), (1350594893,), (1350594898,), (1350594921,), (1350594924,), (1350594928,), (1350594932,), (1350594937,), (1350594967,), (1350594971,), (1350594976,), (1350594982,), (1350594989,), (1350595020,), (1350595024,), (1350595029,), (1350595033,), (1350595038,), (1350595070,), (1350595074,), (1350595077,), (1350595083,), (1350595156,), (1350595166,), (1350595177,), (1350595184,), (1350595189,), (1350595194,), (1350595228,), (1350595233,), (1350595236,), (1350595310,), (1350595314,), (1350595318,), (1350595322,), (1350595390,), (1350595405,), (1350595407,), (1350595409,), (1350595412,), (1350595489,), (1350595495,), (1350595500,), (1350595505,), (1350595509,), (1350595579,), (1350595566,), (1350595571,), (1350595614,), (1350595621,), (1350595624,), (1350595630,), (1350595637,), (1350595665,), (1350595669,), (1350595673,), (1350595674,), (1350595677,), (1350595680,), (1350595916,), (1350595919,), (1350595921,), (1350595924,), (1350595971,), (1350595974,), (1350595976,), (1350595978,), (1350596046,), (1350596067,), (1350596069,), (1350596071,), (1350596074,), (1350596118,), (1350596121,), (1350596124,), (1350596127,), (1350596180,), (1350596184,), (1350596187,), (1350596189,), (1350596193,), (1350596198,), (1350596232,), (1350596236,), (1350596241,), (1350596246,), (1350596254,), (1350596263,), (1350596304,), (1350596307,), (1350596310,), (1350596355,), (1350596359,), (1350596362,), (1350596367,), (1350596371,), (1350596376,), (1350596411,), (1350596415,), (1350596418,), (1350596421,), (1350596423,), (1350596455,), (1350596481,), (1350596483,), (1350596484,), (1350597169,), (1350597221,), (1350597267,), (1350597305,), (1350597336,), (1350597403,), (1350597479,), (1350597482,), (1350597502,), (1350597505,), (1350597508,), (1350597644,), (1350597582,), (1350597618,), (1350597787,), (1350597812,), (1350597837,), (1350597862,), (1350597890,), (1350598196,), (1350598228,), (1350598254,), (1350598284,), (1350598578,), (1350598606,), (1350598635,), (1350598661,), (1350598974,), (1350599002,), (1350599267,), (1350599270,), (1350599272,), (1350599273,), (1350599275,), (1350599278,), (1350599374,), (1350599405,), (1350599435,), (1350599462,), (1350599667,), (1350599694,), (1350599702,), (1350599749,), (1350599754,), (1350599757,), (1350599760,), (1350599763,), (1350599801,), (1350599805,), (1350599807,), (1350599810,), (1350599820,), (1350599901,), (1350599904,), (1350599906,), (1350599908,), (1350599946,), (1350599948,), (1350599953,), (1350599967,), (1350599970,), (1350599974,), (1350600027,), (1350600029,), (1350600031,), (1350600034,), (1350600039,), (1350600042,), (1350600090,), (1350600095,), (1350600101,), (1350600164,), (1350600172,), (1350600177,), (1350600178,), (1350600287,), (1350600262,), (1350600273,), (1350600281,), (1350600284,), (1350600326,), (1350600327,), (1350600328,), (1350600330,), (1350600388,), (1350600392,), (1350600395,), (1350600401,), (1350600413,), (1350600420,), (1350600459,), (1350600463,), (1350600466,), (1350600468,), (1350600471,), (1350600476,), (1350600519,), (1350600522,), (1350600524,), (1350600586,), (1350600607,), (1350600619,), (1350600621,), (1350600624,), (1350600626,), (1350600674,), (1350600695,), (1350600707,), (1350600723,), (1350600738,), (1350600806,), (1350600809,), (1350600812,), (1350600815,), (1350601025,), (1350601040,), (1350601043,), (1350601058,), (1350601065,), (1350601071,), (1350601100,), (1350601106,), (1350601112,), (1350601187,), (1350601194,), (1350601202,), (1350601207,), (1350601213,), (1350601218,), (1350601242,), (1350601247,), (1350601252,), (1350601256,), (1350601298,), (1350601304,), (1350601315,), (1350601325,), (1350601330,), (1350601376,), (1350601379,), (1350601387,), (1350601390,), (1350601393,), (1350601406,), (1350601450,), (1350601452,), (1350601457,), (1350601465,), (1350601545,), (1350601509,), (1350601513,), (1350601532,), (1350601536,), (1350601541,), (1350601586,), (1350601590,), (1350601592,), (1350601594,), (1350601640,), (1350601645,), (1350601649,), (1350601653,), (1350601657,), (1350601751,), (1350601761,), (1350601764,), (1350601816,), (1350601828,), (1350601831,), (1350601832,), (1350601838,), (1350601842,), (1350601870,), (1350601874,), (1350601877,), (1350601879,), (1350601884,), (1350602002,), (1350602007,), (1350602011,), (1350602015,), (1350602018,), (1350602108,), (1350602111,), (1350602116,), (1350602121,), (1350602185,), (1350602190,), (1350602193,), (1350602195,), (1350602197,), (1350602245,), (1350602249,), (1350602251,), (1350602253,), (1350602255,), (1350602286,), (1350602291,), (1350602294,), (1350602296,), (1350602357,), (1350602362,), (1350602366,), (1350602370,), (1350602403,), (1350602410,), (1350602415,), (1350602430,), (1350602463,), (1350602470,), (1350602476,), (1350602480,), (1350602483,), (1350602854,), (1350602861,), (1350602866,), (1350602872,), (1350602876,), (1350602943,), (1350602930,), (1350602940,), (1350602987,), (1350602992,), (1350602994,), (1350603038,), (1350603049,), (1350603054,), (1350603057,), (1350603061,), (1350603065,), (1350603104,), (1350603110,), (1350603115,), (1350603124,), (1350603181,), (1350603184,), (1350603187,), (1350603190,), (1350603194,), (1350603259,), (1350603263,), (1350603267,), (1350603270,), (1350603273,), (1350603316,), (1350603322,), (1350603327,), (1350603332,), (1350603390,), (1350603395,), (1350603399,), (1350603403,), (1350603407,), (1350603448,), (1350603455,), (1350603464,), (1350603468,), (1350603472,), (1350603653,), (1350603657,), (1350603661,), (1350603667,), (1350603672,), (1350603704,), (1350603710,), (1350603715,), (1350603719,), (1350603726,), (1350603778,), (1350604575,), (1350604725,), (1350604766,), (1350604813,), (1350604845,), (1350604874,), (1350605211,), (1350605116,), (1350605151,), (1350605180,), (1350605564,), (1350605568,), (1350605570,), (1350605572,), (1350605770,), (1350605801,), (1350605824,), (1350605827,), (1350605851,), (1350605859,), (1350605946,), (1350605955,), (1350605959,), (1350606011,), (1350606016,), (1350606020,), (1350606024,), (1350606028,), (1350606033,), (1350606074,), (1350606077,), (1350606089,), (1350606098,), (1350606110,), (1350606117,), (1350606163,), (1350606171,), (1350606176,), (1350606220,), (1350606223,), (1350606230,), (1350606235,), (1350606237,), (1350606278,), (1350606284,), (1350606287,), (1350606291,), (1350606349,), (1350606352,), (1350606361,), (1350606414,), (1350606418,), (1350606422,), (1350606426,), (1350606431,), (1350606436,), (1350606467,), (1350606471,), (1350606473,), (1350606487,), (1350606669,), (1350606698,), (1350606703,), (1350606708,), (1350606754,), (1350606758,), (1350606765,), (1350606769,), (1350606770,), (1350607021,), (1350607026,), (1350607031,), (1350607036,), (1350607040,), (1350607045,), (1350607105,), (1350607097,), (1350607100,), (1350607103,), (1350607203,), (1350607207,), (1350607210,), (1350607213,), (1350607217,), (1350607275,), (1350607278,), (1350607279,), (1350607280,), (1350607282,), (1350607285,), (1350607338,), (1350607342,), (1350607345,), (1350607348,), (1350607352,), (1350607356,), (1350607410,), (1350607413,), (1350607416,), (1350607418,), (1350607422,), (1350607467,), (1350607469,), (1350607471,), (1350607473,), (1350607477,), (1350607481,), (1350607522,), (1350607528,), (1350607533,), (1350607538,), (1350607544,), (1350607581,), (1350607588,), (1350607592,), (1350607594,), (1350607640,), (1350607647,), (1350607652,), (1350607654,), (1350607657,), (1350607661,), (1350607727,), (1350607734,), (1350607738,), (1350607742,), (1350607747,), (1350607751,), (1350607796,), (1350607799,), (1350607801,), (1350607857,), (1350607862,), (1350607866,), (1350607870,), (1350607873,), (1350608039,), (1350608086,), (1350608089,), (1350608092,), (1350608141,), (1350608146,), (1350608151,), (1350608241,), (1350608244,), (1350608251,), (1350608258,), (1350608268,), (1350608278,), (1350608357,), (1350608342,), (1350608346,), (1350608350,), (1350608355,), (1350608397,), (1350608400,), (1350608402,), (1350608448,), (1350608451,), (1350608453,), (1350608456,), (1350608459,), (1350608463,), (1350608515,), (1350608517,), (1350608704,), (1350608714,), (1350608718,), (1350608723,), (1350608760,), (1350608764,), (1350608767,), (1350608770,), (1350608812,), (1350608819,), (1350608822,), (1350608879,), (1350608887,), (1350608893,), (1350608903,), (1350608910,), (1350608916,), (1350608961,), (1350608974,), (1350608976,), (1350608982,), (1350608986,), (1350609048,), (1350609058,), (1350609065,), (1350609066,), (1350609123,), (1350609131,), (1350609154,), (1350609156,), (1350609157,), (1350609161,), (1350609202,), (1350609210,), (1350609212,), (1350609220,), (1350609227,), (1350609334,), (1350609340,), (1350609505,), (1350609515,), (1350609516,), (1350609518,), (1350609572,), (1350609576,), (1350609582,), (1350609585,), (1350609590,), (1350609594,), (1350609665,), (1350609639,), (1350609650,), (1350609656,), (1350609706,), (1350609709,), (1350609711,), (1350609713,), (1350609716,), (1350609719,), (1350609758,), (1350609769,), (1350609774,), (1350609782,), (1350609788,), (1350609837,), (1350609839,), (1350609842,), (1350609895,), (1350609901,), (1350609911,), (1350609919,), (1350609923,), (1350609927,), (1350609973,), (1350609977,), (1350609979,), (1350609983,), (1350609987,), (1350610034,), (1350610042,), (1350610048,), (1350610098,), (1350610105,), (1350610107,), (1350610115,), (1350610118,), (1350610122,), (1350610163,), (1350610170,), (1350610174,), (1350610181,), (1350610185,), (1350610188,), (1350610237,), (1350610240,), (1350610243,), (1350610249,), (1350610295,), (1350610298,), (1350610301,), (1350610304,), (1350610349,), (1350610360,), (1350610370,), (1350610381,), (1350610385,), (1350610388,), (1350610431,), (1350610433,), (1350610451,), (1350610476,), (1350610500,), (1350611004,), (1350611035,), (1350611045,), (1350611073,), (1350611097,), (1350611101,), (1350611105,), (1350611106,), (1350611321,), (1350611245,), (1350611269,), (1350611297,), (1350611650,), (1350611675,), (1350611699,), (1350611725,), (1350611741,), (1350612087,), (1350612110,), (1350612133,), (1350612268,), (1350612284,), (1350612316,), (1350612335,), (1350612576,), (1350612579,), (1350612621,), (1350612638,), (1350612644,), (1350612655,), (1350612699,), (1350612701,), (1350612706,), (1350612711,), (1350612748,), (1350612752,), (1350612754,), (1350612757,), (1350612802,), (1350612804,), (1350612806,), (1350612813,), (1350612818,), (1350612825,), (1350612857,), (1350612865,), (1350612924,), (1350612941,), (1350612950,), (1350612955,), (1350612986,), (1350612994,), (1350613177,), (1350618828,), (1350618823,), (1350618873,), (1350618878,), (1350619055,), (1350619097,), (1350619108,), (1350619111,), (1350619114,), (1350619118,), (1350619121,), (1350619161,), (1350619169,), (1350619176,), (1350619181,), (1350619186,), (1350619225,), (1350619230,), (1350619271,), (1350619277,), (1350619334,), (1350619338,), (1350619341,), (1350619345,), (1350619349,), (1350619385,), (1350619388,), (1350619392,), (1350619395,), (1350619398,), (1350619451,), (1350619434,), (1350619440,), (1350619446,), (1350619485,), (1350619490,), (1350619495,), (1350619500,), (1350619547,), (1350619552,), (1350619597,), (1350619609,), (1350619612,), (1350619618,), (1350619622,), (1350619657,), (1350619661,), (1350619663,), (1350619665,), (1350619707,), (1350619713,), (1350619717,), (1350619721,), (1350619765,), (1350619775,), (1350619778,), (1350619837,), (1350619843,), (1350619847,), (1350619850,), (1350619854,), (1350619908,), (1350619911,), (1350619914,), (1350619930,), (1350619934,), (1350619943,), (1350619977,), (1350619982,), (1350619986,), (1350619991,), (1350619997,), (1350620043,), (1350620051,), (1350620105,), (1350620108,), (1350620111,), (1350620113,), (1350620116,), (1350620161,), (1350620165,), (1350620168,), (1350620171,), (1350620176,), (1350620240,), (1350620244,), (1350620246,), (1350620275,), (1350620320,), (1350620329,), (1350620336,), (1350620340,), (1350620408,), (1350620399,), (1350620403,), (1350620405,), (1350620406,), (1350620407,), (1350620449,), (1350620451,), (1350620452,), (1350620456,), (1350620500,), (1350620504,), (1350620509,), (1350620514,), (1350620518,), (1350620569,), (1350620572,), (1350620573,), (1350620574,), (1350620576,), (1350620620,), (1350620624,), (1350620628,), (1350620677,), (1350620684,), (1350620689,), (1350620690,), (1350620692,), (1350620725,), (1350620730,), (1350620735,), (1350620739,), (1350620744,), (1350620748,), (1350620790,), (1350620797,), (1350620801,), (1350620805,), (1350620808,), (1350620811,), (1350620851,), (1350620855,), (1350620856,), (1350620862,), (1350620923,), (1350620928,), (1350620932,), (1350620939,), (1350620944,), (1350620995,), (1350621000,), (1350621003,), (1350621005,), (1350621048,), (1350621051,), (1350621056,), (1350621059,), (1350621115,), (1350621119,), (1350621123,), (1350621129,), (1350621133,), (1350621196,), (1350621197,), (1350621200,), (1350621201,), (1350621204,), (1350621205,), (1350621207,), (1350621208,), (1350621213,), (1350621215,), (1350621219,), (1350621222,), (1350621257,), (1350621261,), (1350621264,), (1350621265,), (1350621268,), (1350621314,), (1350621307,), (1350621311,), (1350621355,), (1350621359,), (1350621361,), (1350621363,), (1350621410,), (1350621422,), (1350621430,), (1350621434,), (1350621437,), (1350621478,), (1350621493,), (1350621499,), (1350621591,), (1350621598,), (1350621601,), (1350621604,), (1350621607,), (1350621612,), (1350621658,), (1350621662,), (1350621665,), (1350621668,), (1350621672,), (1350621676,), (1350621703,), (1350621867,), (1350621872,), (1350621879,), (1350621929,), (1350621932,), (1350621937,), (1350621942,), (1350621985,), (1350621990,), (1350621993,), (1350621998,), (1350622004,), (1350622010,), (1350622038,), (1350622042,), (1350622046,), (1350622051,), (1350622092,), (1350622096,), (1350622100,), (1350622552,), (1350622589,), (1350622628,), (1350622677,), (1350622735,), (1350622927,), (1350622984,), (1350623036,), (1350623091,), (1350623125,), (1350623325,), (1350623257,), (1350623298,), (1350623744,), (1350623776,), (1350623806,), (1350623834,), (1350623866,), (1350624029,), (1350624032,), (1350624035,), (1350624040,), (1350624044,), (1350624327,), (1350624366,), (1350624417,), (1350624795,), (1350624825,), (1350624862,), (1350624923,), (1350625464,), (1350625500,), (1350625531,), (1350625563,), (1350625591,), (1350625621,), (1350625901,), (1350625931,), (1350625955,), (1350625981,), (1350626008,), (1350626111,), (1350626140,), (1350626164,), (1350626188,), (1350626397,), (1350626408,), (1350626412,), (1350626471,), (1350626478,), (1350626482,), (1350626532,), (1350626536,), (1350626583,), (1350626687,), (1350626730,), (1350626735,), (1350626779,), (1350628841,), (1350628884,), (1350628999,), (1350629003,), (1350629007,), (1350629009,), (1350629011,), (1350629047,), (1350629051,), (1350629056,), (1350629080,), (1350629111,), (1350629141,), (1350629554,), (1350629586,), (1350629613,), (1350629635,), (1350629667,), (1350629676,), (1350630026,), (1350629955,), (1350629986,), (1350630287,), (1350630324,), (1350630350,), (1350630694,), (1350630722,), (1350630751,), (1350630902,), (1350630926,), (1350631179,), (1350631195,), (1350631284,), (1350631481,), (1350631486,), (1350631490,), (1350631532,), (1350631903,), (1350632109,), (1350632132,), (1350632137,), (1350632251,), (1350632267,), (1350632459,), (1350632487,), (1350632516,), (1350632783,), (1350632724,), (1350632736,), (1350632739,), (1350632884,), (1350633034,), (1350633211,), (1350633215,), (1350633802,), (1350633808,), (1350634055,), (1350634060,), (1350634198,), (1350634350,), (1350634356,), (1350634858,), (1350634891,), (1350634908,), (1350635036,), (1350635271,), (1350635276,), (1350636008,), (1350635989,), (1350636915,), (1350636954,), (1350636962,), (1350636966,), (1350636987,), (1350636990,), (1350637025,), (1350637038,), (1350637042,), (1350637047,), (1350637052,), (1350637056,), (1350637114,), (1350637868,), (1350637924,), (1350637962,), (1350637966,), (1350638516,), (1350638512,), (1350639295,), (1350639353,), (1350639357,), (1350639402,), (1350639464,), (1350639468,), (1350639534,), (1350639539,), (1350639543,), (1350639546,), (1350639588,), (1350639596,), (1350639615,), (1350639629,), (1350639823,), (1350639887,), (1350641248,), (1350642119,), (1350642061,), (1350642091,), (1350642114,), (1350642275,), (1350642304,), (1350642579,), (1350642873,), (1350642877,), (1350642880,), (1350642917,), (1350642992,), (1350643011,), (1350643026,), (1350643351,), (1350643591,), (1350643711,), (1350643719,), (1350643917,), (1350644362,), (1350644388,), (1350644390,), (1350644455,), (1350644444,), (1350644448,), (1350644451,), (1350644555,), (1350644560,), (1350644627,), (1350644630,), (1350644639,), (1350644645,), (1350644649,), (1350644651,), (1350644900,), (1350644929,), (1350644967,), (1350644992,), (1350645215,), (1350645223,), (1350645235,), (1350645255,), (1350645257,), (1350645294,), (1350645297,), (1350645300,), (1350645303,), (1350645350,), (1350645365,), (1350645369,), (1350645373,), (1350645376,), (1350645437,), (1350645496,), (1350645498,), (1350645501,), (1350645558,), (1350645576,), (1350645607,), (1350645640,), (1350645832,), (1350645848,), (1350645851,), (1350645854,), (1350645856,), (1350645903,), (1350645906,), (1350645910,), (1350645957,), (1350646023,), (1350646027,), (1350646030,), (1350646088,), (1350646092,), (1350646096,), (1350646142,), (1350646146,), (1350646151,), (1350646154,), (1350655366,), (1350655420,), (1350655426,), (1350655431,), (1350655436,), (1350655470,), (1350655474,), (1350655510,), (1350655527,), (1350656072,), (1350656075,), (1350656210,), (1350656215,), (1350656762,), (1350656786,), (1350656855,), (1350656858,), (1350656909,), (1350656915,), (1350657039,), (1350657044,), (1350657048,), (1350657053,), (1350657256,), (1350657270,), (1350657274,), (1350657278,), (1350657281,), (1350657322,), (1350657359,), (1350657365,), (1350657387,), (1350657436,), (1350657440,), (1350657446,), (1350657600,), (1350657616,), (1350657620,), (1350657623,), (1350657627,), (1350657675,), (1350657678,), (1350657682,), (1350657686,), (1350657689,), (1350657695,), (1350657792,), (1350657823,), (1350657827,), (1350657853,), (1350657857,), (1350658111,), (1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,), (1350658928,), (1350658941,), (1350658970,), (1350659000,), (1350659027,), (1350659087,), (1350659091,), (1350659095,), (1350659150,), (1350659157,), (1350659169,), (1350659239,), (1350659704,), (1350659735,), (1350659744,), (1350659772,), (1350659943,), (1350659949,), (1350660198,), (1350660204,), (1350660208,), (1350660393,), (1350660399,), (1350660403,), (1350660407,), (1350660469,), (1350660450,), (1350660456,), (1350660462,), (1350660539,), (1350660545,), (1350660549,), (1350660696,), (1350660701,), (1350660705,), (1350660749,), (1350660755,), (1350660759,), (1350660798,), (1350660802,), (1350660806,), (1350660810,), (1350660814,), (1350660862,), (1350660869,), (1350660875,), (1350660886,), (1350661486,), (1350661494,), (1350661523,), (1350661549,), (1350661578,), (1350661589,), (1350661724,), (1350661730,), (1350661734,), (1350661739,), (1350661742,), (1350661897,), (1350661901,), (1350661909,), (1350661916,), (1350661919,), (1350661923,), (1350661961,), (1350661966,), (1350661973,), (1350661983,), (1350662289,), (1350662296,), (1350662298,), (1350662301,), (1350662306,), (1350662344,), (1350662348,), (1350662353,), (1350662356,), (1350662361,), (1350662368,), (1350662409,), (1350662411,), (1350662413,), (1350662415,), (1350662596,), (1350662647,), (1350662676,), (1350662714,), (1350663174,), (1350663201,), (1350663217,), (1350663225,), (1350663234,), (1350663407,), (1350663290,), (1350663318,), (1350663348,), (1350663377,), (1350663724,), (1350663764,), (1350663805,), (1350664242,), (1350664270,), (1350664300,), (1350664341,), (1350664517,), (1350664523,), (1350664528,), (1350664533,), (1350664538,), (1350664542,), (1350664815,), (1350664840,), (1350664849,), (1350665039,), (1350665049,), (1350665062,), (1350665067,), (1350665546,), (1350665562,), (1350665572,), (1350665590,), (1350665602,), (1350665620,), (1350665729,), (1350665750,), (1350665758,), (1350665762,), (1350665920,), (1350665924,), (1350665980,), (1350666129,), (1350666139,), (1350666143,), (1350666150,), (1350666162,), (1350666167,), (1350666393,), (1350666407,), (1350666412,), (1350666416,), (1350666540,), (1350666563,), (1350666567,), (1350666571,), (1350666598,), (1350666797,), (1350666830,), (1350667474,), (1350667482,), (1350667511,), (1350667589,), (1350667597,), (1350667793,), (1350667846,), (1350667851,), (1350667856,), (1350667952,), (1350667907,), (1350667913,), (1350667946,), (1350668010,), (1350668020,), (1350668039,), (1350668060,), (1350668210,), (1350668225,), (1350668355,), (1350668359,), (1350668436,), (1350668572,), (1350668576,), (1350668631,), (1350668637,), (1350668643,), (1350668648,), (1350668651,), (1350668657,), (1350668696,), (1350668701,), (1350668706,), (1350668711,), (1350668746,), (1350668752,), (1350668757,), (1350668762,), (1350668814,), (1350668818,), (1350668822,), (1350668826,), (1350668839,), (1350668843,), (1350668910,), (1350668948,), (1350669030,), (1350669063,), (1350669078,), (1350669091,), (1350669139,), (1350669145,), (1350669149,), (1350669208,), (1350669213,), (1350669218,), (1350669222,), (1350669303,), (1350669306,), (1350669314,), (1350669318,), (1350669322,), (1350669370,), (1350669375,), (1350669380,), (1350669385,), (1350669449,), (1350669566,), (1350669573,), (1350669580,), (1350669583,), (1350669653,), (1350669669,), (1350669672,), (1350669678,), (1350669727,), (1350669738,), (1350669743,), (1350669748,), (1350669803,), (1350669806,), (1350669810,), (1350669814,), (1350669859,), (1350669862,), (1350669911,), (1350669916,), (1350669920,), (1350669924,), (1350669929,), (1350669931,), (1350669981,), (1350669984,), (1350669987,), (1350670058,), (1350670086,), (1350670094,), (1350670099,), (1350670107,), (1350670112,), (1350670156,), (1350670161,), (1350670166,), (1350670171,), (1350670213,), (1350670217,), (1350670219,), (1350670223,), (1350670302,), (1350670306,), (1350670426,), (1350670429,), (1350670432,), (1350670483,), (1350670487,), (1350670490,), (1350670492,), (1350670550,), (1350670551,), (1350670553,), (1350670630,), (1350670621,), (1350670627,), (1350670677,), (1350670679,), (1350670745,), (1350670749,), (1350670760,), (1350670815,), (1350670864,), (1350670868,), (1350670874,), (1350670968,), (1350670972,), (1350671021,), (1350671032,), (1350671035,), (1350671089,), (1350671092,), (1350671094,), (1350671097,), (1350671101,), (1350671154,), (1350671330,), (1350671347,), (1350671424,), (1350671426,), (1350671428,), (1350671431,), (1350671523,), (1350671551,), (1350671577,), (1350671605,), (1350671782,), (1350672938,), (1350672976,), (1350673500,), (1350673457,), (1350673848,), (1350673879,), (1350673907,), (1350674050,), (1350674081,), (1350674109,), (1350674166,), (1350674189,), (1350674312,), (1350674317,), (1350674323,), (1350674527,), (1350674534,), (1350674539,), (1350674542,), (1350674688,), (1350674711,), (1350674814,), (1350674841,), (1350675093,), (1350675106,), (1350675110,), (1350675218,), (1350675301,), (1350675321,), (1350675324,), (1350675531,), (1350675535,), (1350675538,), (1350675542,), (1350675547,), (1350675774,), (1350675801,), (1350676604,), (1350676667,), (1350676679,), (1350677074,), (1350677163,), (1350677217,), (1350677482,), (1350677496,), (1350677506,), (1350677821,), (1350677781,), (1350677795,), (1350677805,), (1350677811,), (1350677962,), (1350677973,), (1350677987,), (1350677989,), (1350677993,), (1350678010,), (1350678104,), (1350678136,), (1350678172,), (1350678213,), (1350678226,), (1350678282,), (1350678395,), (1350680166,), (1350681200,), (1350681216,), (1350681246,), (1350681303,), (1350681838,), (1350681617,), (1350681727,), (1350682148,), (1350682214,), (1350682269,), (1350682308,), (1350682312,), (1350682317,), (1350682361,), (1350682362,), (1350682364,), (1350682366,), (1350682367,), (1350682372,), (1350682408,), (1350682467,), (1350682470,), (1350682473,), (1350682476,), (1350682477,), (1350682522,), (1350682526,), (1350682532,), (1350682538,), (1350682542,), (1350682594,), (1350682605,), (1350682608,), (1350682610,), (1350682614,), (1350682800,), (1350682804,), (1350682807,), (1350682810,), (1350682864,), (1350682866,), (1350682869,), (1350682872,), (1350682909,), (1350682916,), (1350682921,), (1350682924,), (1350682930,), (1350682934,), (1350683181,), (1350683149,), (1350683161,), (1350683171,), (1350683175,), (1350683620,), (1350683627,), (1350683648,), (1350683723,), (1350683728,), (1350683740,), (1350683799,), (1350683803,), (1350683806,), (1350683809,), (1350683920,), (1350683931,), (1350684046,), (1350684050,), (1350684054,), (1350684069,), (1350684164,), (1350684509,), (1350684528,), (1350684534,), (1350684581,), (1350684586,), (1350684591,), (1350684596,), (1350684651,), (1350684654,), (1350684657,), (1350684659,), (1350684695,), (1350684933,), (1350684961,), (1350684992,), (1350686050,), (1350687882,), (1350687877,), (1350688281,), (1350688313,), (1350688549,), (1350688553,), (1350688556,), (1350688637,), (1350688649,), (1350688651,), (1350688653,), (1350688802,), (1350688807,), (1350688820,), (1350689173,), (1350689176,), (1350689230,), (1350689235,), (1350708449,), (1350708446,), (1350708654,), (1350708656,), (1350708657,), (1350709481,), (1350709722,), (1350709735,), (1350709772,), (1350709786,), (1350709826,), (1350709827,), (1350709829,), (1350709831,), (1350709834,), (1350709881,), (1350709909,), (1350709935,), (1350710250,), (1350710652,), (1350710707,), (1350710750,), (1350710777,), (1350710936,), (1350710963,), (1350710990,), (1350711185,), (1350711209,), (1350711236,), (1350711298,), (1350711291,), (1350711293,), (1350711296,), (1350711471,), (1350711491,), (1350711501,), (1350711507,), (1350711573,), (1350711578,), (1350711581,), (1350711584,), (1350711586,), (1350711775,), (1350711778,), (1350711782,), (1350711848,), (1350711887,), (1350711917,), (1350711961,), (1350713204,), (1350713306,), (1350713333,), (1350713361,), (1350713388,), (1350713652,), (1350713680,), (1350713705,), (1350714567,), (1350714596,), (1350715133,), (1350715136,), (1350715139,), (1350715142,), (1350715146,), (1350715324,), (1350715326,), (1350715327,), (1350715454,), (1350715482,), (1350715511,), (1350715540,), (1350715568,), (1350715602,), (1350715879,), (1350715908,), (1350715937,), (1350716143,), (1350716169,), (1350717525,), (1350717629,), (1350717691,), (1350717856,), (1350717914,), (1350717982,), (1350718062,), (1350718842,), (1350718595,), (1350718667,), (1350718727,), (1350718791,), (1350719522,), (1350719578,), (1350720173,), (1350720210,), (1350720226,), (1350720293,), (1350720325,), (1350720353,), (1350720551,), (1350720554,), (1350720558,), (1350720576,), (1350720737,), (1350720740,), (1350720887,), (1350720900,), (1350720903,), (1350720907,), (1350720977,), (1350720988,), (1350721255,), (1350721263,), (1350721320,), (1350721323,), (1350721405,), (1350721410,), (1350721437,), (1350721441,), (1350721543,), (1350721569,), (1350721587,), (1350721590,), (1350721647,), (1350721651,), (1350721793,), (1350721846,), (1350721852,), (1350721872,), (1350721884,), (1350721955,), (1350722121,), (1350722351,), (1350722199,), (1350722201,), (1350722204,), (1350722207,), (1350722423,), (1350722426,), (1350722429,), (1350722434,), (1350722491,), (1350722501,), (1350722640,), (1350722662,), (1350722743,), (1350722747,), (1350722749,), (1350722954,), (1350722956,), (1350722961,), (1350722988,), (1350723121,), (1350723123,), (1350723163,), (1350723167,), (1350723170,), (1350723215,), (1350723217,), (1350723219,), (1350723225,), (1350723305,), (1350723398,), (1350723501,), (1350723505,), (1350723507,), (1350723509,), (1350723558,), (1350723561,), (1350723565,), (1350723570,), (1350723648,), (1350723674,), (1350723686,), (1350723689,), (1350723693,), (1350723755,), (1350723773,), (1350723775,), (1350723792,), (1350723798,), (1350723854,), (1350723857,), (1350723860,), (1350723863,), (1350723917,), (1350723922,), (1350723990,), (1350723984,), (1350723987,), (1350724037,), (1350724042,), (1350724047,), (1350724051,), (1350724055,), (1350724105,), (1350724107,), (1350724110,), (1350724114,), (1350724117,), (1350724120,), (1350724301,), (1350724305,), (1350724308,), (1350724311,), (1350724358,), (1350724360,), (1350724412,), (1350724414,), (1350724417,), (1350724421,), (1350724427,), (1350724479,), (1350724482,), (1350724486,), (1350724490,), (1350724535,), (1350724537,), (1350724539,), (1350724546,), (1350724552,), (1350724595,), (1350724597,), (1350724600,), (1350724659,), (1350724662,), (1350724665,), (1350724668,), (1350724671,), (1350724674,), (1350724724,), (1350724730,), (1350724732,), (1350724734,), (1350724738,), (1350724742,), (1350724802,), (1350724806,), (1350724852,), (1350724886,), (1350725287,), (1350725313,), (1350725337,), (1350725354,), (1350725357,), (1350725373,), (1350725536,), (1350725541,), (1350725546,), (1350725552,), (1350725616,), (1350725619,), (1350725623,), (1350725628,), (1350725697,), (1350725676,), (1350725681,), (1350725690,), (1350725740,), (1350725743,), (1350725747,), (1350725751,), (1350726223,), (1350726235,), (1350726247,), (1350726252,), (1350726273,), (1350726400,), (1350726404,), (1350726407,), (1350726410,), (1350726414,), (1350726420,), (1350726496,), (1350726507,), (1350726513,), (1350726567,), (1350726571,), (1350726575,), (1350726579,), (1350726586,), (1350726644,), (1350726649,), (1350726654,), (1350726660,), (1350726710,), (1350726715,), (1350726722,), (1350726729,), (1350726734,), (1350726768,), (1350726772,), (1350726775,), (1350726779,), (1350726817,), (1350727007,), (1350727010,), (1350727013,), (1350727067,), (1350727072,), (1350727077,), (1350727082,), (1350727087,), (1350727136,), (1350727139,), (1350727148,), (1350727949,), (1350727981,), (1350728047,), (1350728245,), (1350728297,), (1350728338,), (1350728388,), (1350728976,), (1350728733,), (1350728790,), (1350728846,), (1350728919,), (1350729448,), (1350729507,), (1350729538,), (1350729575,), (1350729844,), (1350729849,), (1350729854,), (1350729858,), (1350729862,), (1350729967,), (1350730068,), (1350730097,), (1350730132,), (1350730382,), (1350730495,), (1350730527,), (1350730709,), (1350730714,), (1350730719,), (1350730723,), (1350730728,), (1350730781,), (1350730785,), (1350730789,), (1350730792,), (1350731008,), (1350731091,), (1350731165,), (1350731204,), (1350731207,), (1350731258,), (1350731260,), (1350731262,), (1350731369,), (1350731383,), (1350731395,), (1350731414,), (1350731578,), (1350731581,), (1350731594,), (1350731768,), (1350731771,), (1350731830,), (1350731861,), (1350731891,), (1350731918,), (1350731948,), (1350732260,), (1350732288,), (1350732354,), (1350732364,), (1350732370,), (1350732401,), (1350732406,), (1350732412,), (1350732419,), (1350732464,), (1350732458,), (1350732460,), (1350732506,), (1350732510,), (1350732514,), (1350732518,), (1350732534,), (1350732626,), (1350732641,), (1350732646,), (1350732648,), (1350732703,), (1350732709,), (1350732715,), (1350732720,), (1350732727,), (1350732776,), (1350732780,), (1350732787,), (1350732795,), (1350732847,), (1350732856,), (1350732861,), (1350732866,), (1350732869,), (1350732875,), (1350732926,), (1350732930,), (1350732939,), (1350732948,), (1350732952,), (1350732989,), (1350732993,), (1350732998,), (1350733052,), (1350733056,), (1350733061,), (1350733073,), (1350733079,), (1350733107,), (1350733111,), (1350733172,), (1350733176,), (1350733193,), (1350733249,), (1350733252,), (1350733347,), (1350733352,), (1350733356,), (1350733361,), (1350733436,), (1350733438,), (1350733441,), (1350733444,), (1350733446,), (1350733484,), (1350733487,), (1350733490,), (1350733494,), (1350733498,), (1350733502,), (1350733571,), (1350733548,), (1350734290,), (1350734327,), (1350734825,), (1350734853,), (1350734905,), (1350734952,), (1350734982,), (1350735680,), (1350735707,), (1350735736,), (1350735755,), (1350735822,), (1350735849,), (1350735876,), (1350735901,), (1350736058,), (1350736066,), (1350736070,), (1350736442,), (1350736461,), (1350736465,), (1350736468,), (1350736568,), (1350736577,), (1350736581,), (1350736967,), (1350737004,), (1350737022,), (1350737047,), (1350737055,), (1350737067,), (1350737174,), (1350737178,), (1350737181,), (1350737299,), (1350737302,), (1350737305,), (1350737307,), (1350737311,), (1350737318,), (1350737574,), (1350737513,), (1350737543,), (1350737946,), (1350738002,), (1350738005,), (1350738010,), (1350738013,), (1350738040,), (1350738044,), (1350738048,), (1350738088,), (1350738092,), (1350738097,), (1350738102,), (1350738106,), (1350738110,), (1350738176,), (1350738180,), (1350738183,), (1350738253,), (1350738272,), (1350738288,), (1350738298,), (1350738314,), (1350738322,), (1350738397,), (1350738400,), (1350738404,), (1350738413,), (1350738415,), (1350738421,), (1350738475,), (1350738479,), (1350738483,), (1350738488,), (1350738548,), (1350738553,), (1350738557,), (1350738562,), (1350738566,), (1350738646,), (1350738650,), (1350738655,), (1350738660,), (1350738667,), (1350738671,), (1350738710,), (1350738716,), (1350738720,), (1350738724,), (1350738729,), (1350738766,), (1350738778,), (1350738806,), (1350739391,), (1350739447,), (1350739487,), (1350739911,), (1350739945,), (1350739961,), (1350739967,), (1350739978,), (1350739998,), (1350740005,), (1350740033,), (1350740066,), (1350740100,), (1350740459,), (1350740410,), (1350741145,), (1350741199,), (1350741254,), (1350741309,), (1350741364,), (1350741924,), (1350741974,), (1350742027,), (1350742109,), (1350742348,), (1350742351,), (1350742355,), (1350742357,), (1350742396,), (1350742399,), (1350743121,), (1350743171,), (1350743221,), (1350743269,), (1350743320,), (1350743581,), (1350743629,), (1350743679,), (1350743708,), (1350743803,), (1350743807,), (1350743812,), (1350743815,), (1350743820,), (1350743844,), (1350743847,), (1350743851,), (1350743855,), (1350743889,), (1350743893,), (1350743898,), (1350743902,), (1350743906,), (1350744017,), (1350744035,), (1350744039,), (1350744084,), (1350744091,), (1350744179,), (1350744187,), (1350744190,), (1350744193,), (1350744250,), (1350744255,), (1350744258,), (1350744260,), (1350744261,), (1350744311,), (1350744301,), (1350744303,), (1350744305,), (1350744306,), (1350744308,), (1350744487,), (1350744499,), (1350744501,), (1350744507,), (1350744562,), (1350744567,), (1350744569,), (1350744613,), (1350744617,), (1350744621,), (1350744624,), (1350744627,), (1350744630,), (1350744673,), (1350744676,), (1350744678,), (1350744679,), (1350744767,), (1350744769,), (1350744773,), (1350744775,), (1350744782,), (1350744821,), (1350744825,), (1350744833,), (1350744843,), (1350744854,), (1350744859,), (1350744897,), (1350744900,), (1350744902,), (1350744905,), (1350744906,), (1350744958,), (1350744961,), (1350744965,), (1350745011,), (1350745016,), (1350745019,), (1350745022,), (1350745025,), (1350745030,), (1350745077,), (1350745083,), (1350745088,), (1350745090,), (1350745095,), (1350745137,), (1350745141,), (1350745145,), (1350745149,), (1350745154,), (1350745204,), (1350745209,), (1350745220,), (1350745228,), (1350745233,), (1350745238,), (1350745281,), (1350745285,), (1350745289,), (1350745339,), (1350745345,), (1350745351,), (1350745486,), (1350745455,), (1350745474,), (1350745478,), (1350745481,), (1350745537,), (1350745546,), (1350745550,), (1350745553,), (1350745602,), (1350745605,), (1350745609,), (1350745675,), (1350745679,), (1350745683,), (1350745736,), (1350745887,), (1350745891,), (1350745948,), (1350745952,), (1350745955,), (1350745958,), (1350746015,), (1350746063,), (1350746068,), (1350746151,), (1350746154,), (1350746169,), (1350746254,), (1350746262,), (1350746265,), (1350746281,), (1350746400,), (1350746407,), (1350746417,), (1350746531,), (1350746534,), (1350746537,), (1350746601,), (1350746604,), (1350746608,), (1350746613,), (1350746664,), (1350746715,), (1350747047,), (1350747166,), (1350747192,), (1350747201,), (1350747203,), (1350747306,), (1350747312,), (1350747332,), (1350747361,), (1350747392,), (1350747475,), (1350747468,), (1350747472,), (1350747517,), (1350747521,), (1350747524,), (1350747526,), (1350747577,), (1350747584,), (1350747592,), (1350747631,), (1350747634,), (1350747637,), (1350747697,), (1350747705,), (1350747716,), (1350747720,), (1350747813,), (1350747815,), (1350747869,), (1350747876,), (1350747880,), (1350747884,), (1350747924,), (1350747926,), (1350747928,), (1350747981,), (1350747984,), (1350747988,), (1350748041,), (1350748089,), (1350748184,), (1350748187,), (1350748241,), (1350748246,), (1350748250,), (1350748255,), (1350748302,), (1350748303,), (1350748305,), (1350748354,), (1350748358,), (1350748362,), (1350748773,), (1350748781,), (1350748790,), (1350748799,), (1350748807,), (1350748814,), (1350749277,), (1350749174,), (1350749221,), (1350749266,), (1350749274,), (1350749690,), (1350749720,), (1350749752,), (1350749798,), (1350749852,), (1350750394,), (1350750453,), (1350750501,), (1350750544,), (1350751164,), (1350751226,), (1350751283,), (1350751332,), (1350751390,), (1350751424,), (1350751891,), (1350751942,), (1350751990,), (1350752039,), (1350752904,), (1350752969,), (1350753034,), (1350753111,), (1350753166,), (1350753223,), (1350753667,), (1350753712,), (1350753750,), (1350753783,), (1350753834,), (1350754334,), (1350754339,), (1350754343,), (1350754363,), (1350754394,), (1350754911,), (1350754961,), (1350755016,), (1350755076,), (1350755127,), (1350755462,), (1350756018,), (1350757375,), (1350757379,), (1350758894,), (1350758794,), (1350758834,), (1350759018,), (1350759019,), (1350759022,), (1350759025,), (1350759028,), (1350759321,), (1350759348,), (1350759373,), (1350759758,), (1350759768,), (1350759772,), (1350759775,), (1350759799,), (1350760068,), (1350760075,), (1350760082,), (1350760084,), (1350760271,), (1350760277,), (1350760280,), (1350760283,), (1350760314,), (1350760319,), (1350760327,), (1350760330,), (1350760388,), (1350760391,), (1350760394,), (1350760396,), (1350760397,), (1350760429,), (1350760431,), (1350760435,), (1350760437,), (1350760462,), (1350760463,), (1350760466,), (1350760469,), (1350760472,), (1350760502,), (1350760505,), (1350760507,), (1350760511,), (1350760547,), (1350760550,), (1350760553,), (1350760555,), (1350760556,), (1350760559,), (1350760606,), (1350760618,), (1350760619,), (1350760622,), (1350760625,), (1350760700,), (1350762908,), (1350762937,), (1350762967,), (1350762994,), (1350763319,), (1350763346,), (1350763376,), (1350763429,), (1350763982,), (1350764029,), (1350764509,), (1350764537,), (1350764569,), (1350765199,), (1350765250,), (1350765304,), (1350765354,), (1350765408,), (1350765773,), (1350765776,), (1350765792,), (1350765818,), (1350765848,), (1350765855,), (1350765920,), (1350765925,), (1350765930,), (1350765934,), (1350765937,), (1350765989,), (1350766018,), (1350766048,), (1350766085,), (1350766112,), (1350766413,), (1350766445,), (1350766473,), (1350766509,), (1350766802,), (1350766827,), (1350766846,), (1350766851,), (1350766855,), (1350766881,), (1350766946,), (1350766951,), (1350766955,), (1350766960,), (1350766964,), (1350766995,), (1350766999,), (1350767002,), (1350767005,), (1350767085,), (1350767097,), (1350767104,), (1350767114,), (1350767123,), (1350767128,), (1350767214,), (1350767216,), (1350767218,), (1350767221,), (1350767547,), (1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,), (1350769510,), (1350769514,), (1350769519,), (1350769523,), (1350769527,), (1350769564,), (1350769568,), (1350769573,), (1350769578,), (1350769693,), (1350769672,), (1350769674,), (1350769676,), (1350769679,), (1350769684,), (1350769733,), (1350769737,), (1350769740,), (1350769744,), (1350769749,), (1350769789,), (1350770287,), (1350770445,), (1350770472,), (1350770500,), (1350770525,), (1350770552,), (1350770742,), (1350770754,), (1350770779,), (1350770804,), (1350770964,), (1350770966,), (1350770971,), (1350770974,), (1350770978,), (1350770981,), (1350771182,), (1350771185,), (1350771198,), (1350771513,), (1350772016,), (1350772046,), (1350772074,), (1350772627,), (1350772683,), (1350772735,), (1350772780,), (1350772811,), (1350772837,), (1350773229,), (1350773261,), (1350773298,), (1350773709,), (1350773740,), (1350773770,), (1350773799,), (1350773830,), (1350773861,), (1350774053,), (1350774037,), (1350774041,), (1350774047,), (1350774049,), (1350774094,), (1350774095,), (1350774098,), (1350774511,), (1350774564,), (1350774590,), (1350774636,), (1350774666,), (1350774736,), (1350775698,), (1350775722,), (1350775747,), (1350775773,), (1350776460,), (1350776488,), (1350776518,), (1350776548,), (1350776592,), (1350777456,), (1350777515,), (1350777560,), (1350777601,), (1350777660,), (1350778240,), (1350778292,), (1350778331,), (1350778366,), (1350778713,), (1350778764,), (1350778813,), (1350778894,), (1350778952,), (1350779005,), (1350779254,), (1350779261,), (1350779265,), (1350779267,), (1350779274,), (1350779508,), (1350779558,), (1350779600,), (1350780044,), (1350780054,), (1350780072,), (1350780073,), (1350780077,), (1350780081,), (1350780239,), (1350780302,), (1350780358,), (1350780411,), (1350780470,), (1350780991,), (1350781043,), (1350781095,), (1350783093,), (1350783171,), (1350783403,), (1350783483,), (1350783569,), (1350783630,), (1350783697,), (1350784428,), (1350784111,), (1350784181,), (1350784268,), (1350784351,), (1350784410,), (1350784968,), (1350785010,), (1350785221,), (1350785333,), (1350785419,), (1350786039,), (1350786089,), (1350786110,), (1350786139,), (1350786309,), (1350786315,), (1350786322,), (1350786332,), (1350786335,), (1350786370,), (1350786399,), (1350786428,), (1350786455,), (1350786482,), (1350786878,), (1350786941,), (1350786998,), (1350787037,), (1350787069,), (1350787364,), (1350787388,), (1350787427,), (1350787469,), (1350787493,), (1350787510,), (1350787779,), (1350787808,), (1350787811,), (1350788057,), (1350788075,), (1350788119,), (1350788171,), (1350788243,), (1350788306,), (1350788843,), (1350788879,), (1350788938,), (1350788996,), (1350789439,), (1350789445,), (1350789494,), (1350789500,), (1350789505,), (1350789511,), (1350789653,), (1350789681,), (1350789709,), (1350789737,), (1350789779,), (1350789810,), (1350790103,), (1350790152,), (1350790211,), (1350790498,), (1350790549,), (1350790601,), (1350790647,), (1350790716,), (1350790850,), (1350790971,), (1350790976,), (1350790984,), (1350791026,), (1350791084,), (1350791137,), (1350791771,), (1350791601,), (1350791663,), (1350791717,), (1350792695,), (1350792836,), (1350792883,), (1350792928,), (1350792979,), (1350793599,), (1350793633,), (1350793662,), (1350793760,), (1350793780,), (1350794068,), (1350794108,), (1350794133,), (1350794160,), (1350794412,), (1350794416,), (1350794421,), (1350794427,), (1350794456,), (1350794770,), (1350794806,), (1350794836,), (1350794855,), (1350794890,), (1350795303,), (1350795383,), (1350795388,), (1350795406,), (1350795437,), (1350795472,), (1350795476,), (1350795480,), (1350795484,), (1350795486,), (1350795491,), (1350795837,), (1350795898,), (1350795949,), (1350795982,), (1350796036,), (1350796311,), (1350796315,), (1350796319,), (1350796323,), (1350796514,), (1350796543,), (1350796578,), (1350796605,), (1350796645,), (1350796664,), (1350796790,), (1350796817,), (1350796848,), (1350796857,), (1350797239,), (1350797296,), (1350797339,), (1350797369,), (1350797404,), (1350797436,), (1350797729,), (1350797773,), (1350797830,), (1350797886,), (1350797956,), (1350798294,), (1350798327,), (1350798773,), (1350798754,), (1350799535,), (1350799564,), (1350799586,), (1350799991,), (1350800027,), (1350800056,), (1350800090,), (1350800130,), (1350800594,), (1350800624,), (1350800656,), (1350800690,), (1350800720,), (1350800749,), (1350800912,), (1350800916,), (1350800921,), (1350800923,), (1350801466,), (1350801518,), (1350801606,), (1350802199,), (1350802259,), (1350802343,), (1350802431,), (1350802500,), (1350802554,), (1350803152,), (1350803205,), (1350803271,), (1350803669,), (1350803672,), (1350803675,), (1350803684,), (1350803709,), (1350803738,), (1350803940,), (1350803947,), (1350804008,), (1350804046,), (1350804078,), (1350804105,), (1350804485,), (1350804537,), (1350804593,), (1350804646,), (1350804938,), (1350804955,), (1350804988,), (1350805056,), (1350805117,), (1350805176,), (1350805594,), (1350805609,), (1350805613,), (1350805619,), (1350805627,), (1350806075,), (1350806129,), (1350806184,), (1350806270,), (1350806353,), (1350806431,), (1350807226,), (1350806990,), (1350807049,), (1350807104,), (1350807152,), (1350807184,), (1350807378,), (1350807398,), (1350807426,), (1350807471,), (1350807977,), (1350808034,), (1350808112,), (1350808209,), (1350808288,), (1350808369,), (1350808951,), (1350809004,), (1350809075,), (1350809151,), (1350809609,), (1350809634,), (1350809680,), (1350809731,), (1350810129,), (1350810136,), (1350810165,), (1350810199,), (1350810227,), (1350810264,), (1350810575,), (1350810644,), (1350810720,), (1350810805,), (1350810886,), (1350810949,), (1350811908,), (1350812051,), (1350812263,), (1350813044,), (1350813074,), (1350813117,), (1350813144,), (1350813664,), (1350813834,), (1350814010,), (1350814089,), (1350814129,), (1350814567,), (1350814761,), (1350814837,), (1350815467,), (1350815501,), (1350815534,), (1350815559,), (1350815583,), (1350816586,), (1350816695,), (1350816752,), (1350816815,), (1350816872,), (1350818085,), (1350818150,), (1350818218,), (1350818257,), (1350818374,), (1350818406,), (1350818423,), (1350818427,), (1350818431,), (1350818666,), (1350818567,), (1350818586,), (1350818589,), (1350818627,), (1350819207,), (1350819265,), (1350819319,), (1350819414,), (1350820033,), (1350820084,), (1350820137,), (1350820188,), (1350820234,), (1350820292,), (1350820776,), (1350820805,), (1350820833,), (1350820864,), (1350820892,), (1350820925,), (1350821012,), (1350821014,), (1350821017,), (1350822406,), (1350822704,), (1350822777,), (1350822836,), (1350822889,), (1350822948,), (1350823744,), (1350823772,), (1350823799,), (1350823829,), (1350823878,), (1350823983,), (1350824534,), (1350824555,), (1350824577,), (1350824616,), (1350824623,), (1350824638,), (1350824667,), (1350824702,), (1350824758,), (1350825198,), (1350825242,), (1350825293,), (1350825324,), (1350825360,), (1350825547,), (1350825554,), (1350825597,), (1350825637,), (1350825653,), (1350825659,), (1350825752,), (1350825754,), (1350825760,), (1350825788,), (1350825816,), (1350825843,), (1350825896,), (1350825900,), (1350825904,), (1350826207,), (1350826233,), (1350826262,), (1350826287,), (1350826431,), (1350826457,), (1350826484,), (1350826517,), (1350826571,), (1350826889,), (1350826861,), (1350827329,), (1350827363,), (1350827369,), (1350827503,), (1350827511,), (1350827522,), (1350828132,), (1350828136,), (1350828141,), (1350828146,), (1350828159,), (1350828175,), (1350828479,), (1350828508,), (1350828578,), (1350828627,), (1350828630,), (1350828636,), (1350828844,), (1350828848,), (1350828852,), (1350829161,), (1350829191,), (1350829225,), (1350829249,), (1350829296,), (1350829300,), (1350829305,), (1350829311,), (1350829323,), (1350829369,), (1350829374,), (1350829375,), (1350829377,), (1350829441,), (1350829459,), (1350829468,), (1350829473,), (1350829484,), (1350829487,), (1350829590,), (1350829592,), (1350829594,), (1350829901,), (1350829904,), (1350829910,), (1350829915,), (1350829961,), (1350829965,), (1350829969,), (1350829974,), (1350829978,), (1350829984,), (1350830017,), (1350830020,), (1350830022,), (1350830026,), (1350830089,), (1350830098,), (1350830100,), (1350830103,), (1350830105,), (1350830185,), (1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,), (1350838590,), (1350838105,), (1350838817,), (1350838822,), (1350838924,), (1350839311,), (1350839362,), (1350839405,), (1350839764,), (1350839782,), (1350839793,), (1350839807,), (1350839812,), (1350839818,), (1350840088,), (1350840163,), (1350840255,), (1350840278,), (1350840296,), (1350840311,), (1350840322,), (1350840356,), (1350840359,), (1350840363,), (1350840369,), (1350840396,), (1350840432,), (1350840823,), (1350840854,), (1350840909,), (1350840966,), (1350841381,), (1350841411,), (1350841417,), (1350841426,), (1350841432,), (1350841438,), (1350841722,), (1350841736,), (1350841741,), (1350841746,), (1350841758,), (1350842313,), (1350842343,), (1350842393,), (1350842447,), (1350842507,), (1350842993,), (1350842907,), (1350842912,), (1350842986,), (1350842989,), (1350843546,), (1350843593,), (1350843649,), (1350843690,), (1350843734,), (1350844426,), (1350844473,), (1350844527,), (1350844574,), (1350844615,), (1350844655,), (1350844966,), (1350844969,), (1350844973,), (1350844976,), (1350845122,), (1350845196,), (1350845209,), (1350845232,), (1350845260,), (1350845294,), (1350845520,), (1350845551,), (1350845606,), (1350845633,), (1350845677,), (1350846021,), (1350846050,), (1350846079,), (1350846247,), (1350846273,), (1350846303,), (1350846332,), (1350846366,), (1350846375,), (1350846452,), (1350846457,), (1350846461,), (1350846466,), (1350846891,), (1350846968,), (1350847047,), (1350847118,), (1350847179,), (1350847231,), (1350847560,), (1350847589,), (1350847653,), (1350847688,), (1350847725,), (1350847898,), (1350847902,), (1350847906,), (1350847910,), (1350847957,), (1350848061,), (1350848092,), (1350848131,), (1350848162,), (1350848408,), (1350848413,), (1350848416,), (1350848421,), (1350848427,), (1350848573,), (1350848582,), (1350848589,), (1350848594,), (1350848964,), (1350848905,), (1350848960,), (1350849055,), (1350849060,), (1350849067,), (1350849072,), (1350849079,), (1350849125,), (1350849132,), (1350849138,), (1350849141,), (1350849146,), (1350849150,), (1350849182,), (1350849194,), (1350849198,), (1350849211,), (1350849218,), (1350849292,), (1350849298,), (1350849311,), (1350849326,), (1350849330,), (1350849335,), (1350849594,), (1350849624,), (1350849641,), (1350849645,), (1350849649,), (1350849653,), (1350849664,), (1350849670,), (1350849677,), (1350849703,), (1350849709,), (1350849715,), (1350849718,), (1350849722,), (1350849726,), (1350849769,), (1350849773,), (1350849776,), (1350849779,), (1350849831,), (1350849833,), (1350849836,), (1350849837,), (1350849845,), (1350849938,), (1350849949,), (1350849954,), (1350849959,), (1350849963,), (1350849975,), (1350850172,), (1350850175,), (1350850195,), (1350850380,), (1350850438,), (1350850445,), (1350850448,), (1350850450,), (1350850454,), (1350850590,), (1350850592,), (1350850595,), (1350850598,), (1350850641,), (1350850643,), (1350850654,), (1350850665,), (1350850667,), (1350850840,), (1350850806,), (1350850833,), (1350850836,), (1350850838,), (1350850979,), (1350850990,), (1350850994,), (1350850999,), (1350851003,), (1350851136,), (1350851139,), (1350851153,), (1350851174,), (1350851179,), (1350851350,), (1350851388,), (1350851402,), (1350851426,), (1350851433,), (1350851441,), (1350851588,), (1350851592,), (1350851595,), (1350851598,), (1350851599,), (1350851614,), (1350851752,), (1350851758,), (1350851762,), (1350851766,), (1350851770,), (1350851828,), (1350851840,), (1350851844,), (1350851849,), (1350851853,), (1350851891,), (1350851894,), (1350851898,), (1350851902,), (1350851904,), (1350851909,), (1350851968,), (1350851971,), (1350851978,), (1350851986,), (1350852027,), (1350852029,), (1350852031,), (1350852033,), (1350852035,), (1350852037,), (1350852072,), (1350852075,), (1350852078,), (1350852081,), (1350852084,), (1350852088,), (1350852128,), (1350852133,), (1350852136,), (1350852180,), (1350852190,), (1350852193,), (1350852208,), (1350852227,), (1350852241,), (1350853007,), (1350853066,), (1350853127,), (1350853190,), (1350853250,), (1350853329,), (1350853521,), (1350853567,), (1350853620,), (1350853678,), (1350854180,), (1350853991,), (1350854036,), (1350854074,), (1350854102,), (1350854130,), (1350854645,), (1350854701,), (1350854791,), (1350854877,), (1350854957,), (1350855426,), (1350855446,), (1350855450,), (1350855454,), (1350855460,), (1350855466,), (1350856135,), (1350856187,), (1350856241,), (1350856291,), (1350856711,), (1350857121,), (1350857155,), (1350857186,), (1350857260,), (1350857425,), (1350857452,), (1350857480,), (1350857509,), (1350857520,), (1350857523,), (1350857549,), (1350857552,), (1350857555,), (1350857558,), (1350857559,), (1350857875,), (1350857902,), (1350857930,), (1350857960,), (1350857993,), (1350858311,), (1350858337,), (1350858363,), (1350858389,), (1350858863,), (1350858931,), (1350858985,), (1350859039,), (1350859092,), (1350859419,), (1350859444,), (1350859471,), (1350859495,), (1350859523,), (1350859551,), (1350860190,), (1350860269,), (1350860350,), (1350860422,), (1350861235,), (1350861300,), (1350861366,), (1350861424,), (1350861471,), (1350861522,), (1350861861,), (1350861910,), (1350861939,), (1350861968,), (1350861996,), (1350863156,), (1350863344,), (1350863373,), (1350863400,), (1350863425,), (1350864120,), (1350864128,), (1350864133,), (1350864139,), (1350864145,), (1350864168,), (1350864508,), (1350864525,), (1350864562,), (1350864638,), (1350864640,), (1350864643,), (1350864694,), (1350864699,), (1350864702,), (1350864706,), (1350864712,), (1350864905,), (1350864936,), (1350864965,), (1350864989,), (1350865019,), (1350865125,), (1350865160,), (1350865188,), (1350865222,), (1350865355,), (1350865358,), (1350865361,), (1350865364,), (1350865367,), (1350865387,), (1350865450,), (1350865452,), (1350865455,), (1350865490,), (1350865501,), (1350865557,), (1350865560,), (1350865564,), (1350865568,), (1350865572,), (1350865600,), (1350865604,), (1350865608,), (1350865613,), (1350865615,), (1350865619,), (1350865857,), (1350865888,), (1350865913,), (1350866095,), (1350866097,), (1350866113,), (1350866136,), (1350866164,), (1350866189,), (1350866507,), (1350866383,), (1350866424,), (1350866465,), (1350866854,), (1350866873,), (1350866876,), (1350867423,), (1350867451,), (1350867478,), (1350867966,), (1350867999,), (1350868044,), (1350868070,), (1350868286,), (1350868307,), (1350868333,), (1350868708,), (1350868712,), (1350868715,), (1350868718,), (1350868719,), (1350868846,), (1350868873,), (1350868902,), (1350868914,), (1350869060,), (1350869063,), (1350869066,), (1350869071,), (1350869077,), (1350869081,), (1350869126,), (1350869130,), (1350869135,), (1350869139,), (1350869186,), (1350869190,), (1350869197,), (1350869201,), (1350869205,), (1350869245,), (1350869255,), (1350869266,), (1350869273,), (1350869278,), (1350869504,), (1350869559,), (1350869591,), (1350869607,), (1350870057,), (1350870108,), (1350870166,), (1350870220,), (1350871135,), (1350872970,), (1350872980,), (1350872983,), (1350873073,), (1350873077,), (1350873080,), (1350873083,), (1350873129,), (1350873133,), (1350873176,), (1350873199,), (1350873246,), (1350873297,), (1350873351,), (1350874069,), (1350874138,), (1350875484,), (1350875730,), (1350875742,), (1350875774,), (1350875802,), (1350875833,), (1350876322,), (1350876356,), (1350876372,), (1350876379,), (1350876471,), (1350876484,), (1350876514,), (1350876521,), (1350876545,), (1350876557,), (1350876977,), (1350876796,), (1350876827,), (1350876873,), (1350876916,), (1350876948,), (1350877655,), (1350877725,), (1350877812,), (1350877877,), (1350878641,), (1350878722,), (1350878798,), (1350878915,), (1350879024,), (1350879113,), (1350879773,), (1350879847,), (1350879931,), (1350880004,), (1350880082,), (1350880143,), (1350880661,), (1350880688,), (1350880718,), (1350880744,), (1350881486,), (1350881571,), (1350881638,), (1350881670,), (1350881722,), (1350881736,), (1350881918,), (1350881920,), (1350881922,), (1350881938,), (1350881967,), (1350882273,), (1350882287,), (1350882318,), (1350882346,), (1350883037,), (1350883109,), (1350883143,), (1350883170,), (1350883224,), (1350884315,), (1350884341,), (1350884346,), (1350884369,), (1350884398,), (1350884703,), (1350884706,), (1350884719,), (1350884758,), (1350884850,), (1350884901,), (1350884950,), (1350885003,), (1350885045,), (1350885079,), (1350885342,), (1350885368,), (1350885378,), (1350885380,), (1350885395,), (1350885464,), (1350885468,), (1350885478,), (1350885727,), (1350885730,), (1350885757,), (1350885767,), (1350885770,), (1350885775,), (1350886071,), (1350885947,), (1350886067,), (1350886226,), (1350886256,), (1350886284,), (1350886313,), (1350886346,), (1350886374,), (1350886634,), (1350886658,), (1350886689,), (1350886717,), (1350886733,), (1350887381,), (1350887383,), (1350887389,), (1350887400,), (1350887405,), (1350887409,), (1350887715,), (1350887717,), (1350887748,), (1350887750,), (1350887783,), (1350887834,), (1350887837,), (1350887840,), (1350887843,), (1350887844,), (1350887846,), (1350887888,), (1350887896,), (1350887904,), (1350887951,), (1350887956,), (1350887961,), (1350887965,), (1350887969,), (1350887974,), (1350888133,), (1350888236,), (1350888333,), (1350888435,), (1350888982,), (1350889008,), (1350889034,), (1350889046,), (1350889553,), (1350889558,), (1350889563,), (1350889589,), (1350889636,), (1350890032,), (1350890079,), (1350890133,), (1350890814,), (1350890867,), (1350890917,), (1350890978,), (1350891039,), (1350891093,), (1350891679,), (1350891749,), (1350891781,), (1350891955,), (1350892031,), (1350892107,), (1350892602,), (1350892652,), (1350892699,), (1350892754,), (1350893180,), (1350893030,), (1350893053,), (1350893083,), (1350893115,), (1350893143,), (1350893848,), (1350893926,), (1350894011,), (1350894045,), (1350894258,), (1350894261,), (1350894265,), (1350894289,), (1350894340,), (1350894401,), (1350895169,), (1350895238,), (1350895319,), (1350895391,), (1350895441,), (1350895488,), (1350896603,), (1350896745,), (1350896979,), (1350898890,), (1350898968,), (1350899001,), (1350899083,), (1350899157,), (1350899234,), (1350899534,), (1350899622,), (1350899812,), (1350901015,), (1350901070,), (1350901134,), (1350901203,), (1350901262,), (1350901313,), (1350902030,), (1350902104,), (1350902191,), (1350902269,), (1350903017,), (1350903076,), (1350903143,), (1350903215,), (1350903262,), (1350903318,), (1350904080,), (1350904146,), (1350904198,), (1350904249,), (1350904802,), (1350904827,), (1350904853,), (1350904880,), (1350904910,), (1350905211,), (1350905237,), (1350905265,), (1350905299,), (1350905350,), (1350905893,), (1350905947,), (1350905997,), (1350906632,), (1350906707,), (1350906771,), (1350906853,), (1350906882,), (1350907382,), (1350907272,), (1350907299,), (1350907326,), (1350907354,), (1350907569,), (1350907597,), (1350907603,), (1350907623,), (1350907687,), (1350907691,), (1350907695,), (1350907699,), (1350907704,), (1350907709,), (1350907755,), (1350907758,), (1350907761,), (1350907764,), (1350907905,), (1350907909,), (1350907917,), (1350907957,), (1350907961,), (1350907964,), (1350907966,), (1350907971,), (1350907977,), (1350908057,), (1350908184,), (1350908225,), (1350908261,), (1350908429,), (1350908450,), (1350908476,), (1350908619,), (1350908621,), (1350908624,), (1350908626,), (1350908628,), (1350908659,), (1350908662,), (1350908664,), (1350908666,), (1350908668,), (1350908671,), (1350908947,), (1350908976,), (1350909006,), (1350910326,), (1350910406,), (1350910474,), (1350910540,), (1350910623,), (1350910687,), (1350910698,), (1350910699,), (1350910704,), (1350910719,), (1350910943,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17042025': {'nb_upload': 27, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22121697]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955] map_info['map_portfolio_photo'] : {22121697: [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955]} final : True mtd_id 4302 list_pids : [1350632783, 1350632516, 1350632487, 1350632459, 1350632267, 1350632251, 1350632137, 1350632132, 1350632109, 1350631903, 1350631532, 1350631490, 1350631486, 1350631481, 1350631284, 1350631195, 1350631179, 1350630926, 1350630902, 1350630751, 1350630722, 1350630694, 1350630350, 1350630324, 1350630287, 1350629986, 1350629955] Looping around the photos to save general results len do output : 1 /22121697Didn'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, '2734134') ('4302', '22121697', '1350632783', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632516', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632487', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632459', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632267', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632251', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632137', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632132', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350632109', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631903', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631532', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631490', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631486', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631481', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631284', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631195', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350631179', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630926', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630902', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630751', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630722', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630694', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630350', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630324', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350630287', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350629986', None, None, None, None, None, '2734134') ('4302', None, None, None, None, None, None, None, '2734134') ('4302', '22121697', '1350629955', None, None, None, None, None, '2734134') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 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, '22121697', 'None', None, None, None, None, '2734134'), ('4302', '22121697', '1350632783', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632516', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632487', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632459', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632267', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632251', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632137', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632132', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350632109', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631903', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631532', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631490', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631486', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631481', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631284', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631195', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350631179', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630926', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630902', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630751', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630722', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630694', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630350', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630324', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350630287', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350629986', None, None, None, None, None, '2734134'), ('4302', '22121697', '1350629955', None, None, None, None, None, '2734134')] time used for this insertion : 0.015732765197753906 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.461544513702393 time spend to save output : 0.016028165817260742 total time spend for step 5 : 4.477572679519653 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 (2734134) 2.89user 2.35system 0:13.21elapsed 39%CPU (0avgtext+0avgdata 168432maxresident)k 216inputs+19104outputs (0major+79540minor)pagefaults 0swaps