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 : 3379916 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 (3608327) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3608327) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246253 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3608327'] with mtr_portfolio_ids : ['26246253'] and first list_photo_ids : [] new path : /proc/3379916/ Name: python3 Umask: 0002 State: R (running) Tgid: 3379916 Ngid: 0 Pid: 3379916 PPid: 3379915 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3379916 NSpid: 3379916 NSpgid: 3378205 NSsid: 3378205 VmPeak: 1107520 kB VmSize: 1107520 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 101476 kB VmRSS: 101476 kB RssAnon: 60424 kB RssFile: 41052 kB RssShmem: 0 kB VmData: 866272 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3379916', 'Ngid': '0', 'Pid': '3379916', 'PPid': '3379915', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3379916', 'NSpid': '3379916', 'NSpgid': '3378205', 'NSsid': '3378205', 'VmPeak': '1107520 kB', 'VmSize': '1107520 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '101476 kB', 'VmRSS': '101476 kB', 'RssAnon': '60424 kB', 'RssFile': '41052 kB', 'RssShmem': '0 kB', 'VmData': '866272 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '3379916', '1107520', '0', '1107520', '866272', '101476', b'', 'marlene', '3608327') 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 (26246253) 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 (3608327 ) ) 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 (26246253) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1379565635, 'portfolio_id': 26246253}, {'photo_id': 1379553189, 'portfolio_id': 26246253}, {'photo_id': 1379552134, 'portfolio_id': 26246253}, {'photo_id': 1379552133, 'portfolio_id': 26246253}, {'photo_id': 1379552132, 'portfolio_id': 26246253}, {'photo_id': 1379551936, 'portfolio_id': 26246253}, {'photo_id': 1379551934, 'portfolio_id': 26246253}, {'photo_id': 1379551932, 'portfolio_id': 26246253}, {'photo_id': 1379551462, 'portfolio_id': 26246253}, {'photo_id': 1379551460, 'portfolio_id': 26246253}, {'photo_id': 1379551457, 'portfolio_id': 26246253}, {'photo_id': 1379551455, 'portfolio_id': 26246253}, {'photo_id': 1379551453, 'portfolio_id': 26246253}] map_portfolio_id_photo_id: {26246253: [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453]} ##### 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.01652240753173828 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Aug 27 06:17:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26246253) 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 : 26246253 get user id for portfolio 26246253 get sub ptf for main ptf 26246253, type 3726 and hashtags ['autre_refus', 'environnement', 'kraft', 'Carton_gris', 'flou', 'metal', 'papier', 'cartonnette', 'plastique', 'Carton_brun', 'mal_croppe', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26246253 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','kraft','Carton_gris','flou','metal','papier','cartonnette','plastique','Carton_brun','mal_croppe','Teint_Dans_La_Masse')) 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`=26246253 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','kraft','Carton_gris','flou','metal','papier','cartonnette','plastique','Carton_brun','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 26246253, 'sub_port_id': 26246269, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667312, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}, 'environnement': {'main_port_id': 26246253, 'sub_port_id': 26246270, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667313, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}, 'Carton_gris': {'main_port_id': 26246253, 'sub_port_id': 26246271, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667314, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 26246253, 'sub_port_id': 26246272, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667315, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}, 'mal_croppe': {'main_port_id': 26246253, 'sub_port_id': 26246273, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667316, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}, 'flou': {'main_port_id': 26246253, 'sub_port_id': 26246274, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667317, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}, 'plastique': {'main_port_id': 26246253, 'sub_port_id': 26246275, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667318, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}, 'Carton_brun': {'main_port_id': 26246253, 'sub_port_id': 26246276, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667319, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}, 'kraft': {'main_port_id': 26246253, 'sub_port_id': 26246277, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667320, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}, 'autre_refus': {'main_port_id': 26246253, 'sub_port_id': 26246278, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667321, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}, 'metal': {'main_port_id': 26246253, 'sub_port_id': 26246279, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667322, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}, 'cartonnette': {'main_port_id': 26246253, 'sub_port_id': 26246280, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667323, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26246269 , 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=26246253 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 (26246269) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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 26246270 , 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=26246253 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 (26246270) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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 26246271 , 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=26246253 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 (26246271) result : ((1379589963,), (1379590186,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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 26246272 , 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=26246253 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 (26246272) result : ((1379589957,), (1379589958,), (1379590185,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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 26246273 , 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=26246253 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 (26246273) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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 26246274 , 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=26246253 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 (26246274) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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 26246275 , 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=26246253 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 (26246275) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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 26246276 , 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=26246253 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 (26246276) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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 26246277 , 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=26246253 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 (26246277) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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 26246278 , 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=26246253 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 (26246278) result : ((1379589960,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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 26246279 , 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=26246253 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 (26246279) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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 26246280 , 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=26246253 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 (26246280) result : ((1379589964,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26246253) result : ((1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) 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`=26246253 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','kraft','Carton_gris','flou','metal','papier','cartonnette','plastique','Carton_brun','mal_croppe','Teint_Dans_La_Masse')) 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`=26246253 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','kraft','Carton_gris','flou','metal','papier','cartonnette','plastique','Carton_brun','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 26246253, 'sub_port_id': 26246281, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667324, 'last_updated_at': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}, 'environnement': {'main_port_id': 26246253, 'sub_port_id': 26246282, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667325, 'last_updated_at': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}, 'Carton_gris': {'main_port_id': 26246253, 'sub_port_id': 26246283, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667326, 'last_updated_at': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 26246253, 'sub_port_id': 26246284, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667327, 'last_updated_at': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}, 'mal_croppe': {'main_port_id': 26246253, 'sub_port_id': 26246285, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667328, 'last_updated_at': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}, 'flou': {'main_port_id': 26246253, 'sub_port_id': 26246286, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667329, 'last_updated_at': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}, 'plastique': {'main_port_id': 26246253, 'sub_port_id': 26246287, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667330, 'last_updated_at': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}, 'Carton_brun': {'main_port_id': 26246253, 'sub_port_id': 26246288, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667331, 'last_updated_at': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}, 'kraft': {'main_port_id': 26246253, 'sub_port_id': 26246289, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667332, 'last_updated_at': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}, 'autre_refus': {'main_port_id': 26246253, 'sub_port_id': 26246290, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667333, 'last_updated_at': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}, 'metal': {'main_port_id': 26246253, 'sub_port_id': 26246291, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667334, 'last_updated_at': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 23, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}, 'cartonnette': {'main_port_id': 26246253, 'sub_port_id': 26246292, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17667335, 'last_updated_at': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 27, 2, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 23, 17, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246269 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246271 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246272 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246273 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246286,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246274 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246287,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246275 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246277 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246279 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26246292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26246280 lien utilise dans velours : https://www.fotonower.com/velours/26246281,26246282,26246283,26246284,26246285,26246286,26246287,26246288,26246289,26246290,26246291,26246292?tags=papier,environnement,Carton_gris,Teint_Dans_La_Masse,mal_croppe,flou,plastique,Carton_brun,kraft,autre_refus,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26246253]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453] map_info['map_portfolio_photo'] : {26246253: [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453]} final : False mtd_id 4302 list_pids : [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453] Looping around the photos to save general results len do output : 1 /26246253. 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, '3608327') ('4302', '26246253', '1379565635', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379553189', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552134', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552133', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552132', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551936', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551934', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551932', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551462', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551460', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551457', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551455', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551453', None, None, None, None, None, '3608327') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '26246253', "{'papier': 26246269, 'environnement': 26246270, 'Carton_gris': 26246271, 'Teint_Dans_La_Masse': 26246272, 'mal_croppe': 26246273, 'flou': 26246274, 'plastique': 26246275, 'Carton_brun': 26246276, 'kraft': 26246277, 'autre_refus': 26246278, 'metal': 26246279, 'cartonnette': 26246280}", None, None, None, None, '3608327'), ('4302', '26246253', '1379565635', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379553189', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379552134', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379552133', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379552132', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551936', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551934', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551932', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551462', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551460', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551457', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551455', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551453', None, None, None, None, None, '3608327')] time used for this insertion : 0.02521538734436035 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6956708431243896 time spend to save output : 0.025510787963867188 total time spend for step 1 : 1.7211816310882568 step2:final Wed Aug 27 06:18:00 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 (26246253) 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 26246253 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1379551462,1379551460,1379551457,1379551455,1379551453,1379551936,1379551934,1379551932,1379552134,1379552133,1379552132,1379565635,1379553189); 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([26246253]) Inside saveOutput : final : False verbose : True original output for save of step final : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} new output for save of step final : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453] map_info['map_portfolio_photo'] : {26246253: [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453]} final : False mtd_id 4302 list_pids : [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453] Looping around the photos to save general results len do output : 13 /1379565635.Didn't retrieve data . /1379553189.Didn't retrieve data . /1379552134.Didn't retrieve data . /1379552133.Didn't retrieve data . /1379552132.Didn't retrieve data . /1379551936.Didn't retrieve data . /1379551934.Didn't retrieve data . /1379551932.Didn't retrieve data . /1379551462.Didn't retrieve data . /1379551460.Didn't retrieve data . /1379551457.Didn't retrieve data . /1379551455.Didn't retrieve data . /1379551453.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, '3608327') ('4302', '26246253', '1379565635', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379553189', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552134', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552133', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552132', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551936', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551934', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551932', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551462', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551460', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551457', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551455', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551453', None, None, None, None, None, '3608327') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '26246253', '1379565635', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379553189', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379552134', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379552133', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379552132', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379551936', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379551934', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379551932', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379551462', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379551460', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379551457', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379551455', '0.029003651960529044', None, None, None, None, '3608327'), ('4302', '26246253', '1379551453', '0.029003651960529044', None, None, None, None, '3608327')] time used for this insertion : 0.020711898803710938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06452679634094238 time spend to save output : 0.021289348602294922 total time spend for step 2 : 0.0858161449432373 step3:velours_tree Wed Aug 27 06:18:00 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 : {26246253: [{'papier': 26246269, 'environnement': 26246270, 'Carton_gris': 26246271, 'Teint_Dans_La_Masse': 26246272, 'mal_croppe': 26246273, 'flou': 26246274, 'plastique': 26246275, 'Carton_brun': 26246276, 'kraft': 26246277, 'autre_refus': 26246278, 'metal': 26246279, 'cartonnette': 26246280}]} input_args_next_step : {26246253: ()} output_args : {26246253: [{'papier': 26246269, 'environnement': 26246270, 'Carton_gris': 26246271, 'Teint_Dans_La_Masse': 26246272, 'mal_croppe': 26246273, 'flou': 26246274, 'plastique': 26246275, 'Carton_brun': 26246276, 'kraft': 26246277, 'autre_refus': 26246278, 'metal': 26246279, 'cartonnette': 26246280}]} args : 26246253 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 26246269, 'environnement': 26246270, 'Carton_gris': 26246271, 'Teint_Dans_La_Masse': 26246272, 'mal_croppe': 26246273, 'flou': 26246274, 'plastique': 26246275, 'Carton_brun': 26246276, 'kraft': 26246277, 'autre_refus': 26246278, 'metal': 26246279, 'cartonnette': 26246280},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26246253) 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([26246253]) 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.3079185485839844 time spend to save output : 5.2928924560546875e-05 total time spend for step 3 : 0.3079714775085449 step4:send_mail_cod Wed Aug 27 06:18:00 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 : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} input_args_next_step : {1379565635: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379565635 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379553189 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379552134 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379552133 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379552132 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379551936 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379551934 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379551932 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379551462 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379551460 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379551457 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379551455 depend.output_id : 0 input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ()} output_args : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',)} args : 1379551453 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 : {26246253: [{'papier': 26246269, 'environnement': 26246270, 'Carton_gris': 26246271, 'Teint_Dans_La_Masse': 26246272, 'mal_croppe': 26246273, 'flou': 26246274, 'plastique': 26246275, 'Carton_brun': 26246276, 'kraft': 26246277, 'autre_refus': 26246278, 'metal': 26246279, 'cartonnette': 26246280}]} input_args_next_step : {1379565635: ('0.029003651960529044',), 1379553189: ('0.029003651960529044',), 1379552134: ('0.029003651960529044',), 1379552133: ('0.029003651960529044',), 1379552132: ('0.029003651960529044',), 1379551936: ('0.029003651960529044',), 1379551934: ('0.029003651960529044',), 1379551932: ('0.029003651960529044',), 1379551462: ('0.029003651960529044',), 1379551460: ('0.029003651960529044',), 1379551457: ('0.029003651960529044',), 1379551455: ('0.029003651960529044',), 1379551453: ('0.029003651960529044',), 26246253: ()} output_args : {26246253: [{'papier': 26246269, 'environnement': 26246270, 'Carton_gris': 26246271, 'Teint_Dans_La_Masse': 26246272, 'mal_croppe': 26246273, 'flou': 26246274, 'plastique': 26246275, 'Carton_brun': 26246276, 'kraft': 26246277, 'autre_refus': 26246278, 'metal': 26246279, 'cartonnette': 26246280}]} args : 26246253 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 :14, first value : ('0.029003651960529044',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26246253) 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 (1379565635,1379553189,1379552134,1379552133,1379552132,1379551936,1379551934,1379551932,1379551462,1379551460,1379551457,1379551455,1379551453) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1379551453 begin to download photo : 1379551460 begin to download photo : 1379551934 begin to download photo : 1379552133 begin to download photo : 1379565635 download finish for photo 1379552133 begin to download photo : 1379552134 download finish for photo 1379551453 begin to download photo : 1379551455 download finish for photo 1379551934 begin to download photo : 1379551936 download finish for photo 1379565635 download finish for photo 1379551460 begin to download photo : 1379551462 download finish for photo 1379551936 begin to download photo : 1379552132 download finish for photo 1379551462 begin to download photo : 1379551932 download finish for photo 1379552134 begin to download photo : 1379553189 download finish for photo 1379551455 begin to download photo : 1379551457 download finish for photo 1379551932 download finish for photo 1379552132 download finish for photo 1379553189 download finish for photo 1379551457 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette262462731756268280/ imagette262462741756268280/ imagette262462751756268280/ imagette262462771756268280/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P26246253_27-08-2025_06_18_00.pdf 26246273 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=26246273 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262462731756268280 26246274 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=26246274 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262462741756268280 26246275 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=26246275 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262462751756268280 26246277 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=26246277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262462771756268280 26246278 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=26246278 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1379589960: '1756257635_2982293_1379551457_36c219619581efec9e2f58c7adb4b76e_36956171_rle_crop_3932072753_0.png'} change filename to text .imagette262462781756268280/ imagette262462781756268280/1756257635_2982293_1379551457_36c219619581efec9e2f58c7adb4b76e_36956171_rle_crop_3932072753_0.png.png imagette262462791756268281/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/27/1587e61d5f2f6b35c293f8d0d064ad03_27988713.png imagette262462781756268280 26246279 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=26246279 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262462791756268281 26246280 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=26246280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1379589964: '1756257635_2982293_1379551453_6bd8e7b8ab5c30b725d997b2f6fbce87_90740610_rle_crop_3932072774_0.png'} change filename to text .imagette262462801756268281/ imagette262462801756268281/1756257635_2982293_1379551453_6bd8e7b8ab5c30b725d997b2f6fbce87_90740610_rle_crop_3932072774_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/27/c8a8afcbdfcba4d6cb77c0a61fe4cf5d_37241305.png imagette262462801756268281 26246271 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=26246271 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1379589963: '1756257635_2982293_1379551457_36c219619581efec9e2f58c7adb4b76e_36956171_rle_crop_3932072750_0.png', 1379590186: '1756258238_3011096_1379552133_11e5d0e1b352a7ee2cd277173d61b513_59269999_rle_crop_3932072842_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/27/dbcbcd0b346ecb40d735e8110eb11b70_59422838.png change filename to text .imagette262462711756268281/ imagette262462711756268281/1756258238_3011096_1379552133_11e5d0e1b352a7ee2cd277173d61b513_59269999_rle_crop_3932072842_0.png.png imagette262462711756268281/1756257635_2982293_1379551457_36c219619581efec9e2f58c7adb4b76e_36956171_rle_crop_3932072750_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/27/e51f5034a2257258b6db00aa3c9133a2_44725630.png imagette262462711756268281 26246272 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=26246272 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1379589957: '1756257635_2982293_1379551460_2a35e40fb5eafaa7778e991178c56c0b_67968111_rle_crop_3932072736_0.png', 1379589958: '1756257635_2982293_1379551457_36c219619581efec9e2f58c7adb4b76e_36956171_rle_crop_3932072751_0.png', 1379590185: '1756258238_3011096_1379552133_11e5d0e1b352a7ee2cd277173d61b513_59269999_rle_crop_3932072844_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/27/a510588e31ab914ec366bdd3ea960a27_62717852.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/27/abbbdb6b60fb54e4e9118c0b0ca237da_45795920.png change filename to text .imagette262462721756268281/ imagette262462721756268281/1756258238_3011096_1379552133_11e5d0e1b352a7ee2cd277173d61b513_59269999_rle_crop_3932072844_0.png.png imagette262462721756268281/1756257635_2982293_1379551460_2a35e40fb5eafaa7778e991178c56c0b_67968111_rle_crop_3932072736_0.png.png imagette262462721756268281/1756257635_2982293_1379551457_36c219619581efec9e2f58c7adb4b76e_36956171_rle_crop_3932072751_0.png.png imagette262462761756268281/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/27/48fbdbc3c4f25829d86902cf1cc85e4b_12271049.png imagette262462721756268281 26246276 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=26246276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262462761756268281 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26246253 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/26246281,26246282,26246283,26246284,26246285,26246286,26246287,26246288,26246289,26246290,26246291,26246292?tags=papier,environnement,Carton_gris,Teint_Dans_La_Masse,mal_croppe,flou,plastique,Carton_brun,kraft,autre_refus,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1379565635] : ('0.029003651960529044',) no score found for photo 1379565635 We are sending mail with results at report@fotonower.com args[1379553189] : ('0.029003651960529044',) no score found for photo 1379553189 We are sending mail with results at report@fotonower.com args[1379552134] : ('0.029003651960529044',) no score found for photo 1379552134 We are sending mail with results at report@fotonower.com args[1379552133] : ('0.029003651960529044',) no score found for photo 1379552133 We are sending mail with results at report@fotonower.com args[1379552132] : ('0.029003651960529044',) no score found for photo 1379552132 We are sending mail with results at report@fotonower.com args[1379551936] : ('0.029003651960529044',) no score found for photo 1379551936 We are sending mail with results at report@fotonower.com args[1379551934] : ('0.029003651960529044',) no score found for photo 1379551934 We are sending mail with results at report@fotonower.com args[1379551932] : ('0.029003651960529044',) no score found for photo 1379551932 We are sending mail with results at report@fotonower.com args[1379551462] : ('0.029003651960529044',) no score found for photo 1379551462 We are sending mail with results at report@fotonower.com args[1379551460] : ('0.029003651960529044',) no score found for photo 1379551460 We are sending mail with results at report@fotonower.com args[1379551457] : ('0.029003651960529044',) no score found for photo 1379551457 We are sending mail with results at report@fotonower.com args[1379551455] : ('0.029003651960529044',) no score found for photo 1379551455 We are sending mail with results at report@fotonower.com args[1379551453] : ('0.029003651960529044',) no score found for photo 1379551453 We are sending mail with results at report@fotonower.com refus_total : 0.029003651960529044 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=26246253 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_P26246253_27-08-2025_06_18_00.pdf results_Auto_P26246253_27-08-2025_06_18_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26246253_27-08-2025_06_18_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26246253','results_Auto_P26246253_27-08-2025_06_18_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26246253_27-08-2025_06_18_00.pdf','pdf','','0.12','0.029003651960529044') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26246253]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453] map_info['map_portfolio_photo'] : {26246253: [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453]} final : False mtd_id 4302 list_pids : [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453] 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, '3608327') ('4302', '26246253', '1379565635', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379553189', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552134', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552133', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552132', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551936', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551934', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551932', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551462', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551460', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551457', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551455', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551453', None, None, None, None, None, '3608327') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '26246253', '1379565635', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379553189', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379552134', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379552133', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379552132', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551936', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551934', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551932', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551462', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551460', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551457', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551455', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551453', None, None, None, None, None, '3608327')] time used for this insertion : 0.05080556869506836 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.141357421875 time spend to save output : 0.05112338066101074 total time spend for step 4 : 2.1924808025360107 step5:split_time_score Wed Aug 27 06:18:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26246253'] 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 : [('26246253',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26246253) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1379565635: {'path': 'temp/1756268280_3379916_1379565635_091bcb99322d61cc393b67dd333152b8_63952793.jpg', 'extension': 'jpg'}, 1379551460: {'path': 'temp/1756268280_3379916_1379551460_2a35e40fb5eafaa7778e991178c56c0b_67968111.jpg', 'extension': 'jpg'}, 1379551462: {'path': 'temp/1756268280_3379916_1379551462_5c0ae428f297ea4560c2233e7eec9c0f_10860911.jpg', 'extension': 'jpg'}, 1379551932: {'path': 'temp/1756268280_3379916_1379551932_ffdfa89c9a7185cda4c6972d41e6d360_82046190.jpg', 'extension': 'jpg'}, 1379551934: {'path': 'temp/1756268280_3379916_1379551934_98e606c5c909d88c8afa4f6047185a19_99509903.jpg', 'extension': 'jpg'}, 1379551936: {'path': 'temp/1756268280_3379916_1379551936_8ce34c5f1075ebb17ee000595b934054_10982101.jpg', 'extension': 'jpg'}, 1379552132: {'path': 'temp/1756268280_3379916_1379552132_19f01b6b851925eb66d4b9ab3e4a21fe_13991029.jpg', 'extension': 'jpg'}, 1379552133: {'path': 'temp/1756268280_3379916_1379552133_11e5d0e1b352a7ee2cd277173d61b513_59269999.jpg', 'extension': 'jpg'}, 1379552134: {'path': 'temp/1756268280_3379916_1379552134_5643d66f3834fd482bd6733156d5923f_875635.jpg', 'extension': 'jpg'}, 1379553189: {'path': 'temp/1756268280_3379916_1379553189_b2c1ae2473cd20f5181e6cc5c86635d7_12439909.jpg', 'extension': 'jpg'}, 1379551453: {'path': 'temp/1756268280_3379916_1379551453_6bd8e7b8ab5c30b725d997b2f6fbce87_90740610.jpg', 'extension': 'jpg'}, 1379551455: {'path': 'temp/1756268280_3379916_1379551455_edf5760c1b27e3e36820d240efe84487_57491768.jpg', 'extension': 'jpg'}, 1379551457: {'path': 'temp/1756268280_3379916_1379551457_36c219619581efec9e2f58c7adb4b76e_36956171.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 = 26246253; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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 = 26246253 group by h (('23', 13),) 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=26246253 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 (26246253) 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 (26246253) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26082025 26246253 Nombre de photos uploadées : 13 / 23040 (0%) 26082025 26246253 Nombre de photos taguées (types de déchets): 0 / 13 (0%) 26082025 26246253 Nombre de photos taguées (volume) : 0 / 13 (0%) [{'photo_id': 1379551462, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/26/5c0ae428f297ea4560c2233e7eec9c0f_10860911.jpg', 'username': None, 'uploaded_at': 1756242972, 'text': 'image_26082025_23_15_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1379551460, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/26/2a35e40fb5eafaa7778e991178c56c0b_67968111.jpg', 'username': None, 'uploaded_at': 1756242972, 'text': 'image_26082025_23_15_14_010135m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1379551457, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/26/36c219619581efec9e2f58c7adb4b76e_36956171.jpg', 'username': None, 'uploaded_at': 1756242972, 'text': 'image_26082025_23_15_24_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1379551455, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/26/edf5760c1b27e3e36820d240efe84487_57491768.jpg', 'username': None, 'uploaded_at': 1756242972, 'text': 'image_26082025_23_15_34_010148m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008065700531005859 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26246253, '2025-08-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-26' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2174217,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20964360237121582 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= 2174217 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26218438, 'dashboard_result_id': 14339390, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218438_27-08-2025_05_38_10.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26218439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26218440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26218441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26218442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26218443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26218444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26218445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26218446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26218447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26218448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26218449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26218450, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26218950, 'dashboard_result_id': 14339391, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218950_27-08-2025_05_42_16.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26218954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26218955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26218956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26218957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26218958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26218959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26218960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26218961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26218962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26218963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26218964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26218965, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26219900, 'dashboard_result_id': 14339392, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219900_27-08-2025_05_47_43.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26219903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26219904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26219905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26219906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26219907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26219908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26219909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26219910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26219911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26219912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26219913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26219914, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26219967, 'dashboard_result_id': 14339393, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219967_27-08-2025_05_53_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26219973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26219974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26219975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26219976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26219977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26219978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26219979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26219980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26219981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26219982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26219983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26219984, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26220103, 'dashboard_result_id': 14339394, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220103_27-08-2025_05_57_45.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220139, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26220140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220147, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26220824, 'dashboard_result_id': 14339395, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220824_27-08-2025_06_02_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26220830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220841, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26220951, 'dashboard_result_id': 14339396, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220951_27-08-2025_06_07_42.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26220956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220967, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26221110, 'dashboard_result_id': 14339397, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221110_27-08-2025_06_12_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221154, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26221445, 'dashboard_result_id': 14339398, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221445_27-08-2025_06_17_42.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26221450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221461, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26221595, 'dashboard_result_id': 14339399, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221595_26-08-2025_17_17_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221611, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221612, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26221773, 'dashboard_result_id': 14339400, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221773_26-08-2025_17_22_40.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221790, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26221991, 'dashboard_result_id': 14339401, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221991_26-08-2025_17_25_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222015, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26222507, 'dashboard_result_id': 14339402, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222507_26-08-2025_17_32_17.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222520, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26222617, 'dashboard_result_id': 14339403, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222617_26-08-2025_17_36_51.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222632, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26222730, 'dashboard_result_id': 14339404, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222730_26-08-2025_17_42_23.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222746, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26222815, 'dashboard_result_id': 14339405, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222815_26-08-2025_19_12_26.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222835, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26223041, 'dashboard_result_id': 14339406, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223041_26-08-2025_19_27_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26223053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26223054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26223055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26223056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26223057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26223058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26223059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26223060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26223061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26223062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26223063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26223064, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26223181, 'dashboard_result_id': 14339407, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223181_26-08-2025_19_42_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26223193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26223194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26223195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26223196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26223197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26223198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26223199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26223200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26223201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26223202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26223203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26223204, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26223332, 'dashboard_result_id': 14339408, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223332_26-08-2025_19_52_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26223334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26223335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26223336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26223337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26223338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26223339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26223340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26223341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26223342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26223343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26223344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26223345, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26224384, 'dashboard_result_id': 14339409, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26224384_26-08-2025_20_17_08.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26224388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26224389, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26224390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26224391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26224392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26224393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26224394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26224395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26224396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26224397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26224398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26224399, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26224665, 'dashboard_result_id': 14339410, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26224665_26-08-2025_20_36_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26224710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26224711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26224712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26224713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26224714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26224715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26224716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26224717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26224718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26224719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26224720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26224721, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26225626, 'dashboard_result_id': 14339411, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225626_26-08-2025_18_17_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26225642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26225643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26225644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26225645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26225646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26225647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26225648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26225649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26225650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26225651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26225652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26225653, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26225964, 'dashboard_result_id': 14339412, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225964_26-08-2025_20_42_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26225980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26225981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26225982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26225983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26225984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26225985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26225986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26225987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26225988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26225989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26225990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26225991, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26225966, 'dashboard_result_id': 14339413, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225966_26-08-2025_20_52_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26226024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26226025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26226026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26226027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26226028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26226029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26226030, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26226031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26226032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26226033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26226034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26226035, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26226691, 'dashboard_result_id': 14339414, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26226691_26-08-2025_21_02_45.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26226701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26226702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26226703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26226704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26226705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26226706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26226707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26226708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26226709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26226710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26226711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26226712, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26227063, 'dashboard_result_id': 14339415, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227063_26-08-2025_21_22_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26227084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26227085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26227086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26227087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26227088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26227089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26227090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26227091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26227092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26227093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26227094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26227095, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26227418, 'dashboard_result_id': 14339416, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227418_26-08-2025_13_42_43.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26227480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26227481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26227482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26227483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26227484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26227485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26227486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26227487, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26227488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26227489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26227490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26227491, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26227847, 'dashboard_result_id': 14339417, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227847_26-08-2025_13_37_42.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26227869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26227870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26227871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26227872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26227873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26227874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26227875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26227876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26227877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26227878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26227879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26227880, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26228669, 'dashboard_result_id': 14339418, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26228669_27-08-2025_05_53_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26228689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26228690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26228691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26228692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26228693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26228694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26228695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26228696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26228697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26228698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26228699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26228700, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26229111, 'dashboard_result_id': 14339419, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26229111_27-08-2025_05_54_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26229122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26229123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26229124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26229125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26229126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26229127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26229128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26229129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26229130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26229131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26229132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26229133, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26229406, 'dashboard_result_id': 14339420, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26229406_27-08-2025_05_55_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26229445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26229446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26229448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26229449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26229450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26229451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26229452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26229453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26229454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26229455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26229456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26229457, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26230013, 'dashboard_result_id': 14339421, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26230013_27-08-2025_05_56_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26230025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26230026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26230027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26230028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26230029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26230030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26230031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26230032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26230033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26230034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26230035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26230036, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26230264, 'dashboard_result_id': 14339422, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26230264_27-08-2025_05_56_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26230302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26230303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26230304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26230305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26230306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26230307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26230308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26230309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26230310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26230311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26230312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26230313, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26232756, 'dashboard_result_id': 14339423, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26232756_27-08-2025_05_57_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26232757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26232758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26232759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26232760, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26232761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26232762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26232763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26232764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26232765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26232766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26232767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26232768, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26233183, 'dashboard_result_id': 14339424, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233183_27-08-2025_05_57_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26233197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26233198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26233199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26233200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26233201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26233202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26233203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26233204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26233205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26233206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26233207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26233208, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26233295, 'dashboard_result_id': 14339425, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233295_27-08-2025_05_58_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26233314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26233315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26233316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26233317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26233318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26233319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26233320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26233321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26233322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26233323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26233324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26233325, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26233506, 'dashboard_result_id': 14339426, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233506_27-08-2025_05_59_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26233522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26233523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26233524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26233525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26233526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26233527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26233528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26233529, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26233530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26233531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26233532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26233533, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26233741, 'dashboard_result_id': 14339427, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233741_27-08-2025_06_00_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26233748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26233749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26233750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26233751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26233752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26233753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26233754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26233755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26233756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26233757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26233758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26233759, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26233942, 'dashboard_result_id': 14339428, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233942_27-08-2025_06_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26233984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26233985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26233986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26233987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26233988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26233989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26233990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26233991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26233992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26233993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26233994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26233995, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26234173, 'dashboard_result_id': 14339429, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26234173_27-08-2025_06_01_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26234194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26234195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26234196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26234197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26234198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26234199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26234200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26234201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26234202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26234203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26234204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26234205, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26234552, 'dashboard_result_id': 14339430, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26234552_27-08-2025_06_02_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26234578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26234579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26234580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26234581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26234583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26234584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26234585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26234586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26234587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26234588, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26234589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26234590, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26234875, 'dashboard_result_id': 14339431, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26234875_27-08-2025_06_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26234923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26234924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26234925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26234926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26234927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26234928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26234929, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26234930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26234931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26234932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26234933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26234934, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26235395, 'dashboard_result_id': 14339432, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26235395_27-08-2025_06_04_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26235412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26235413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26235414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26235415, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26235416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26235417, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26235418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26235419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26235420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26235421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26235422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26235423, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26235841, 'dashboard_result_id': 14339433, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26235841_27-08-2025_06_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26235870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26235871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26235872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26235873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26235874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26235875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26235876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26235877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26235878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26235879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26235880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26235881, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26236338, 'dashboard_result_id': 14339434, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26236338_27-08-2025_06_05_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26236359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26236360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26236361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26236362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26236363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26236364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26236365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26236366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26236367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26236368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26236369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26236370, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26236770, 'dashboard_result_id': 14339435, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26236770_27-08-2025_06_06_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26236792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26236793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26236794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26236795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26236796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26236797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26236798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26236799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26236800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26236801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26236802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26236803, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26237675, 'dashboard_result_id': 14339436, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26237675_27-08-2025_06_06_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26237716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26237717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26237718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26237719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26237720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26237721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26237722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26237723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26237724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26237725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26237726, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26237727, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26238089, 'dashboard_result_id': 14339437, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26238089_27-08-2025_06_07_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26238099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26238100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26238101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26238102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26238103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26238104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26238105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26238106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26238107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26238108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26238109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26238110, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26238197, 'dashboard_result_id': 14339438, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26238197_27-08-2025_06_08_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26238220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26238221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26238222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26238223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26238224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26238225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26238226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26238227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26238228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26238229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26238230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26238231, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26238551, 'dashboard_result_id': 14339439, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26238551_27-08-2025_06_08_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26238557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26238558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26238559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26238560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26238561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26238562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26238563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26238564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26238565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26238566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26238567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26238568, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26239032, 'dashboard_result_id': 14339440, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26239032_27-08-2025_06_09_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26239083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26239084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26239085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26239086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26239087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26239088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26239089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26239090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26239091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26239092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26239093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26239094, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26239556, 'dashboard_result_id': 14339441, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26239556_27-08-2025_06_10_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26239568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26239569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26239570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26239571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26239572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26239573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26239574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26239575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26239576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26239577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26239578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26239579, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26240143, 'dashboard_result_id': 14339442, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26240143_27-08-2025_06_11_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26240204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26240205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26240206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26240207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26240208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26240209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26240210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26240211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26240212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26240213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26240214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26240215, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26240554, 'dashboard_result_id': 14339443, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26240554_27-08-2025_06_11_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26240583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26240584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26240585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26240586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26240587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26240588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26240589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26240590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26240591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26240592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26240593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26240594, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26240875, 'dashboard_result_id': 14339444, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26240875_27-08-2025_06_12_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26240919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26240920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26240921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26240922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26240923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26240924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26240925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26240926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26240927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26240928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26240929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26240931, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26241374, 'dashboard_result_id': 14339445, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26241374_27-08-2025_06_12_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26241419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26241420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26241421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26241422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26241423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26241424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26241425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26241426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26241427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26241428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26241429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26241430, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26241668, 'dashboard_result_id': 14339446, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26241668_27-08-2025_06_13_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26241696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26241697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26241698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26241699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26241700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26241701, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26241702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26241703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26241704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26241705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26241706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26241707, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26242630, 'dashboard_result_id': 14339447, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26242630_27-08-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26242677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26242678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26242679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26242680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26242681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26242682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26242683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26242684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26242685, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26242686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26242687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26242688, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26243011, 'dashboard_result_id': 14339448, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26243011_27-08-2025_06_14_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26243014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26243015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26243016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26243017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26243018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26243019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26243020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26243021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26243022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26243023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26243024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26243025, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26243305, 'dashboard_result_id': 14339449, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26243305_27-08-2025_06_15_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26243306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26243307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26243308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26243309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26243310, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26243311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26243312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26243313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26243314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26243315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26243316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26243317, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26243679, 'dashboard_result_id': 14339450, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26243679_27-08-2025_06_16_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26243702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26243703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26243704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26243705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26243706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26243707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26243708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26243709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26243710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26243711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26243712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26243713, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26245652, 'dashboard_result_id': 14339451, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26245652_27-08-2025_06_16_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26245657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26245658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26245659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26245660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26245661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26245662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26245663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26245664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26245665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26245666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26245667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26245668, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26245879, 'dashboard_result_id': 14339452, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26245879_27-08-2025_06_17_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26245900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26245901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26245902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26245903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26245904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26245905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26245906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26245907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26245908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26245909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26245910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26245911, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2189085, 'mtr_portfolio_id': 26246253, 'dashboard_result_id': 14339453, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26246253_27-08-2025_02_50_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26246269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26246270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26246271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26246272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26246273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26246274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26246275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26246276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26246277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26246278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26246279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26246280, '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 = 26218438 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608235, 'mtr_portfolio_id': 26218438, 'created_at': datetime.datetime(2025, 8, 27, 5, 34, 30), 'result': '0.6016560962419207', 'result_long': None, 'result_double': None}] Qualite : 0.6016560962419207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26218438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218438_27-08-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26218438 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218438_27-08-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26218439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26218440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26218441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26218442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26218443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26218444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26218445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26218446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26218447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26218448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26218449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26218450, 'pht': 3726}}" where mtr_portfolio_id = 26218438 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26218438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339390, 0.6016560962419207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218438_27-08-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26218439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26218440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26218441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26218442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26218443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26218444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26218445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26218446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26218447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26218448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26218449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26218450, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26218950 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608237, 'mtr_portfolio_id': 26218950, 'created_at': datetime.datetime(2025, 8, 27, 5, 35, 29), 'result': '0.21760363156191392', 'result_long': None, 'result_double': None}] Qualite : 0.21760363156191392 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26218950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218950_27-08-2025_05_35_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26218950 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218950_27-08-2025_05_35_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26218954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26218955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26218956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26218957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26218958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26218959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26218960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26218961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26218962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26218963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26218964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26218965, 'pht': 3726}}" where mtr_portfolio_id = 26218950 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26218950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339391, 0.21760363156191392, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218950_27-08-2025_05_35_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26218954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26218955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26218956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26218957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26218958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26218959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26218960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26218961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26218962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26218963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26218964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26218965, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26219900 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608239, 'mtr_portfolio_id': 26219900, 'created_at': datetime.datetime(2025, 8, 27, 5, 36), 'result': '0.517183338999927', 'result_long': None, 'result_double': None}] Qualite : 0.517183338999927 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26219900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219900_27-08-2025_05_36_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26219900 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219900_27-08-2025_05_36_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26219903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26219904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26219905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26219906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26219907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26219908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26219909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26219910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26219911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26219912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26219913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26219914, 'pht': 3726}}" where mtr_portfolio_id = 26219900 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26219900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339392, 0.517183338999927, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219900_27-08-2025_05_36_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26219903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26219904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26219905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26219906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26219907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26219908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26219909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26219910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26219911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26219912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26219913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26219914, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26219967 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608241, 'mtr_portfolio_id': 26219967, 'created_at': datetime.datetime(2025, 8, 27, 5, 36, 27), 'result': '0.4114008851919929', 'result_long': None, 'result_double': None}] Qualite : 0.4114008851919929 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26219967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219967_27-08-2025_05_36_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26219967 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219967_27-08-2025_05_36_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26219973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26219974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26219975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26219976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26219977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26219978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26219979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26219980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26219981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26219982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26219983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26219984, 'pht': 3726}}" where mtr_portfolio_id = 26219967 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26219967 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339393, 0.4114008851919929, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219967_27-08-2025_05_36_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26219973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26219974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26219975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26219976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26219977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26219978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26219979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26219980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26219981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26219982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26219983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26219984, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220103 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608243, 'mtr_portfolio_id': 26220103, 'created_at': datetime.datetime(2025, 8, 27, 5, 37, 28), 'result': '0.4583006977277458', 'result_long': None, 'result_double': None}] Qualite : 0.4583006977277458 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26220103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220103_27-08-2025_05_37_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26220103 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220103_27-08-2025_05_37_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220139, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26220140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220147, 'pht': 3726}}" where mtr_portfolio_id = 26220103 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26220103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339394, 0.4583006977277458, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220103_27-08-2025_05_37_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220139, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26220140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220147, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220824 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608245, 'mtr_portfolio_id': 26220824, 'created_at': datetime.datetime(2025, 8, 27, 5, 37, 59), 'result': '0.16570742467521155', 'result_long': None, 'result_double': None}] Qualite : 0.16570742467521155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26220824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220824_27-08-2025_05_37_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26220824 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220824_27-08-2025_05_37_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26220830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220841, 'pht': 3726}}" where mtr_portfolio_id = 26220824 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26220824 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339395, 0.16570742467521155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220824_27-08-2025_05_37_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26220830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220841, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220951 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608247, 'mtr_portfolio_id': 26220951, 'created_at': datetime.datetime(2025, 8, 27, 5, 38, 28), 'result': '0.43307033993578664', 'result_long': None, 'result_double': None}] Qualite : 0.43307033993578664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26220951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220951_27-08-2025_05_38_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26220951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220951_27-08-2025_05_38_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26220956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220967, 'pht': 3726}}" where mtr_portfolio_id = 26220951 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26220951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339396, 0.43307033993578664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220951_27-08-2025_05_38_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26220956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220967, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221110 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608249, 'mtr_portfolio_id': 26221110, 'created_at': datetime.datetime(2025, 8, 27, 5, 39, 28), 'result': '0.5540396935807719', 'result_long': None, 'result_double': None}] Qualite : 0.5540396935807719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26221110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221110_27-08-2025_05_39_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26221110 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221110_27-08-2025_05_39_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221154, 'pht': 3726}}" where mtr_portfolio_id = 26221110 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26221110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339397, 0.5540396935807719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221110_27-08-2025_05_39_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221154, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221445 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608251, 'mtr_portfolio_id': 26221445, 'created_at': datetime.datetime(2025, 8, 27, 5, 39, 58), 'result': '0.5382691496786769', 'result_long': None, 'result_double': None}] Qualite : 0.5382691496786769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26221445 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221445_27-08-2025_05_39_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26221445 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221445_27-08-2025_05_39_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26221450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221461, 'pht': 3726}}" where mtr_portfolio_id = 26221445 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26221445 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339398, 0.5382691496786769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221445_27-08-2025_05_39_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26221450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221461, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221595 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608253, 'mtr_portfolio_id': 26221595, 'created_at': datetime.datetime(2025, 8, 27, 5, 41, 1), 'result': '0.3015001889506959', 'result_long': None, 'result_double': None}] Qualite : 0.3015001889506959 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26221595 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221595_27-08-2025_05_41_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26221595 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221595_27-08-2025_05_41_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221611, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221612, 'pht': 3726}}" where mtr_portfolio_id = 26221595 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26221595 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339399, 0.3015001889506959, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221595_27-08-2025_05_41_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221611, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221612, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221773 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608255, 'mtr_portfolio_id': 26221773, 'created_at': datetime.datetime(2025, 8, 27, 5, 41, 29), 'result': '0.4431411914996986', 'result_long': None, 'result_double': None}] Qualite : 0.4431411914996986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26221773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221773_27-08-2025_05_41_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26221773 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221773_27-08-2025_05_41_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221790, 'pht': 3726}}" where mtr_portfolio_id = 26221773 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26221773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339400, 0.4431411914996986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221773_27-08-2025_05_41_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221790, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221991 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221991 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26221991 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221991 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221991 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608257, 'mtr_portfolio_id': 26221991, 'created_at': datetime.datetime(2025, 8, 27, 5, 42), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26221991 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221991_27-08-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26221991 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221991_27-08-2025_05_42_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222015, 'pht': 3726}}" where mtr_portfolio_id = 26221991 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26221991 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339401, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221991_27-08-2025_05_42_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222015, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222507 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608259, 'mtr_portfolio_id': 26222507, 'created_at': datetime.datetime(2025, 8, 27, 5, 42, 30), 'result': '0.5918237785826872', 'result_long': None, 'result_double': None}] Qualite : 0.5918237785826872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26222507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222507_27-08-2025_05_42_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26222507 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222507_27-08-2025_05_42_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222520, 'pht': 3726}}" where mtr_portfolio_id = 26222507 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26222507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339402, 0.5918237785826872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222507_27-08-2025_05_42_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222520, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222617 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608261, 'mtr_portfolio_id': 26222617, 'created_at': datetime.datetime(2025, 8, 27, 5, 43, 29), 'result': '0.2892118105982867', 'result_long': None, 'result_double': None}] Qualite : 0.2892118105982867 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26222617 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222617_27-08-2025_05_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26222617 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222617_27-08-2025_05_43_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222632, 'pht': 3726}}" where mtr_portfolio_id = 26222617 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26222617 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339403, 0.2892118105982867, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222617_27-08-2025_05_43_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222632, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222730 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608263, 'mtr_portfolio_id': 26222730, 'created_at': datetime.datetime(2025, 8, 27, 5, 43, 59), 'result': '0.2715030881437886', 'result_long': None, 'result_double': None}] Qualite : 0.2715030881437886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26222730 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222730_27-08-2025_05_44_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26222730 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222730_27-08-2025_05_44_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222746, 'pht': 3726}}" where mtr_portfolio_id = 26222730 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26222730 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339404, 0.2715030881437886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222730_27-08-2025_05_44_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222746, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222815 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608265, 'mtr_portfolio_id': 26222815, 'created_at': datetime.datetime(2025, 8, 27, 5, 44, 58), 'result': '0.2978838563666507', 'result_long': None, 'result_double': None}] Qualite : 0.2978838563666507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26222815 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222815_27-08-2025_05_45_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26222815 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222815_27-08-2025_05_45_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222835, 'pht': 3726}}" where mtr_portfolio_id = 26222815 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26222815 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339405, 0.2978838563666507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222815_27-08-2025_05_45_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222835, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26223041 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608267, 'mtr_portfolio_id': 26223041, 'created_at': datetime.datetime(2025, 8, 27, 5, 45, 28), 'result': '0.3839509071282369', 'result_long': None, 'result_double': None}] Qualite : 0.3839509071282369 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26223041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223041_27-08-2025_05_45_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26223041 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223041_27-08-2025_05_45_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26223053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26223054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26223055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26223056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26223057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26223058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26223059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26223060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26223061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26223062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26223063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26223064, 'pht': 3726}}" where mtr_portfolio_id = 26223041 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26223041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339406, 0.3839509071282369, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223041_27-08-2025_05_45_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26223053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26223054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26223055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26223056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26223057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26223058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26223059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26223060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26223061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26223062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26223063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26223064, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26223181 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608269, 'mtr_portfolio_id': 26223181, 'created_at': datetime.datetime(2025, 8, 27, 5, 45, 59), 'result': '0.3921089596722168', 'result_long': None, 'result_double': None}] Qualite : 0.3921089596722168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26223181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223181_27-08-2025_05_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26223181 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223181_27-08-2025_05_46_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26223193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26223194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26223195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26223196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26223197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26223198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26223199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26223200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26223201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26223202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26223203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26223204, 'pht': 3726}}" where mtr_portfolio_id = 26223181 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26223181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339407, 0.3921089596722168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223181_27-08-2025_05_46_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26223193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26223194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26223195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26223196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26223197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26223198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26223199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26223200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26223201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26223202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26223203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26223204, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26223332 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608271, 'mtr_portfolio_id': 26223332, 'created_at': datetime.datetime(2025, 8, 27, 5, 46, 30), 'result': '0.34531633266307377', 'result_long': None, 'result_double': None}] Qualite : 0.34531633266307377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26223332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223332_27-08-2025_05_46_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26223332 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223332_27-08-2025_05_46_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26223334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26223335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26223336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26223337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26223338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26223339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26223340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26223341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26223342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26223343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26223344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26223345, 'pht': 3726}}" where mtr_portfolio_id = 26223332 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26223332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339408, 0.34531633266307377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223332_27-08-2025_05_46_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26223334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26223335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26223336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26223337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26223338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26223339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26223340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26223341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26223342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26223343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26223344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26223345, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26224384 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608273, 'mtr_portfolio_id': 26224384, 'created_at': datetime.datetime(2025, 8, 27, 5, 48), 'result': '0.45256466102902143', 'result_long': None, 'result_double': None}] Qualite : 0.45256466102902143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26224384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26224384_27-08-2025_05_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26224384 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26224384_27-08-2025_05_48_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26224388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26224389, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26224390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26224391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26224392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26224393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26224394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26224395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26224396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26224397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26224398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26224399, 'pht': 3726}}" where mtr_portfolio_id = 26224384 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26224384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339409, 0.45256466102902143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26224384_27-08-2025_05_48_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26224388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26224389, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26224390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26224391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26224392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26224393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26224394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26224395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26224396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26224397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26224398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26224399, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26224665 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608275, 'mtr_portfolio_id': 26224665, 'created_at': datetime.datetime(2025, 8, 27, 5, 48, 30), 'result': '0.4625986066017756', 'result_long': None, 'result_double': None}] Qualite : 0.4625986066017756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26224665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26224665_27-08-2025_05_48_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26224665 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26224665_27-08-2025_05_48_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26224710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26224711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26224712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26224713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26224714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26224715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26224716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26224717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26224718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26224719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26224720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26224721, 'pht': 3726}}" where mtr_portfolio_id = 26224665 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26224665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339410, 0.4625986066017756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26224665_27-08-2025_05_48_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26224710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26224711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26224712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26224713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26224714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26224715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26224716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26224717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26224718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26224719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26224720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26224721, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26225626 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608277, 'mtr_portfolio_id': 26225626, 'created_at': datetime.datetime(2025, 8, 27, 5, 49, 27), 'result': '0.3604361218042845', 'result_long': None, 'result_double': None}] Qualite : 0.3604361218042845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26225626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225626_27-08-2025_05_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26225626 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225626_27-08-2025_05_49_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26225642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26225643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26225644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26225645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26225646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26225647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26225648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26225649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26225650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26225651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26225652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26225653, 'pht': 3726}}" where mtr_portfolio_id = 26225626 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26225626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339411, 0.3604361218042845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225626_27-08-2025_05_49_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26225642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26225643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26225644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26225645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26225646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26225647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26225648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26225649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26225650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26225651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26225652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26225653, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26225964 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608279, 'mtr_portfolio_id': 26225964, 'created_at': datetime.datetime(2025, 8, 27, 5, 49, 59), 'result': '0.4194912112352062', 'result_long': None, 'result_double': None}] Qualite : 0.4194912112352062 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26225964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225964_27-08-2025_05_50_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26225964 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225964_27-08-2025_05_50_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26225980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26225981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26225982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26225983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26225984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26225985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26225986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26225987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26225988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26225989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26225990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26225991, 'pht': 3726}}" where mtr_portfolio_id = 26225964 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26225964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339412, 0.4194912112352062, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225964_27-08-2025_05_50_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26225980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26225981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26225982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26225983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26225984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26225985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26225986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26225987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26225988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26225989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26225990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26225991, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26225966 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608281, 'mtr_portfolio_id': 26225966, 'created_at': datetime.datetime(2025, 8, 27, 5, 50, 31), 'result': '0.5911614178400456', 'result_long': None, 'result_double': None}] Qualite : 0.5911614178400456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26225966 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225966_27-08-2025_05_50_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26225966 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225966_27-08-2025_05_50_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26226024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26226025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26226026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26226027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26226028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26226029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26226030, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26226031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26226032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26226033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26226034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26226035, 'pht': 3726}}" where mtr_portfolio_id = 26225966 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26225966 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339413, 0.5911614178400456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26225966_27-08-2025_05_50_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26226024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26226025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26226026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26226027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26226028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26226029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26226030, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26226031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26226032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26226033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26226034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26226035, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26226691 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608283, 'mtr_portfolio_id': 26226691, 'created_at': datetime.datetime(2025, 8, 27, 5, 51, 30), 'result': '0.45975536054352234', 'result_long': None, 'result_double': None}] Qualite : 0.45975536054352234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26226691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26226691_27-08-2025_05_51_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26226691 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26226691_27-08-2025_05_51_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26226701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26226702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26226703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26226704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26226705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26226706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26226707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26226708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26226709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26226710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26226711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26226712, 'pht': 3726}}" where mtr_portfolio_id = 26226691 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26226691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339414, 0.45975536054352234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26226691_27-08-2025_05_51_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26226701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26226702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26226703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26226704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26226705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26226706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26226707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26226708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26226709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26226710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26226711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26226712, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26227063 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608285, 'mtr_portfolio_id': 26227063, 'created_at': datetime.datetime(2025, 8, 27, 5, 51, 57), 'result': '0.44090158347157277', 'result_long': None, 'result_double': None}] Qualite : 0.44090158347157277 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26227063 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227063_27-08-2025_05_52_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26227063 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227063_27-08-2025_05_52_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26227084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26227085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26227086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26227087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26227088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26227089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26227090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26227091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26227092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26227093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26227094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26227095, 'pht': 3726}}" where mtr_portfolio_id = 26227063 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26227063 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339415, 0.44090158347157277, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227063_27-08-2025_05_52_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26227084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26227085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26227086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26227087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26227088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26227089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26227090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26227091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26227092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26227093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26227094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26227095, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26227418 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608287, 'mtr_portfolio_id': 26227418, 'created_at': datetime.datetime(2025, 8, 27, 5, 52, 30), 'result': '0.4926317802808382', 'result_long': None, 'result_double': None}] Qualite : 0.4926317802808382 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26227418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227418_27-08-2025_05_52_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26227418 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227418_27-08-2025_05_52_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26227480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26227481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26227482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26227483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26227484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26227485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26227486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26227487, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26227488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26227489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26227490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26227491, 'pht': 3726}}" where mtr_portfolio_id = 26227418 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26227418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339416, 0.4926317802808382, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227418_27-08-2025_05_52_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26227480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26227481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26227482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26227483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26227484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26227485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26227486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26227487, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26227488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26227489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26227490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26227491, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26227847 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608289, 'mtr_portfolio_id': 26227847, 'created_at': datetime.datetime(2025, 8, 27, 5, 53, 28), 'result': '0.34878906515120234', 'result_long': None, 'result_double': None}] Qualite : 0.34878906515120234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26227847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227847_27-08-2025_05_53_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26227847 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227847_27-08-2025_05_53_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26227869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26227870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26227871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26227872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26227873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26227874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26227875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26227876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26227877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26227878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26227879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26227880, 'pht': 3726}}" where mtr_portfolio_id = 26227847 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26227847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339417, 0.34878906515120234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26227847_27-08-2025_05_53_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26227869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26227870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26227871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26227872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26227873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26227874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26227875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26227876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26227877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26227878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26227879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26227880, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26228669 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26228669 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26228669 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26228669 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26228669 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26228669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26228669_27-08-2025_05_53_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26228669 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26228669_27-08-2025_05_53_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26228689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26228690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26228691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26228692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26228693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26228694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26228695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26228696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26228697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26228698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26228699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26228700, 'pht': 3726}}" where mtr_portfolio_id = 26228669 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26229111 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26229111 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26229111 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26229111 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26229111 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26229111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26229111_27-08-2025_05_54_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26229111 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26229111_27-08-2025_05_54_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26229122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26229123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26229124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26229125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26229126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26229127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26229128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26229129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26229130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26229131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26229132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26229133, 'pht': 3726}}" where mtr_portfolio_id = 26229111 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26229406 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26229406 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26229406 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26229406 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26229406 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26229406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26229406_27-08-2025_05_55_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26229406 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26229406_27-08-2025_05_55_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26229445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26229446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26229448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26229449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26229450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26229451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26229452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26229453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26229454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26229455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26229456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26229457, 'pht': 3726}}" where mtr_portfolio_id = 26229406 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26230013 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26230013 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26230013 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26230013 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26230013 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26230013 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26230013_27-08-2025_05_56_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26230013 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26230013_27-08-2025_05_56_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26230025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26230026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26230027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26230028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26230029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26230030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26230031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26230032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26230033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26230034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26230035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26230036, 'pht': 3726}}" where mtr_portfolio_id = 26230013 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26230264 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26230264 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26230264 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26230264 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26230264 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26230264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26230264_27-08-2025_05_56_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26230264 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26230264_27-08-2025_05_56_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26230302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26230303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26230304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26230305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26230306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26230307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26230308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26230309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26230310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26230311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26230312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26230313, 'pht': 3726}}" where mtr_portfolio_id = 26230264 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26232756 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26232756 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26232756 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26232756 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26232756 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26232756 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26232756_27-08-2025_05_57_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26232756 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26232756_27-08-2025_05_57_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26232757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26232758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26232759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26232760, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26232761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26232762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26232763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26232764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26232765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26232766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26232767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26232768, 'pht': 3726}}" where mtr_portfolio_id = 26232756 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233183 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233183 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26233183 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233183 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233183 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26233183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233183_27-08-2025_05_57_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26233183 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233183_27-08-2025_05_57_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26233197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26233198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26233199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26233200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26233201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26233202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26233203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26233204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26233205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26233206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26233207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26233208, 'pht': 3726}}" where mtr_portfolio_id = 26233183 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233295 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233295 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26233295 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233295 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233295 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26233295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233295_27-08-2025_05_58_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26233295 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233295_27-08-2025_05_58_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26233314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26233315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26233316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26233317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26233318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26233319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26233320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26233321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26233322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26233323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26233324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26233325, 'pht': 3726}}" where mtr_portfolio_id = 26233295 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233506 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233506 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26233506 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233506 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233506 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26233506 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233506_27-08-2025_05_59_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26233506 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233506_27-08-2025_05_59_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26233522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26233523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26233524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26233525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26233526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26233527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26233528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26233529, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26233530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26233531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26233532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26233533, 'pht': 3726}}" where mtr_portfolio_id = 26233506 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233741 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233741 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26233741 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233741 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233741 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26233741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233741_27-08-2025_06_00_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26233741 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233741_27-08-2025_06_00_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26233748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26233749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26233750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26233751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26233752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26233753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26233754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26233755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26233756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26233757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26233758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26233759, 'pht': 3726}}" where mtr_portfolio_id = 26233741 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233942 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233942 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26233942 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233942 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26233942 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26233942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233942_27-08-2025_06_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26233942 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26233942_27-08-2025_06_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26233984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26233985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26233986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26233987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26233988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26233989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26233990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26233991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26233992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26233993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26233994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26233995, 'pht': 3726}}" where mtr_portfolio_id = 26233942 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234173 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234173 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26234173 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234173 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234173 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26234173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26234173_27-08-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26234173 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26234173_27-08-2025_06_01_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26234194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26234195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26234196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26234197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26234198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26234199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26234200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26234201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26234202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26234203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26234204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26234205, 'pht': 3726}}" where mtr_portfolio_id = 26234173 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234552 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234552 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26234552 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234552 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234552 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26234552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26234552_27-08-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26234552 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26234552_27-08-2025_06_02_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26234578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26234579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26234580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26234581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26234583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26234584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26234585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26234586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26234587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26234588, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26234589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26234590, 'pht': 3726}}" where mtr_portfolio_id = 26234552 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234875 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234875 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26234875 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234875 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26234875 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26234875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26234875_27-08-2025_06_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26234875 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26234875_27-08-2025_06_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26234923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26234924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26234925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26234926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26234927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26234928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26234929, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26234930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26234931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26234932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26234933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26234934, 'pht': 3726}}" where mtr_portfolio_id = 26234875 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26235395 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26235395 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26235395 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26235395 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26235395 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26235395 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26235395_27-08-2025_06_04_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26235395 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26235395_27-08-2025_06_04_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26235412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26235413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26235414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26235415, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26235416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26235417, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26235418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26235419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26235420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26235421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26235422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26235423, 'pht': 3726}}" where mtr_portfolio_id = 26235395 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26235841 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26235841 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26235841 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26235841 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26235841 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26235841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26235841_27-08-2025_06_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26235841 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26235841_27-08-2025_06_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26235870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26235871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26235872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26235873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26235874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26235875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26235876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26235877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26235878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26235879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26235880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26235881, 'pht': 3726}}" where mtr_portfolio_id = 26235841 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26236338 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26236338 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26236338 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26236338 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26236338 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26236338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26236338_27-08-2025_06_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26236338 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26236338_27-08-2025_06_05_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26236359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26236360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26236361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26236362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26236363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26236364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26236365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26236366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26236367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26236368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26236369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26236370, 'pht': 3726}}" where mtr_portfolio_id = 26236338 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26236770 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26236770 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26236770 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26236770 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26236770 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26236770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26236770_27-08-2025_06_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26236770 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26236770_27-08-2025_06_06_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26236792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26236793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26236794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26236795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26236796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26236797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26236798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26236799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26236800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26236801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26236802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26236803, 'pht': 3726}}" where mtr_portfolio_id = 26236770 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26237675 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26237675 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26237675 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26237675 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26237675 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26237675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26237675_27-08-2025_06_06_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26237675 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26237675_27-08-2025_06_06_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26237716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26237717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26237718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26237719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26237720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26237721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26237722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26237723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26237724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26237725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26237726, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26237727, 'pht': 3726}}" where mtr_portfolio_id = 26237675 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238089 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238089 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26238089 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238089 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238089 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26238089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26238089_27-08-2025_06_07_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26238089 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26238089_27-08-2025_06_07_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26238099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26238100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26238101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26238102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26238103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26238104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26238105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26238106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26238107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26238108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26238109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26238110, 'pht': 3726}}" where mtr_portfolio_id = 26238089 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238197 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238197 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26238197 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238197 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238197 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26238197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26238197_27-08-2025_06_08_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26238197 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26238197_27-08-2025_06_08_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26238220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26238221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26238222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26238223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26238224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26238225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26238226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26238227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26238228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26238229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26238230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26238231, 'pht': 3726}}" where mtr_portfolio_id = 26238197 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238551 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238551 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26238551 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238551 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26238551 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26238551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26238551_27-08-2025_06_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26238551 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26238551_27-08-2025_06_08_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26238557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26238558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26238559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26238560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26238561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26238562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26238563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26238564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26238565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26238566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26238567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26238568, 'pht': 3726}}" where mtr_portfolio_id = 26238551 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26239032 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26239032 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26239032 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26239032 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26239032 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26239032 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26239032_27-08-2025_06_09_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26239032 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26239032_27-08-2025_06_09_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26239083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26239084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26239085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26239086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26239087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26239088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26239089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26239090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26239091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26239092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26239093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26239094, 'pht': 3726}}" where mtr_portfolio_id = 26239032 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26239556 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26239556 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26239556 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26239556 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26239556 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26239556 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26239556_27-08-2025_06_10_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26239556 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26239556_27-08-2025_06_10_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26239568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26239569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26239570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26239571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26239572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26239573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26239574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26239575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26239576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26239577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26239578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26239579, 'pht': 3726}}" where mtr_portfolio_id = 26239556 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240143 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240143 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26240143 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240143 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240143 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26240143 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26240143_27-08-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26240143 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26240143_27-08-2025_06_11_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26240204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26240205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26240206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26240207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26240208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26240209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26240210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26240211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26240212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26240213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26240214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26240215, 'pht': 3726}}" where mtr_portfolio_id = 26240143 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240554 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240554 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26240554 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240554 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240554 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26240554 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26240554_27-08-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26240554 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26240554_27-08-2025_06_11_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26240583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26240584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26240585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26240586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26240587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26240588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26240589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26240590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26240591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26240592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26240593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26240594, 'pht': 3726}}" where mtr_portfolio_id = 26240554 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240875 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240875 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26240875 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240875 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26240875 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26240875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26240875_27-08-2025_06_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26240875 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26240875_27-08-2025_06_12_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26240919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26240920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26240921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26240922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26240923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26240924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26240925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26240926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26240927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26240928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26240929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26240931, 'pht': 3726}}" where mtr_portfolio_id = 26240875 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26241374 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26241374 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26241374 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26241374 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26241374 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26241374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26241374_27-08-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26241374 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26241374_27-08-2025_06_12_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26241419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26241420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26241421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26241422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26241423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26241424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26241425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26241426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26241427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26241428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26241429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26241430, 'pht': 3726}}" where mtr_portfolio_id = 26241374 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26241668 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26241668 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26241668 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26241668 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26241668 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26241668 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26241668_27-08-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26241668 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26241668_27-08-2025_06_13_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26241696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26241697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26241698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26241699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26241700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26241701, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26241702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26241703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26241704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26241705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26241706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26241707, 'pht': 3726}}" where mtr_portfolio_id = 26241668 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26242630 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26242630 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26242630 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26242630 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26242630 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26242630 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26242630_27-08-2025_06_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26242630 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26242630_27-08-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26242677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26242678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26242679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26242680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26242681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26242682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26242683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26242684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26242685, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26242686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26242687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26242688, 'pht': 3726}}" where mtr_portfolio_id = 26242630 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243011 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243011 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26243011 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243011 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243011 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26243011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26243011_27-08-2025_06_14_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26243011 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26243011_27-08-2025_06_14_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26243014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26243015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26243016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26243017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26243018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26243019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26243020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26243021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26243022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26243023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26243024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26243025, 'pht': 3726}}" where mtr_portfolio_id = 26243011 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243305 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243305 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26243305 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243305 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243305 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26243305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26243305_27-08-2025_06_15_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26243305 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26243305_27-08-2025_06_15_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26243306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26243307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26243308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26243309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26243310, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26243311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26243312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26243313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26243314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26243315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26243316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26243317, 'pht': 3726}}" where mtr_portfolio_id = 26243305 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243679 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243679 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26243679 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243679 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26243679 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26243679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26243679_27-08-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26243679 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26243679_27-08-2025_06_16_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26243702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26243703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26243704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26243705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26243706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26243707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26243708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26243709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26243710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26243711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26243712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26243713, 'pht': 3726}}" where mtr_portfolio_id = 26243679 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26245652 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26245652 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26245652 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26245652 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26245652 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26245652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26245652_27-08-2025_06_16_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26245652 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26245652_27-08-2025_06_16_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26245657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26245658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26245659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26245660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26245661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26245662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26245663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26245664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26245665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26245666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26245667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26245668, 'pht': 3726}}" where mtr_portfolio_id = 26245652 and dashboard_run_id = 2189085 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26245879 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608326, 'mtr_portfolio_id': 26245879, 'created_at': datetime.datetime(2025, 8, 27, 6, 17, 29), 'result': '0.041136062878178205', 'result_long': None, 'result_double': None}] Qualite : 0.041136062878178205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26245879 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26245879_27-08-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26245879 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26245879_27-08-2025_06_17_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26245900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26245901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26245902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26245903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26245904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26245905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26245906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26245907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26245908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26245909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26245910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26245911, 'pht': 3726}}" where mtr_portfolio_id = 26245879 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26245879 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339452, 0.041136062878178205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26245879_27-08-2025_06_17_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26245900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26245901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26245902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26245903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26245904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26245905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26245906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26245907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26245908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26245909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26245910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26245911, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26246253 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3608327, 'mtr_portfolio_id': 26246253, 'created_at': datetime.datetime(2025, 8, 27, 6, 18), 'result': '0.029003651960529044', 'result_long': None, 'result_double': None}] Qualite : 0.029003651960529044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26246253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26246253_27-08-2025_06_18_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26246253 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26246253_27-08-2025_06_18_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26246269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26246270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26246271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26246272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26246273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26246274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26246275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26246276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26246277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26246278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26246279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26246280, 'pht': 3726}}" where mtr_portfolio_id = 26246253 and dashboard_run_id = 2189085 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26246253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14339453, 0.029003651960529044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26246253_27-08-2025_06_18_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26246269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26246270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26246271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26246272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26246273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26246274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26246275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26246276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26246277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26246278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26246279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26246280, '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 (26218438,26218950,26219900,26219967,26220103,26220824,26220951,26221110,26221445,26221595,26221773,26221991,26222507,26222617,26222730,26222815,26223041,26223181,26223332,26224384,26224665,26225626,26225964,26225966,26226691,26227063,26227418,26227847,26228669,26229111,26229406,26230013,26230264,26232756,26233183,26233295,26233506,26233741,26233942,26234173,26234552,26234875,26235395,26235841,26236338,26236770,26237675,26238089,26238197,26238551,26239032,26239556,26240143,26240554,26240875,26241374,26241668,26242630,26243011,26243305,26243679,26245652,26245879,26246253) result : ((1379342854,), (1379342855,), (1379342870,), (1379342957,), (1379342959,), (1379344937,), (1379344940,), (1379345298,), (1379346354,), (1379347089,), (1379347411,), (1379347710,), (1379347711,), (1379347794,), (1379347795,), (1379347900,), (1379347958,), (1379348092,), (1379348173,), (1379352067,), (1379352068,), (1379352103,), (1379352125,), (1379352140,), (1379352141,), (1379352163,), (1379352164,), (1379352188,), (1379352210,), (1379352262,), (1379352319,), (1379352346,), (1379352347,), (1379352389,), (1379352387,), (1379352388,), (1379352440,), (1379352464,), (1379352600,), (1379352601,), (1379352602,), (1379352623,), (1379352648,), (1379352681,), (1379352682,), (1379352820,), (1379352821,), (1379352882,), (1379352884,), (1379352896,), (1379352897,), (1379352942,), (1379352941,), (1379353283,), (1379353284,), (1379353719,), (1379355085,), (1379355086,), (1379355111,), (1379355112,), (1379355127,), (1379355128,), (1379355280,), (1379355339,), (1379355340,), (1379355341,), (1379355383,), (1379355957,), (1379355998,), (1379356022,), (1379356109,), (1379356110,), (1379356130,), (1379356151,), (1379356196,), (1379356214,), (1379356278,), (1379356320,), (1379356379,), (1379356441,), (1379356442,), (1379356460,), (1379356461,), (1379356531,), (1379356532,), (1379356563,), (1379356564,), (1379356605,), (1379356990,), (1379356992,), (1379356994,), (1379358160,), (1379358553,), (1379358733,), (1379358735,), (1379358780,), (1379358781,), (1379358782,), (1379358783,), (1379358838,), (1379358911,), (1379358961,), (1379358960,), (1379358977,), (1379358978,), (1379359030,), (1379359052,), (1379359053,), (1379359115,), (1379359173,), (1379359174,), (1379359193,), (1379359194,), (1379359281,), (1379359342,), (1379359341,), (1379359383,), (1379359384,), (1379359429,), (1379359458,), (1379359493,), (1379359535,), (1379359576,), (1379359623,), (1379359624,), (1379359625,), (1379359689,), (1379359690,), (1379359720,), (1379359738,), (1379359776,), (1379359777,), (1379359836,), (1379359920,), (1379359940,), (1379359963,), (1379359983,), (1379359995,), (1379360559,), (1379360560,), (1379360568,), (1379361235,), (1379361233,), (1379361385,), (1379361668,), (1379361670,), (1379362176,), (1379362177,), (1379362236,), (1379362237,), (1379364945,), (1379365529,), (1379365730,), (1379365731,), (1379365751,), (1379365758,), (1379365759,), (1379365760,), (1379365812,), (1379365813,), (1379365814,), (1379365815,), (1379366262,), (1379365996,), (1379366284,), (1379366290,), (1379366291,), (1379366317,), (1379366371,), (1379366372,), (1379366373,), (1379367051,), (1379367191,), (1379367192,), (1379367252,), (1379367254,), (1379367257,), (1379367259,), (1379367261,), (1379367263,), (1379367653,), (1379367655,), (1379367657,), (1379367659,), (1379367838,), (1379367839,), (1379368118,), (1379368114,), (1379368116,), (1379368380,), (1379368381,), (1379368382,), (1379368383,), (1379368462,), (1379368463,), (1379368464,), (1379368465,), (1379368553,), (1379368555,), (1379368557,), (1379368559,), (1379368561,), (1379368918,), (1379368920,), (1379368923,), (1379368925,), (1379368927,), (1379369168,), (1379369170,), (1379369172,), (1379369174,), (1379369176,), (1379369178,), (1379369262,), (1379369263,), (1379369264,), (1379369266,), (1379369267,), (1379369268,), (1379369292,), (1379369294,), (1379369296,), (1379369298,), (1379369334,), (1379369335,), (1379369336,), (1379369337,), (1379369338,), (1379369339,), (1379369341,), (1379369342,), (1379369344,), (1379369357,), (1379369358,), (1379369386,), (1379369387,), (1379369388,), (1379369389,), (1379369390,), (1379369409,), (1379369410,), (1379369411,), (1379369412,), (1379369413,), (1379369414,), (1379369477,), (1379369478,), (1379369479,), (1379369480,), (1379369481,), (1379369502,), (1379369503,), (1379369504,), (1379369505,), (1379369506,), (1379369530,), (1379369532,), (1379369533,), (1379369534,), (1379369535,), (1379369557,), (1379369604,), (1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,), (1379369668,), (1379369669,), (1379369670,), (1379369671,), (1379369672,), (1379369702,), (1379369703,), (1379369704,), (1379369724,), (1379369725,), (1379369726,), (1379369727,), (1379369754,), (1379369755,), (1379369756,), (1379369757,), (1379369758,), (1379369759,), (1379369805,), (1379369806,), (1379369807,), (1379369808,), (1379369833,), (1379369834,), (1379369835,), (1379369836,), (1379369837,), (1379369838,), (1379369861,), (1379369862,), (1379369863,), (1379369864,), (1379369865,), (1379369892,), (1379369893,), (1379369894,), (1379369895,), (1379369917,), (1379369918,), (1379369919,), (1379369920,), (1379369921,), (1379369922,), (1379369926,), (1379369929,), (1379369999,), (1379370000,), (1379370001,), (1379370002,), (1379370031,), (1379370032,), (1379370056,), (1379370057,), (1379370058,), (1379370059,), (1379370085,), (1379370082,), (1379370083,), (1379370084,), (1379370107,), (1379370108,), (1379370109,), (1379370110,), (1379370111,), (1379370112,), (1379370176,), (1379370177,), (1379370178,), (1379370179,), (1379370180,), (1379370205,), (1379370206,), (1379370207,), (1379370208,), (1379370209,), (1379370210,), (1379370231,), (1379370232,), (1379370233,), (1379370234,), (1379370235,), (1379370236,), (1379370258,), (1379370259,), (1379370260,), (1379370278,), (1379370279,), (1379370280,), (1379370281,), (1379370282,), (1379370284,), (1379370287,), (1379370288,), (1379370333,), (1379370334,), (1379370335,), (1379370336,), (1379370337,), (1379370338,), (1379370363,), (1379370364,), (1379370365,), (1379370366,), (1379370367,), (1379370395,), (1379370396,), (1379370397,), (1379370423,), (1379370424,), (1379370425,), (1379370426,), (1379370427,), (1379370428,), (1379370456,), (1379370457,), (1379370458,), (1379370459,), (1379370460,), (1379370487,), (1379370488,), (1379370489,), (1379370490,), (1379370491,), (1379370508,), (1379370509,), (1379370510,), (1379370536,), (1379370537,), (1379370538,), (1379370539,), (1379370562,), (1379370598,), (1379370557,), (1379370558,), (1379370559,), (1379370560,), (1379370586,), (1379370587,), (1379370588,), (1379370589,), (1379370590,), (1379370591,), (1379370596,), (1379370597,), (1379370665,), (1379370666,), (1379370667,), (1379370668,), (1379370671,), (1379370674,), (1379370700,), (1379370701,), (1379370702,), (1379370703,), (1379370704,), (1379370728,), (1379370729,), (1379370730,), (1379370731,), (1379370732,), (1379370733,), (1379370757,), (1379370758,), (1379370759,), (1379370760,), (1379370761,), (1379370762,), (1379370776,), (1379370777,), (1379370778,), (1379370779,), (1379370847,), (1379370848,), (1379370849,), (1379370850,), (1379370866,), (1379370867,), (1379370868,), (1379370869,), (1379370926,), (1379376598,), (1379376591,), (1379376592,), (1379376593,), (1379376594,), (1379376596,), (1379376676,), (1379376677,), (1379376728,), (1379377015,), (1379377017,), (1379377020,), (1379377022,), (1379377024,), (1379377026,), (1379377115,), (1379377116,), (1379377117,), (1379377118,), (1379377119,), (1379377221,), (1379377222,), (1379377223,), (1379377224,), (1379377225,), (1379377227,), (1379377231,), (1379377233,), (1379377238,), (1379377277,), (1379377278,), (1379377279,), (1379377280,), (1379377281,), (1379377350,), (1379377351,), (1379377352,), (1379377353,), (1379377354,), (1379377379,), (1379377380,), (1379377381,), (1379377442,), (1379377443,), (1379377444,), (1379377445,), (1379377584,), (1379377585,), (1379377586,), (1379377587,), (1379377588,), (1379377589,), (1379377643,), (1379377644,), (1379377645,), (1379377646,), (1379377647,), (1379377695,), (1379377696,), (1379378074,), (1379378077,), (1379378079,), (1379378572,), (1379378706,), (1379378564,), (1379378566,), (1379378568,), (1379378570,), (1379378685,), (1379378686,), (1379378687,), (1379378689,), (1379378690,), (1379378691,), (1379378702,), (1379378703,), (1379378704,), (1379378705,), (1379378765,), (1379378766,), (1379378767,), (1379378768,), (1379378794,), (1379378795,), (1379378796,), (1379378797,), (1379378798,), (1379378985,), (1379378988,), (1379378991,), (1379378994,), (1379378997,), (1379379000,), (1379379329,), (1379379331,), (1379379334,), (1379379337,), (1379379340,), (1379379343,), (1379379455,), (1379379456,), (1379379457,), (1379379458,), (1379379495,), (1379379496,), (1379379497,), (1379379498,), (1379379499,), (1379379534,), (1379379535,), (1379379536,), (1379379537,), (1379379538,), (1379379539,), (1379379602,), (1379379604,), (1379379606,), (1379379673,), (1379379675,), (1379379677,), (1379379679,), (1379379681,), (1379379790,), (1379379791,), (1379379792,), (1379379793,), (1379379794,), (1379379795,), (1379379803,), (1379379804,), (1379379805,), (1379379806,), (1379379807,), (1379379886,), (1379379887,), (1379379888,), (1379380552,), (1379380554,), (1379380556,), (1379380558,), (1379380830,), (1379380833,), (1379380908,), (1379380910,), (1379380911,), (1379386553,), (1379386554,), (1379386577,), (1379386578,), (1379386579,), (1379386580,), (1379386581,), (1379386613,), (1379386614,), (1379386615,), (1379386616,), (1379386617,), (1379386618,), (1379386644,), (1379386645,), (1379386646,), (1379388009,), (1379388007,), (1379388008,), (1379388120,), (1379388121,), (1379388122,), (1379388123,), (1379388303,), (1379388305,), (1379388307,), (1379388309,), (1379388311,), (1379388505,), (1379388506,), (1379388507,), (1379388706,), (1379388710,), (1379388714,), (1379388826,), (1379388827,), (1379388828,), (1379388829,), (1379388830,), (1379388858,), (1379388859,), (1379388860,), (1379388861,), (1379388862,), (1379388863,), (1379388889,), (1379388890,), (1379388891,), (1379389275,), (1379389276,), (1379389277,), (1379389360,), (1379389474,), (1379389358,), (1379389359,), (1379389462,), (1379389463,), (1379389464,), (1379389465,), (1379389466,), (1379389467,), (1379389473,), (1379389494,), (1379389495,), (1379389496,), (1379389497,), (1379389530,), (1379389531,), (1379389532,), (1379389533,), (1379389556,), (1379389557,), (1379389585,), (1379389586,), (1379389587,), (1379389588,), (1379389617,), (1379389618,), (1379389619,), (1379389620,), (1379389621,), (1379389622,), (1379389647,), (1379389648,), (1379389649,), (1379389650,), (1379389652,), (1379389730,), (1379389732,), (1379389734,), (1379389736,), (1379390052,), (1379390054,), (1379390074,), (1379390075,), (1379390076,), (1379390104,), (1379390105,), (1379393064,), (1379393109,), (1379393111,), (1379393304,), (1379393306,), (1379393415,), (1379393416,), (1379393417,), (1379393418,), (1379393578,), (1379393579,), (1379393781,), (1379393783,), (1379393785,), (1379393787,), (1379393789,), (1379393791,), (1379393952,), (1379393953,), (1379393954,), (1379393986,), (1379393987,), (1379393988,), (1379393989,), (1379393990,), (1379394110,), (1379394112,), (1379394116,), (1379394118,), (1379394256,), (1379394258,), (1379394316,), (1379394317,), (1379394401,), (1379394402,), (1379394403,), (1379394404,), (1379394405,), (1379394406,), (1379394569,), (1379394632,), (1379394635,), (1379394637,), (1379394923,), (1379394924,), (1379394925,), (1379395061,), (1379395063,), (1379395066,), (1379395067,), (1379395068,), (1379395069,), (1379395163,), (1379395165,), (1379395167,), (1379395169,), (1379395171,), (1379395173,), (1379395332,), (1379395537,), (1379395330,), (1379395331,), (1379395524,), (1379395525,), (1379395526,), (1379395527,), (1379395528,), (1379395529,), (1379395535,), (1379395569,), (1379395570,), (1379395571,), (1379395572,), (1379395573,), (1379395634,), (1379395635,), (1379395636,), (1379395637,), (1379395661,), (1379395663,), (1379395664,), (1379395938,), (1379395978,), (1379395979,), (1379395980,), (1379395981,), (1379395982,), (1379396172,), (1379396174,), (1379396176,), (1379396178,), (1379396352,), (1379396354,), (1379396356,), (1379396358,), (1379396500,), (1379396501,), (1379396502,), (1379396503,), (1379396614,), (1379396615,), (1379396958,), (1379396960,), (1379397084,), (1379397085,), (1379397117,), (1379397153,), (1379397158,), (1379397162,), (1379397393,), (1379397389,), (1379397391,), (1379397898,), (1379397901,), (1379398054,), (1379398364,), (1379398366,), (1379398437,), (1379398438,), (1379398469,), (1379398470,), (1379398492,), (1379398493,), (1379398494,), (1379398495,), (1379402462,), (1379402460,), (1379402772,), (1379402773,), (1379403036,), (1379403038,), (1379403104,), (1379403105,), (1379403106,), (1379403221,), (1379403222,), (1379403547,), (1379403548,), (1379404254,), (1379404257,), (1379404260,), (1379404263,), (1379406726,), (1379407798,), (1379407800,), (1379407802,), (1379407804,), (1379408190,), (1379408687,), (1379408689,), (1379409100,), (1379409102,), (1379409337,), (1379409753,), (1379409755,), (1379409757,), (1379410135,), (1379410136,), (1379410137,), (1379410138,), (1379410139,), (1379410140,), (1379410411,), (1379410413,), (1379410415,), (1379410417,), (1379410638,), (1379410640,), (1379410642,), (1379410644,), (1379410646,), (1379410797,), (1379410798,), (1379410799,), (1379410800,), (1379410801,), (1379410802,), (1379410880,), (1379410881,), (1379410882,), (1379410883,), (1379411003,), (1379411004,), (1379411005,), (1379411006,), (1379411007,), (1379411034,), (1379411035,), (1379411036,), (1379411037,), (1379411069,), (1379411070,), (1379411071,), (1379411072,), (1379411073,), (1379411154,), (1379411155,), (1379411156,), (1379411157,), (1379411158,), (1379411239,), (1379411620,), (1379411233,), (1379411235,), (1379411237,), (1379411595,), (1379411597,), (1379411599,), (1379411601,), (1379411603,), (1379411605,), (1379411618,), (1379411715,), (1379411716,), (1379411717,), (1379411718,), (1379411745,), (1379411746,), (1379411747,), (1379411748,), (1379411749,), (1379411779,), (1379411780,), (1379411781,), (1379411819,), (1379411820,), (1379411821,), (1379411822,), (1379411823,), (1379412037,), (1379412039,), (1379412041,), (1379412043,), (1379412294,), (1379412295,), (1379412296,), (1379412297,), (1379412298,), (1379412432,), (1379412433,), (1379412435,), (1379412436,), (1379412437,), (1379412499,), (1379412500,), (1379412501,), (1379412502,), (1379412605,), (1379412610,), (1379412615,), (1379412620,), (1379412941,), (1379412942,), (1379412943,), (1379412944,), (1379412945,), (1379412946,), (1379413020,), (1379413024,), (1379413028,), (1379413086,), (1379413090,), (1379413094,), (1379413098,), (1379413219,), (1379413220,), (1379413221,), (1379413222,), (1379413223,), (1379413224,), (1379413261,), (1379413262,), (1379413263,), (1379413264,), (1379413265,), (1379413311,), (1379413309,), (1379413310,), (1379413408,), (1379413410,), (1379413412,), (1379413414,), (1379413555,), (1379413556,), (1379413557,), (1379413558,), (1379413559,), (1379413590,), (1379413591,), (1379413592,), (1379413593,), (1379413648,), (1379413649,), (1379413650,), (1379413651,), (1379413717,), (1379413809,), (1379415271,), (1379418345,), (1379418475,), (1379418476,), (1379418477,), (1379418511,), (1379418512,), (1379418513,), (1379418514,), (1379418515,), (1379418516,), (1379418540,), (1379418541,), (1379418542,), (1379418543,), (1379418638,), (1379418639,), (1379418640,), (1379418662,), (1379418663,), (1379418664,), (1379418715,), (1379418716,), (1379418757,), (1379418758,), (1379418759,), (1379418760,), (1379418761,), (1379418837,), (1379418838,), (1379418839,), (1379418840,), (1379418841,), (1379418879,), (1379418880,), (1379418881,), (1379418883,), (1379418952,), (1379418949,), (1379418950,), (1379418951,), (1379419107,), (1379419109,), (1379419111,), (1379419113,), (1379419115,), (1379419548,), (1379419552,), (1379419556,), (1379419561,), (1379419914,), (1379419915,), (1379419916,), (1379419917,), (1379419918,), (1379419919,), (1379420201,), (1379420205,), (1379420209,), (1379420213,), (1379420217,), (1379420222,), (1379420751,), (1379420753,), (1379420755,), (1379421219,), (1379421221,), (1379421223,), (1379421225,), (1379421227,), (1379421229,), (1379421307,), (1379421310,), (1379421313,), (1379421597,), (1379421599,), (1379421601,), (1379422110,), (1379422187,), (1379444406,), (1379445055,), (1379444402,), (1379444404,), (1379445046,), (1379445049,), (1379445053,), (1379447859,), (1379448332,), (1379448773,), (1379449303,), (1379449302,), (1379449334,), (1379449335,), (1379449336,), (1379449337,), (1379449338,), (1379449364,), (1379449365,), (1379449366,), (1379449541,), (1379449542,), (1379449571,), (1379449679,), (1379449681,), (1379449683,), (1379449685,), (1379449687,), (1379449689,), (1379449924,), (1379449925,), (1379449949,), (1379449950,), (1379449951,), (1379449952,), (1379449953,), (1379449985,), (1379449986,), (1379449987,), (1379449989,), (1379449990,), (1379450019,), (1379450044,), (1379450017,), (1379450018,), (1379450039,), (1379450040,), (1379450041,), (1379450042,), (1379450043,), (1379450128,), (1379450129,), (1379450130,), (1379450131,), (1379450159,), (1379450160,), (1379450161,), (1379450162,), (1379450163,), (1379450190,), (1379450191,), (1379450192,), (1379450193,), (1379450194,), (1379450195,), (1379450250,), (1379450251,), (1379450252,), (1379450253,), (1379450280,), (1379450281,), (1379450282,), (1379450283,), (1379450284,), (1379450357,), (1379450362,), (1379450363,), (1379450364,), (1379450365,), (1379450396,), (1379450398,), (1379450399,), (1379450400,), (1379450401,), (1379450435,), (1379450436,), (1379450437,), (1379450438,), (1379450455,), (1379450456,), (1379450457,), (1379450458,), (1379450459,), (1379450460,), (1379450486,), (1379450487,), (1379450488,), (1379450489,), (1379450490,), (1379450491,), (1379450504,), (1379450508,), (1379450511,), (1379450514,), (1379450515,), (1379450566,), (1379450567,), (1379450568,), (1379450953,), (1379450956,), (1379450958,), (1379450960,), (1379450962,), (1379450964,), (1379451365,), (1379451362,), (1379451363,), (1379451364,), (1379451397,), (1379451398,), (1379451399,), (1379451400,), (1379451401,), (1379451658,), (1379451660,), (1379451662,), (1379451664,), (1379451666,), (1379451668,), (1379452125,), (1379452129,), (1379452133,), (1379452137,), (1379452808,), (1379452813,), (1379452815,), (1379452817,), (1379452820,), (1379452823,), (1379453406,), (1379453408,), (1379453410,), (1379453412,), (1379453414,), (1379453944,), (1379453945,), (1379453946,), (1379453947,), (1379453948,), (1379453949,), (1379453962,), (1379453964,), (1379453966,), (1379453968,), (1379454221,), (1379454223,), (1379454225,), (1379454227,), (1379454229,), (1379454231,), (1379454428,), (1379454429,), (1379454430,), (1379454431,), (1379454455,), (1379454503,), (1379454606,), (1379454684,), (1379454709,), (1379454710,), (1379454758,), (1379454759,), (1379454760,), (1379454790,), (1379454897,), (1379454788,), (1379454789,), (1379454889,), (1379454891,), (1379454893,), (1379454895,), (1379455031,), (1379455032,), (1379455033,), (1379455112,), (1379455113,), (1379455114,), (1379455115,), (1379455116,), (1379455142,), (1379455143,), (1379455144,), (1379455145,), (1379455146,), (1379455182,), (1379455183,), (1379455184,), (1379455185,), (1379455186,), (1379455228,), (1379455229,), (1379455230,), (1379455356,), (1379455357,), (1379455359,), (1379455385,), (1379455386,), (1379455387,), (1379455388,), (1379455606,), (1379455608,), (1379455773,), (1379455774,), (1379455775,), (1379455800,), (1379455801,), (1379455802,), (1379455803,), (1379455804,), (1379455806,), (1379455811,), (1379455812,), (1379455891,), (1379455892,), (1379455919,), (1379456084,), (1379456105,), (1379456106,), (1379456107,), (1379456155,), (1379456152,), (1379456153,), (1379456154,), (1379456210,), (1379456211,), (1379456389,), (1379456390,), (1379456409,), (1379456410,), (1379456411,), (1379456412,), (1379456413,), (1379456459,), (1379456460,), (1379456712,), (1379456714,), (1379457049,), (1379457050,), (1379457051,), (1379457052,), (1379457053,), (1379457054,), (1379457071,), (1379457400,), (1379457403,), (1379457406,), (1379457408,), (1379457410,), (1379457645,), (1379457646,), (1379457647,), (1379457648,), (1379457649,), (1379457667,), (1379457668,), (1379457669,), (1379457670,), (1379457712,), (1379457713,), (1379457742,), (1379457743,), (1379458127,), (1379458129,), (1379458131,), (1379458133,), (1379458221,), (1379458223,), (1379458449,), (1379458450,), (1379458451,), (1379458452,), (1379458732,), (1379459552,), (1379458723,), (1379458726,), (1379458729,), (1379459472,), (1379459474,), (1379459476,), (1379459478,), (1379459480,), (1379459482,), (1379459541,), (1379459543,), (1379459546,), (1379459616,), (1379459617,), (1379459618,), (1379459619,), (1379459620,), (1379459899,), (1379459901,), (1379459903,), (1379459905,), (1379460424,), (1379460427,), (1379460430,), (1379461042,), (1379461043,), (1379461044,), (1379461045,), (1379461267,), (1379461269,), (1379461271,), (1379461273,), (1379461454,), (1379461455,), (1379461456,), (1379461975,), (1379461976,), (1379461977,), (1379461978,), (1379461979,), (1379462219,), (1379462220,), (1379462221,), (1379462222,), (1379462223,), (1379462249,), (1379462250,), (1379462251,), (1379462252,), (1379462253,), (1379462255,), (1379462263,), (1379462264,), (1379462265,), (1379462332,), (1379462333,), (1379462334,), (1379462335,), (1379462336,), (1379462916,), (1379462921,), (1379462925,), (1379462929,), (1379462933,), (1379463027,), (1379463030,), (1379463033,), (1379463501,), (1379463495,), (1379463497,), (1379463499,), (1379463695,), (1379463696,), (1379463697,), (1379463698,), (1379463699,), (1379463700,), (1379463826,), (1379463828,), (1379463830,), (1379464198,), (1379464200,), (1379464202,), (1379464204,), (1379464614,), (1379464616,), (1379465079,), (1379465082,), (1379465085,), (1379465088,), (1379465586,), (1379465588,), (1379465590,), (1379465592,), (1379465594,), (1379465596,), (1379465697,), (1379465700,), (1379465703,), (1379465708,), (1379466001,), (1379466002,), (1379466003,), (1379466004,), (1379466604,), (1379466608,), (1379466612,), (1379467356,), (1379467358,), (1379467360,), (1379467667,), (1379467668,), (1379467669,), (1379467670,), (1379467875,), (1379467877,), (1379467879,), (1379468379,), (1379468381,), (1379468383,), (1379468385,), (1379468387,), (1379468554,), (1379468556,), (1379468558,), (1379468693,), (1379468694,), (1379468695,), (1379468696,), (1379468697,), (1379468851,), (1379469318,), (1379468848,), (1379468849,), (1379468850,), (1379469215,), (1379469218,), (1379469221,), (1379469223,), (1379469225,), (1379469227,), (1379469314,), (1379469316,), (1379469613,), (1379469614,), (1379469664,), (1379469666,), (1379469668,), (1379469926,), (1379469927,), (1379469928,), (1379469929,), (1379469930,), (1379469931,), (1379470278,), (1379470279,), (1379470280,), (1379470281,), (1379470699,), (1379470700,), (1379470701,), (1379470702,), (1379470729,), (1379470730,), (1379470731,), (1379470732,), (1379470733,), (1379470916,), (1379470918,), (1379470920,), (1379471070,), (1379471071,), (1379471072,), (1379471102,), (1379471103,), (1379471104,), (1379471105,), (1379471106,), (1379471107,), (1379471131,), (1379471132,), (1379471133,), (1379471134,), (1379471135,), (1379471136,), (1379471148,), (1379471150,), (1379471152,), (1379471153,), (1379471155,), (1379471174,), (1379471175,), (1379471176,), (1379471177,), (1379471178,), (1379471203,), (1379471204,), (1379471205,), (1379471206,), (1379471207,), (1379471208,), (1379471227,), (1379471229,), (1379471231,), (1379471232,), (1379471233,), (1379471381,), (1379471378,), (1379471379,), (1379471380,), (1379471414,), (1379471415,), (1379471416,), (1379471417,), (1379471493,), (1379471494,), (1379471495,), (1379471817,), (1379471849,), (1379471850,), (1379471851,), (1379471852,), (1379471940,), (1379471941,), (1379471942,), (1379472219,), (1379472221,), (1379472223,), (1379472224,), (1379472225,), (1379472226,), (1379472332,), (1379472333,), (1379472334,), (1379472335,), (1379472336,), (1379472337,), (1379472343,), (1379472345,), (1379472347,), (1379472349,), (1379472380,), (1379472381,), (1379472382,), (1379472603,), (1379472605,), (1379472607,), (1379472762,), (1379472763,), (1379472764,), (1379472765,), (1379472766,), (1379472786,), (1379472787,), (1379472788,), (1379472789,), (1379473143,), (1379473145,), (1379473147,), (1379473482,), (1379473542,), (1379473545,), (1379473548,), (1379473551,), (1379473554,), (1379473944,), (1379473945,), (1379473946,), (1379473947,), (1379473948,), (1379473949,), (1379474023,), (1379474024,), (1379474025,), (1379474026,), (1379474027,), (1379474660,), (1379475265,), (1379474652,), (1379474655,), (1379474658,), (1379475123,), (1379475126,), (1379475129,), (1379475132,), (1379475135,), (1379475138,), (1379475258,), (1379475261,), (1379475394,), (1379475395,), (1379475396,), (1379475397,), (1379475398,), (1379475560,), (1379475561,), (1379475656,), (1379475657,), (1379475658,), (1379475659,), (1379475660,), (1379475792,), (1379475793,), (1379475816,), (1379475860,), (1379475862,), (1379475864,), (1379475867,), (1379476052,), (1379476053,), (1379476054,), (1379476055,), (1379476056,), (1379476370,), (1379476372,), (1379476374,), (1379476376,), (1379476532,), (1379476533,), (1379476595,), (1379476596,), (1379476597,), (1379476598,), (1379476599,), (1379476627,), (1379476628,), (1379476629,), (1379476630,), (1379476632,), (1379476633,), (1379476651,), (1379476653,), (1379476654,), (1379476655,), (1379476669,), (1379476670,), (1379476671,), (1379476672,), (1379477306,), (1379477307,), (1379477308,), (1379477310,), (1379477536,), (1379477528,), (1379477530,), (1379477532,), (1379477534,), (1379477667,), (1379477668,), (1379477669,), (1379477670,), (1379477671,), (1379477931,), (1379477932,), (1379477933,), (1379478325,), (1379478327,), (1379478329,), (1379478331,), (1379478701,), (1379478703,), (1379478705,), (1379479104,), (1379479106,), (1379479108,), (1379479110,), (1379479112,), (1379479114,), (1379479244,), (1379479246,), (1379479248,), (1379479251,), (1379479253,), (1379479255,), (1379479351,), (1379479353,), (1379479355,), (1379479357,), (1379479650,), (1379479654,), (1379479658,), (1379479663,), (1379479667,), (1379480192,), (1379480194,), (1379480196,), (1379480198,), (1379480524,), (1379480525,), (1379480526,), (1379480527,), (1379480528,), (1379480529,), (1379480585,), (1379480586,), (1379480587,), (1379480588,), (1379480940,), (1379480947,), (1379480954,), (1379480959,), (1379480963,), (1379480966,), (1379481237,), (1379481239,), (1379481241,), (1379481243,), (1379481245,), (1379481291,), (1379481292,), (1379481293,), (1379481882,), (1379481885,), (1379482591,), (1379482879,), (1379482579,), (1379482583,), (1379482587,), (1379482853,), (1379482854,), (1379482855,), (1379482856,), (1379482857,), (1379482858,), (1379482875,), (1379482877,), (1379482878,), (1379482996,), (1379482997,), (1379482998,), (1379482999,), (1379483000,), (1379483001,), (1379483365,), (1379483367,), (1379483369,), (1379483371,), (1379483373,), (1379483828,), (1379483830,), (1379483832,), (1379483834,), (1379484278,), (1379484279,), (1379484280,), (1379484281,), (1379484282,), (1379484630,), (1379484631,), (1379484632,), (1379484633,), (1379484634,), (1379484679,), (1379484754,), (1379484755,), (1379484756,), (1379484757,), (1379484758,), (1379484759,), (1379484847,), (1379484849,), (1379484851,), (1379484853,), (1379485062,), (1379485063,), (1379485064,), (1379485118,), (1379485119,), (1379485120,), (1379485121,), (1379485122,), (1379485125,), (1379485149,), (1379485151,), (1379485184,), (1379485185,), (1379485186,), (1379485188,), (1379485189,), (1379485322,), (1379488835,), (1379488833,), (1379489023,), (1379489434,), (1379489436,), (1379489438,), (1379489811,), (1379489813,), (1379489815,), (1379489817,), (1379489819,), (1379490093,), (1379490094,), (1379490095,), (1379490096,), (1379490097,), (1379490300,), (1379490301,), (1379490303,), (1379490305,), (1379490307,), (1379490309,), (1379490376,), (1379490377,), (1379490407,), (1379490408,), (1379490409,), (1379490410,), (1379490411,), (1379490497,), (1379490528,), (1379490529,), (1379490582,), (1379492059,), (1379491671,), (1379492056,), (1379492057,), (1379492058,), (1379492087,), (1379492088,), (1379492089,), (1379492090,), (1379492091,), (1379492158,), (1379492159,), (1379492244,), (1379492241,), (1379492242,), (1379492243,), (1379492284,), (1379492285,), (1379492286,), (1379492287,), (1379492288,), (1379492289,), (1379492336,), (1379492338,), (1379492339,), (1379492340,), (1379492370,), (1379492371,), (1379492399,), (1379492400,), (1379492401,), (1379492402,), (1379492403,), (1379492404,), (1379492624,), (1379492625,), (1379492626,), (1379492627,), (1379492628,), (1379492807,), (1379492809,), (1379492811,), (1379492813,), (1379492815,), (1379492817,), (1379492881,), (1379492882,), (1379492883,), (1379492960,), (1379492961,), (1379492962,), (1379492963,), (1379492964,), (1379492965,), (1379493007,), (1379493008,), (1379493009,), (1379493010,), (1379493011,), (1379493012,), (1379493201,), (1379493203,), (1379493205,), (1379493573,), (1379493575,), (1379493577,), (1379493579,), (1379493581,), (1379493918,), (1379493920,), (1379493922,), (1379493924,), (1379494302,), (1379494304,), (1379494306,), (1379494308,), (1379494310,), (1379494688,), (1379494689,), (1379494690,), (1379494691,), (1379494836,), (1379494837,), (1379494838,), (1379494839,), (1379494840,), (1379495188,), (1379495495,), (1379495180,), (1379495182,), (1379495184,), (1379495186,), (1379495462,), (1379495464,), (1379495466,), (1379495468,), (1379495470,), (1379495472,), (1379495489,), (1379495491,), (1379495493,), (1379495579,), (1379495580,), (1379495581,), (1379495582,), (1379495948,), (1379495949,), (1379495950,), (1379495951,), (1379495952,), (1379496181,), (1379496182,), (1379496183,), (1379496184,), (1379496185,), (1379496385,), (1379496398,), (1379496399,), (1379496400,), (1379496401,), (1379496450,), (1379496451,), (1379496452,), (1379496453,), (1379496650,), (1379496652,), (1379496654,), (1379496656,), (1379497019,), (1379497022,), (1379497024,), (1379497026,), (1379497245,), (1379497246,), (1379497247,), (1379497248,), (1379497421,), (1379497422,), (1379497423,), (1379497424,), (1379497553,), (1379497555,), (1379497557,), (1379497559,), (1379497562,), (1379497564,), (1379497581,), (1379497582,), (1379497657,), (1379497658,), (1379497659,), (1379497660,), (1379498365,), (1379498368,), (1379498371,), (1379498374,), (1379498376,), (1379498812,), (1379498675,), (1379498803,), (1379498806,), (1379498809,), (1379499395,), (1379499721,), (1379499722,), (1379499724,), (1379499777,), (1379499778,), (1379499779,), (1379499828,), (1379499830,), (1379500221,), (1379500223,), (1379500225,), (1379500227,), (1379500229,), (1379500232,), (1379500677,), (1379500679,), (1379500681,), (1379500683,), (1379500685,), (1379500688,), (1379500745,), (1379500837,), (1379500839,), (1379500841,), (1379500843,), (1379501516,), (1379501519,), (1379501523,), (1379501527,), (1379501531,), (1379502184,), (1379502401,), (1379502406,), (1379502410,), (1379502414,), (1379502861,), (1379502862,), (1379502863,), (1379502864,), (1379503798,), (1379503802,), (1379503805,), (1379504324,), (1379504325,), (1379504326,), (1379504327,), (1379504430,), (1379504431,), (1379504432,), (1379504433,), (1379504434,), (1379504435,), (1379504465,), (1379504466,), (1379504467,), (1379504813,), (1379505149,), (1379504808,), (1379504809,), (1379504810,), (1379504811,), (1379504812,), (1379505050,), (1379505053,), (1379505056,), (1379505059,), (1379505062,), (1379505065,), (1379505141,), (1379505143,), (1379505145,), (1379505147,), (1379505450,), (1379505452,), (1379505454,), (1379505456,), (1379505517,), (1379505551,), (1379505552,), (1379505713,), (1379505714,), (1379505715,), (1379505716,), (1379505717,), (1379505988,), (1379505990,), (1379505992,), (1379505994,), (1379506403,), (1379506405,), (1379506407,), (1379506409,), (1379506643,), (1379506644,), (1379506645,), (1379506646,), (1379506672,), (1379506673,), (1379506674,), (1379506675,), (1379506676,), (1379506677,), (1379506981,), (1379506983,), (1379506986,), (1379506988,), (1379506990,), (1379507362,), (1379507363,), (1379507364,), (1379507365,), (1379507653,), (1379507655,), (1379507657,), (1379507659,), (1379507662,), (1379507664,), (1379507723,), (1379507725,), (1379507726,), (1379508050,), (1379508126,), (1379508128,), (1379508482,), (1379508484,), (1379508486,), (1379508768,), (1379508769,), (1379508771,), (1379508997,), (1379508989,), (1379508991,), (1379508993,), (1379508995,), (1379509115,), (1379509116,), (1379509117,), (1379509119,), (1379509120,), (1379509185,), (1379509186,), (1379509187,), (1379509208,), (1379509209,), (1379509210,), (1379509211,), (1379509212,), (1379509236,), (1379509237,), (1379509238,), (1379509239,), (1379509240,), (1379509274,), (1379509275,), (1379509276,), (1379509305,), (1379509306,), (1379509307,), (1379509308,), (1379509309,), (1379509310,), (1379509317,), (1379509318,), (1379509425,), (1379509426,), (1379509427,), (1379509485,), (1379509487,), (1379509489,), (1379509491,), (1379509493,), (1379509495,), (1379509649,), (1379509650,), (1379509834,), (1379509835,), (1379509836,), (1379509837,), (1379509838,), (1379509957,), (1379509958,), (1379509959,), (1379509960,), (1379509961,), (1379510054,), (1379510055,), (1379510056,), (1379510057,), (1379510094,), (1379510096,), (1379510098,), (1379510100,), (1379510217,), (1379510219,), (1379510221,), (1379510223,), (1379510225,), (1379510371,), (1379510368,), (1379510369,), (1379510370,), (1379510479,), (1379510480,), (1379510481,), (1379510482,), (1379510483,), (1379510484,), (1379510556,), (1379510557,), (1379510558,), (1379510559,), (1379510579,), (1379510580,), (1379510581,), (1379510825,), (1379510826,), (1379510827,), (1379510828,), (1379510829,), (1379510830,), (1379510866,), (1379510867,), (1379510868,), (1379510869,), (1379510871,), (1379510903,), (1379510904,), (1379510905,), (1379510931,), (1379510932,), (1379510933,), (1379510934,), (1379510935,), (1379510955,), (1379510956,), (1379510957,), (1379510958,), (1379510959,), (1379510960,), (1379511040,), (1379511041,), (1379511042,), (1379511043,), (1379511117,), (1379511118,), (1379511200,), (1379511201,), (1379511202,), (1379511203,), (1379511204,), (1379511205,), (1379511584,), (1379511586,), (1379511588,), (1379511590,), (1379511591,), (1379511955,), (1379511958,), (1379511962,), (1379511966,), (1379511971,), (1379512078,), (1379512081,), (1379512722,), (1379512716,), (1379512718,), (1379512720,), (1379513083,), (1379513084,), (1379513085,), (1379513086,), (1379513087,), (1379513479,), (1379513480,), (1379513481,), (1379513482,), (1379513483,), (1379513484,), (1379513505,), (1379513506,), (1379513507,), (1379513508,), (1379513509,), (1379513736,), (1379513738,), (1379513740,), (1379513742,), (1379513744,), (1379514182,), (1379514185,), (1379514188,), (1379514191,), (1379514194,), (1379514197,), (1379514386,), (1379514387,), (1379514388,), (1379514389,), (1379514390,), (1379514732,), (1379514733,), (1379515007,), (1379515852,), (1379515984,), (1379515985,), (1379515986,), (1379515987,), (1379515988,), (1379516180,), (1379516182,), (1379516184,), (1379516186,), (1379516676,), (1379516677,), (1379516678,), (1379516744,), (1379516745,), (1379516746,), (1379516747,), (1379516748,), (1379516771,), (1379516772,), (1379516773,), (1379516774,), (1379516775,), (1379516776,), (1379516829,), (1379516830,), (1379516870,), (1379516872,), (1379516873,), (1379516965,), (1379516967,), (1379516969,), (1379516971,), (1379517121,), (1379517122,), (1379517123,), (1379517124,), (1379517125,), (1379517267,), (1379517269,), (1379517271,), (1379517273,), (1379517328,), (1379517329,), (1379517330,), (1379517371,), (1379517367,), (1379517368,), (1379517369,), (1379517370,), (1379517391,), (1379517392,), (1379517393,), (1379517394,), (1379517395,), (1379517452,), (1379517453,), (1379517454,), (1379517455,), (1379517456,), (1379517512,), (1379517513,), (1379517514,), (1379517515,), (1379517516,), (1379517613,), (1379517614,), (1379517615,), (1379517616,), (1379517619,), (1379517621,), (1379517873,), (1379517874,), (1379517875,), (1379518361,), (1379523708,), (1379524172,), (1379524168,), (1379524169,), (1379524170,), (1379524171,), (1379524431,), (1379524742,), (1379524744,), (1379524932,), (1379525175,), (1379525176,), (1379525223,), (1379525224,), (1379525226,), (1379525227,), (1379525374,), (1379525375,), (1379525376,), (1379525538,), (1379525539,), (1379525540,), (1379525634,), (1379525736,), (1379525732,), (1379525733,), (1379525734,), (1379525735,), (1379525760,), (1379525761,), (1379525762,), (1379525798,), (1379525799,), (1379525800,), (1379525801,), (1379525821,), (1379525822,), (1379525823,), (1379525858,), (1379525859,), (1379525860,), (1379525861,), (1379525892,), (1379525893,), (1379525894,), (1379525895,), (1379525896,), (1379525897,), (1379526070,), (1379526072,), (1379526073,), (1379526241,), (1379526242,), (1379526243,), (1379526270,), (1379526740,), (1379527072,), (1379527074,), (1379527076,), (1379527140,), (1379527141,), (1379527181,), (1379527177,), (1379527178,), (1379527179,), (1379527180,), (1379527206,), (1379527207,), (1379527208,), (1379527209,), (1379527210,), (1379527222,), (1379527223,), (1379527224,), (1379527225,), (1379527319,), (1379527321,), (1379527323,), (1379527325,), (1379527668,), (1379527671,), (1379527673,), (1379527675,), (1379527677,), (1379527835,), (1379527838,), (1379527839,), (1379527840,), (1379527841,), (1379527843,), (1379528233,), (1379528235,), (1379528958,), (1379528961,), (1379528964,), (1379528967,), (1379528970,), (1379529378,), (1379529379,), (1379529380,), (1379529381,), (1379530053,), (1379530056,), (1379530059,), (1379530062,), (1379530517,), (1379530519,), (1379530521,), (1379530523,), (1379531114,), (1379531116,), (1379531118,), (1379531120,), (1379531291,), (1379531293,), (1379531295,), (1379531297,), (1379531588,), (1379531590,), (1379531592,), (1379531594,), (1379531973,), (1379531975,), (1379531977,), (1379531979,), (1379531981,), (1379532374,), (1379532368,), (1379532370,), (1379532372,), (1379532590,), (1379532591,), (1379532592,), (1379532593,), (1379532594,), (1379532595,), (1379532862,), (1379532864,), (1379532866,), (1379532869,), (1379533352,), (1379533354,), (1379533356,), (1379533358,), (1379533360,), (1379533362,), (1379533556,), (1379533558,), (1379533560,), (1379533562,), (1379533565,), (1379533567,), (1379533618,), (1379533619,), (1379533620,), (1379533814,), (1379534118,), (1379536472,), (1379537083,), (1379545434,), (1379545485,), (1379545486,), (1379545487,), (1379545817,), (1379545819,), (1379545821,), (1379546024,), (1379546025,), (1379546026,), (1379546106,), (1379546107,), (1379546108,), (1379546109,), (1379546433,), (1379546435,), (1379546437,), (1379546757,), (1379546758,), (1379546759,), (1379546760,), (1379546761,), (1379546898,), (1379546899,), (1379546900,), (1379546901,), (1379546983,), (1379546984,), (1379546985,), (1379546986,), (1379546987,), (1379546988,), (1379547012,), (1379547013,), (1379547014,), (1379547308,), (1379547301,), (1379547303,), (1379547305,), (1379547576,), (1379547577,), (1379547578,), (1379547579,), (1379547580,), (1379547651,), (1379547652,), (1379547653,), (1379547703,), (1379547704,), (1379547705,), (1379547706,), (1379547707,), (1379548021,), (1379548023,), (1379548025,), (1379548027,), (1379548029,), (1379548031,), (1379548496,), (1379548499,), (1379548502,), (1379548505,), (1379548797,), (1379548799,), (1379548801,), (1379548803,), (1379548805,), (1379548807,), (1379549103,), (1379549104,), (1379549105,), (1379549106,), (1379549496,), (1379549498,), (1379549500,), (1379549502,), (1379549504,), (1379549506,), (1379549880,), (1379549882,), (1379549884,), (1379550159,), (1379550160,), (1379550161,), (1379550360,), (1379550362,), (1379550363,), (1379550692,), (1379550694,), (1379550696,), (1379550698,), (1379550700,), (1379550938,), (1379550940,), (1379550942,), (1379551080,), (1379551082,), (1379551464,), (1379551453,), (1379551455,), (1379551457,), (1379551460,), (1379551462,), (1379551932,), (1379551934,), (1379551936,), (1379552132,), (1379552133,), (1379552134,), (1379553189,), (1379565635,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26082025': {'nb_upload': 13, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26246253]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453] map_info['map_portfolio_photo'] : {26246253: [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453]} final : True mtd_id 4302 list_pids : [1379565635, 1379553189, 1379552134, 1379552133, 1379552132, 1379551936, 1379551934, 1379551932, 1379551462, 1379551460, 1379551457, 1379551455, 1379551453] Looping around the photos to save general results len do output : 1 /26246253Didn'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, '3608327') ('4302', '26246253', '1379565635', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379553189', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552134', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552133', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379552132', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551936', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551934', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551932', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551462', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551460', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551457', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551455', None, None, None, None, None, '3608327') ('4302', None, None, None, None, None, None, None, '3608327') ('4302', '26246253', '1379551453', None, None, None, None, None, '3608327') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '26246253', 'None', None, None, None, None, '3608327'), ('4302', '26246253', '1379565635', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379553189', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379552134', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379552133', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379552132', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551936', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551934', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551932', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551462', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551460', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551457', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551455', None, None, None, None, None, '3608327'), ('4302', '26246253', '1379551453', None, None, None, None, None, '3608327')] time used for this insertion : 0.019947528839111328 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.684824228286743 time spend to save output : 0.02024221420288086 total time spend for step 5 : 4.705066442489624 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 (3608327) 2.29user 2.74system 0:13.29elapsed 37%CPU (0avgtext+0avgdata 163028maxresident)k 1176inputs+7472outputs (32major+75418minor)pagefaults 0swaps