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 : 1520068 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 (2719061) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2719061) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990543 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2719061'] with mtr_portfolio_ids : ['21990543'] and first list_photo_ids : [] new path : /proc/1520068/ Name: python3 Umask: 0002 State: R (running) Tgid: 1520068 Ngid: 0 Pid: 1520068 PPid: 1520067 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1520068 NSpid: 1520068 NSpgid: 1516735 NSsid: 1516735 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97408 kB VmRSS: 97408 kB RssAnon: 59796 kB RssFile: 37612 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1520068', 'Ngid': '0', 'Pid': '1520068', 'PPid': '1520067', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1520068', 'NSpid': '1520068', 'NSpgid': '1516735', 'NSsid': '1516735', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97408 kB', 'VmRSS': '97408 kB', 'RssAnon': '59796 kB', 'RssFile': '37612 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '1520068', '1106932', '0', '1106932', '865680', '97408', b'', 'marlene', '2719061') 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 (21990543) 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 (2719061 ) ) 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 (21990543) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349614154, 'portfolio_id': 21990543}, {'photo_id': 1349613660, 'portfolio_id': 21990543}, {'photo_id': 1349613656, 'portfolio_id': 21990543}, {'photo_id': 1349613653, 'portfolio_id': 21990543}, {'photo_id': 1349613648, 'portfolio_id': 21990543}, {'photo_id': 1349613643, 'portfolio_id': 21990543}, {'photo_id': 1349613640, 'portfolio_id': 21990543}, {'photo_id': 1349613464, 'portfolio_id': 21990543}, {'photo_id': 1349613429, 'portfolio_id': 21990543}, {'photo_id': 1349613402, 'portfolio_id': 21990543}, {'photo_id': 1349613384, 'portfolio_id': 21990543}, {'photo_id': 1349613148, 'portfolio_id': 21990543}, {'photo_id': 1349613122, 'portfolio_id': 21990543}, {'photo_id': 1349613088, 'portfolio_id': 21990543}, {'photo_id': 1349612820, 'portfolio_id': 21990543}, {'photo_id': 1349612793, 'portfolio_id': 21990543}, {'photo_id': 1349612740, 'portfolio_id': 21990543}, {'photo_id': 1349612704, 'portfolio_id': 21990543}, {'photo_id': 1349612673, 'portfolio_id': 21990543}, {'photo_id': 1349612638, 'portfolio_id': 21990543}, {'photo_id': 1349612181, 'portfolio_id': 21990543}] map_portfolio_id_photo_id: {21990543: [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181]} ##### 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.018289804458618164 #### 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 Thu Apr 3 05:43: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 (21990543) 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 : 21990543 get user id for portfolio 21990543 get sub ptf for main ptf 21990543, type 3726 and hashtags ['Teint_Dans_La_Masse', 'mal_croppe', 'environnement', 'metal', 'Carton_brun', 'kraft', 'Carton_gris', 'flou', 'autre_refus', 'cartonnette', 'papier', 'plastique'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21990543 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','mal_croppe','environnement','metal','Carton_brun','kraft','Carton_gris','flou','autre_refus','cartonnette','papier','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21990543 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','mal_croppe','environnement','metal','Carton_brun','kraft','Carton_gris','flou','autre_refus','cartonnette','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21990543, 'sub_port_id': 21990548, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487527, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}, 'flou': {'main_port_id': 21990543, 'sub_port_id': 21990549, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487528, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}, 'plastique': {'main_port_id': 21990543, 'sub_port_id': 21990550, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487529, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}, 'autre_refus': {'main_port_id': 21990543, 'sub_port_id': 21990551, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487530, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}, 'Carton_gris': {'main_port_id': 21990543, 'sub_port_id': 21990552, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487531, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}, 'environnement': {'main_port_id': 21990543, 'sub_port_id': 21990553, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487532, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}, 'papier': {'main_port_id': 21990543, 'sub_port_id': 21990554, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487533, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21990543, 'sub_port_id': 21990555, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487534, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}, 'metal': {'main_port_id': 21990543, 'sub_port_id': 21990556, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487535, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}, 'Carton_brun': {'main_port_id': 21990543, 'sub_port_id': 21990557, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487536, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}, 'cartonnette': {'main_port_id': 21990543, 'sub_port_id': 21990558, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487537, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}, 'kraft': {'main_port_id': 21990543, 'sub_port_id': 21990559, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487538, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21990548 , 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=21990543 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 (21990548) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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 21990549 , 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=21990543 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 (21990549) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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 21990550 , 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=21990543 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 (21990550) result : ((1349614642,), (1349614644,), (1349614645,), (1349614677,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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 21990551 , 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=21990543 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 (21990551) result : ((1349614666,), (1349642751,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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 21990552 , 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=21990543 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 (21990552) result : ((1349613728,), (1349614670,), (1349642910,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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 21990553 , 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=21990543 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 (21990553) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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 21990554 , 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=21990543 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 (21990554) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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 21990555 , 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=21990543 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 (21990555) result : ((1349613718,), (1349614106,), (1349614107,), (1349614109,), (1349614606,), (1349614607,), (1349614608,), (1349642731,), (1349642732,), (1349642733,), (1349642735,), (1349642737,), (1349642843,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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 21990556 , 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=21990543 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 (21990556) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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 21990557 , 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=21990543 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 (21990557) result : ((1349614157,), (1349614626,), (1349614627,), (1349614628,), (1349614630,), (1349642783,), (1349642785,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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 21990558 , 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=21990543 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 (21990558) result : ((1349614128,), (1349642763,), (1349642765,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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 21990559 , 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=21990543 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 (21990559) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21990543) result : ((1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,)) 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`=21990543 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','mal_croppe','environnement','metal','Carton_brun','kraft','Carton_gris','flou','autre_refus','cartonnette','papier','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21990543 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','mal_croppe','environnement','metal','Carton_brun','kraft','Carton_gris','flou','autre_refus','cartonnette','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21990543, 'sub_port_id': 21990560, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487539, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}, 'flou': {'main_port_id': 21990543, 'sub_port_id': 21990561, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487540, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}, 'plastique': {'main_port_id': 21990543, 'sub_port_id': 21990562, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487541, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}, 'autre_refus': {'main_port_id': 21990543, 'sub_port_id': 21990563, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487542, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}, 'Carton_gris': {'main_port_id': 21990543, 'sub_port_id': 21990564, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487543, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}, 'environnement': {'main_port_id': 21990543, 'sub_port_id': 21990565, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487544, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}, 'papier': {'main_port_id': 21990543, 'sub_port_id': 21990566, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487545, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21990543, 'sub_port_id': 21990567, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487546, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}, 'metal': {'main_port_id': 21990543, 'sub_port_id': 21990568, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487547, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}, 'Carton_brun': {'main_port_id': 21990543, 'sub_port_id': 21990569, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487548, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}, 'cartonnette': {'main_port_id': 21990543, 'sub_port_id': 21990570, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487549, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}, 'kraft': {'main_port_id': 21990543, 'sub_port_id': 21990571, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14487550, 'last_updated_at': datetime.datetime(2025, 4, 2, 22, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 22, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 22, 14, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990554 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990555 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990556 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990557 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990558 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21990571,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21990559 lien utilise dans velours : https://www.fotonower.com/velours/21990560,21990561,21990562,21990563,21990564,21990565,21990566,21990567,21990568,21990569,21990570,21990571?tags=mal_croppe,flou,plastique,autre_refus,Carton_gris,environnement,papier,Teint_Dans_La_Masse,metal,Carton_brun,cartonnette,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21990543]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181] map_info['map_portfolio_photo'] : {21990543: [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181]} final : False mtd_id 4302 list_pids : [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181] Looping around the photos to save general results len do output : 1 /21990543. 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, '2719061') ('4302', '21990543', '1349614154', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613660', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613656', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613653', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613648', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613643', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613640', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613464', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613429', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613402', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613384', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613148', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613122', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613088', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612820', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612793', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612740', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612704', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612673', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612638', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612181', None, None, None, None, None, '2719061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '21990543', "{'mal_croppe': 21990548, 'flou': 21990549, 'plastique': 21990550, 'autre_refus': 21990551, 'Carton_gris': 21990552, 'environnement': 21990553, 'papier': 21990554, 'Teint_Dans_La_Masse': 21990555, 'metal': 21990556, 'Carton_brun': 21990557, 'cartonnette': 21990558, 'kraft': 21990559}", None, None, None, None, '2719061'), ('4302', '21990543', '1349614154', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613660', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613656', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613653', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613648', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613643', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613640', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613464', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613429', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613402', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613384', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613148', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613122', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613088', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612820', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612793', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612740', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612704', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612673', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612638', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612181', None, None, None, None, None, '2719061')] time used for this insertion : 0.022254467010498047 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7434735298156738 time spend to save output : 0.022583961486816406 total time spend for step 1 : 1.7660574913024902 step2:final Thu Apr 3 05:44: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 (21990543) 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 21990543 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349612181,1349612820,1349612793,1349612740,1349612704,1349612673,1349612638,1349613148,1349613122,1349613088,1349613464,1349613429,1349613402,1349613384,1349613660,1349613656,1349613653,1349613648,1349613643,1349613640,1349614154); 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([21990543]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} new output for save of step final : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181] map_info['map_portfolio_photo'] : {21990543: [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181]} final : False mtd_id 4302 list_pids : [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181] Looping around the photos to save general results len do output : 21 /1349614154.Didn't retrieve data . /1349613660.Didn't retrieve data . /1349613656.Didn't retrieve data . /1349613653.Didn't retrieve data . /1349613648.Didn't retrieve data . /1349613643.Didn't retrieve data . /1349613640.Didn't retrieve data . /1349613464.Didn't retrieve data . /1349613429.Didn't retrieve data . /1349613402.Didn't retrieve data . /1349613384.Didn't retrieve data . /1349613148.Didn't retrieve data . /1349613122.Didn't retrieve data . /1349613088.Didn't retrieve data . /1349612820.Didn't retrieve data . /1349612793.Didn't retrieve data . /1349612740.Didn't retrieve data . /1349612704.Didn't retrieve data . /1349612673.Didn't retrieve data . /1349612638.Didn't retrieve data . /1349612181.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, '2719061') ('4302', '21990543', '1349614154', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613660', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613656', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613653', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613648', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613643', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613640', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613464', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613429', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613402', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613384', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613148', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613122', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613088', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612820', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612793', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612740', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612704', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612673', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612638', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612181', None, None, None, None, None, '2719061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '21990543', '1349614154', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613660', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613656', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613653', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613648', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613643', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613640', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613464', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613429', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613402', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613384', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613148', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613122', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349613088', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349612820', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349612793', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349612740', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349612704', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349612673', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349612638', '0.043520923967274326', None, None, None, None, '2719061'), ('4302', '21990543', '1349612181', '0.043520923967274326', None, None, None, None, '2719061')] time used for this insertion : 0.014660358428955078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0635840892791748 time spend to save output : 0.015646934509277344 total time spend for step 2 : 0.07923102378845215 step3:velours_tree Thu Apr 3 05:44: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 : {21990543: [{'mal_croppe': 21990548, 'flou': 21990549, 'plastique': 21990550, 'autre_refus': 21990551, 'Carton_gris': 21990552, 'environnement': 21990553, 'papier': 21990554, 'Teint_Dans_La_Masse': 21990555, 'metal': 21990556, 'Carton_brun': 21990557, 'cartonnette': 21990558, 'kraft': 21990559}]} input_args_next_step : {21990543: ()} output_args : {21990543: [{'mal_croppe': 21990548, 'flou': 21990549, 'plastique': 21990550, 'autre_refus': 21990551, 'Carton_gris': 21990552, 'environnement': 21990553, 'papier': 21990554, 'Teint_Dans_La_Masse': 21990555, 'metal': 21990556, 'Carton_brun': 21990557, 'cartonnette': 21990558, 'kraft': 21990559}]} args : 21990543 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 : ({'mal_croppe': 21990548, 'flou': 21990549, 'plastique': 21990550, 'autre_refus': 21990551, 'Carton_gris': 21990552, 'environnement': 21990553, 'papier': 21990554, 'Teint_Dans_La_Masse': 21990555, 'metal': 21990556, 'Carton_brun': 21990557, 'cartonnette': 21990558, 'kraft': 21990559},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21990543) 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([21990543]) 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.3556058406829834 time spend to save output : 4.3392181396484375e-05 total time spend for step 3 : 0.3556492328643799 step4:send_mail_cod Thu Apr 3 05:44: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 : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} input_args_next_step : {1349614154: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349614154 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613660 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613656 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613653 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613648 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613643 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613640 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613464 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613429 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613402 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613384 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613148 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613122 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349613088 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349612820 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349612793 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349612740 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349612704 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349612673 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349612638 depend.output_id : 0 input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ()} output_args : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',)} args : 1349612181 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 : {21990543: [{'mal_croppe': 21990548, 'flou': 21990549, 'plastique': 21990550, 'autre_refus': 21990551, 'Carton_gris': 21990552, 'environnement': 21990553, 'papier': 21990554, 'Teint_Dans_La_Masse': 21990555, 'metal': 21990556, 'Carton_brun': 21990557, 'cartonnette': 21990558, 'kraft': 21990559}]} input_args_next_step : {1349614154: ('0.043520923967274326',), 1349613660: ('0.043520923967274326',), 1349613656: ('0.043520923967274326',), 1349613653: ('0.043520923967274326',), 1349613648: ('0.043520923967274326',), 1349613643: ('0.043520923967274326',), 1349613640: ('0.043520923967274326',), 1349613464: ('0.043520923967274326',), 1349613429: ('0.043520923967274326',), 1349613402: ('0.043520923967274326',), 1349613384: ('0.043520923967274326',), 1349613148: ('0.043520923967274326',), 1349613122: ('0.043520923967274326',), 1349613088: ('0.043520923967274326',), 1349612820: ('0.043520923967274326',), 1349612793: ('0.043520923967274326',), 1349612740: ('0.043520923967274326',), 1349612704: ('0.043520923967274326',), 1349612673: ('0.043520923967274326',), 1349612638: ('0.043520923967274326',), 1349612181: ('0.043520923967274326',), 21990543: ()} output_args : {21990543: [{'mal_croppe': 21990548, 'flou': 21990549, 'plastique': 21990550, 'autre_refus': 21990551, 'Carton_gris': 21990552, 'environnement': 21990553, 'papier': 21990554, 'Teint_Dans_La_Masse': 21990555, 'metal': 21990556, 'Carton_brun': 21990557, 'cartonnette': 21990558, 'kraft': 21990559}]} args : 21990543 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 :22, first value : ('0.043520923967274326',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21990543) 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 (1349614154,1349613660,1349613656,1349613653,1349613648,1349613643,1349613640,1349613464,1349613429,1349613402,1349613384,1349613148,1349613122,1349613088,1349612820,1349612793,1349612740,1349612704,1349612673,1349612638,1349612181) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349612181 begin to download photo : 1349612793 begin to download photo : 1349613384 begin to download photo : 1349613643 begin to download photo : 1349614154 download finish for photo 1349612793 begin to download photo : 1349612820 download finish for photo 1349613643 begin to download photo : 1349613648 download finish for photo 1349614154 download finish for photo 1349613384 begin to download photo : 1349613402 download finish for photo 1349612181 begin to download photo : 1349612638 download finish for photo 1349612820 begin to download photo : 1349613088 download finish for photo 1349613648 begin to download photo : 1349613653 download finish for photo 1349613402 begin to download photo : 1349613429 download finish for photo 1349612638 begin to download photo : 1349612673 download finish for photo 1349613653 begin to download photo : 1349613656 download finish for photo 1349613429 begin to download photo : 1349613464 download finish for photo 1349613088 begin to download photo : 1349613122 download finish for photo 1349612673 begin to download photo : 1349612704 download finish for photo 1349613656 begin to download photo : 1349613660 download finish for photo 1349612704 begin to download photo : 1349612740 download finish for photo 1349613122 begin to download photo : 1349613148 download finish for photo 1349613464 begin to download photo : 1349613640 download finish for photo 1349613660 download finish for photo 1349613148 download finish for photo 1349612740 download finish for photo 1349613640 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette219905481743651841/ imagette219905491743651841/ length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P21990543_03-04-2025_05_44_01.pdf 21990548 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=21990548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219905481743651841 21990549 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=21990549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219905491743651841 21990550 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=21990550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349614642: '1743624954_1497645_1349612704_f6f881339f2e6f84c8cea7dcc0256c69_rle_crop_3744872137_0.png', 1349614644: '1743624954_1497645_1349612673_edf8a6b822f7bca6148f829003fd96e8_rle_crop_3744874165_0.png', 1349614645: '1743624954_1497645_1349612638_7a4316ce6261cfe69dd233cfc4a25ede_rle_crop_3744874761_0.png', 1349614677: '1743624974_1498303_1349612820_f668e64cb327d4e5c0affd27e256f1e9_rle_crop_3744874778_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6de054ed48eac656caf837baad83f2ea_67217448.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c4e71fcfe4ad06dae8a6e6383e83a0ad_24533548.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7609f70a449ffc08c03e850940da496c_89675681.png change filename to text .imagette219905501743651841/ imagette219905501743651841/1743624974_1498303_1349612820_f668e64cb327d4e5c0affd27e256f1e9_rle_crop_3744874778_0.png.png imagette219905501743651841/1743624954_1497645_1349612704_f6f881339f2e6f84c8cea7dcc0256c69_rle_crop_3744872137_0.png.png imagette219905501743651841/1743624954_1497645_1349612638_7a4316ce6261cfe69dd233cfc4a25ede_rle_crop_3744874761_0.png.png imagette219905501743651841/1743624954_1497645_1349612673_edf8a6b822f7bca6148f829003fd96e8_rle_crop_3744874165_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1ea4f2a7bc51d25bb5aa5b6bd89c71e7_64498583.png imagette219905501743651841 21990551 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=21990551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349614666: '1743624974_1498303_1349612181_2b7e5a5f53ab96457dbc353b7e896989_rle_crop_3744876495_0.png', 1349642751: '1743627693_1530824_1349613643_7ebd175d5824300ac4d15d09f18c0ef9_rle_crop_3745126845_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bc29efad485adaa95f6b2aa79cd451f0_98384880.png change filename to text .imagette219905511743651842/ imagette219905511743651842/1743627693_1530824_1349613643_7ebd175d5824300ac4d15d09f18c0ef9_rle_crop_3745126845_0.png.png imagette219905511743651842/1743624974_1498303_1349612181_2b7e5a5f53ab96457dbc353b7e896989_rle_crop_3744876495_0.png.png imagette219905561743651842/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/dd4a7d0fe128229eee37d3ff26a6dfe1_50880305.png imagette219905511743651842 21990556 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=21990556 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219905561743651842 21990558 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=21990558 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349614128: '1743624934_1497250_1349613464_95f9188733591a0183de11a437e728db_rle_crop_3744858414_0.png', 1349642763: '1743627693_1530824_1349613648_e07e5d4703996592cd7a7153e307a2d8_rle_crop_3745126812_0.png', 1349642765: '1743627693_1530824_1349613640_e147db41f70311f5ae945a65d70ab125_rle_crop_3745126871_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/859d42ceaafb12a4afe8fd03bf652909_85455196.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8a2885f286c76c4d626f60b67b1a08e0_45738759.png change filename to text .imagette219905581743651842/ imagette219905581743651842/1743627693_1530824_1349613640_e147db41f70311f5ae945a65d70ab125_rle_crop_3745126871_0.png.png imagette219905581743651842/1743627693_1530824_1349613648_e07e5d4703996592cd7a7153e307a2d8_rle_crop_3745126812_0.png.png imagette219905581743651842/1743624934_1497250_1349613464_95f9188733591a0183de11a437e728db_rle_crop_3744858414_0.png.png imagette219905591743651842/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3f1839c138a4525e0896fe8ad56a1cf1_35486906.png imagette219905581743651842 21990559 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=21990559 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219905591743651842 21990552 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=21990552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349613728: '1743624914_1496675_1349613429_793b54b32f180edfa1100d8b7bebb33d_rle_crop_3744853972_0.png', 1349614670: '1743624974_1498303_1349612181_2b7e5a5f53ab96457dbc353b7e896989_rle_crop_3744876492_0.png', 1349642910: '1743627714_1531177_1349613429_793b54b32f180edfa1100d8b7bebb33d_rle_crop_3744853972_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3cf917957d455854f0b3d88355bb92da_41914897.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7953e7b5e5ae32971b7ad8a099d0746a_6124703.png change filename to text .imagette219905521743651842/ imagette219905521743651842/1743627714_1531177_1349613429_793b54b32f180edfa1100d8b7bebb33d_rle_crop_3744853972_0.png.png imagette219905521743651842/1743624914_1496675_1349613429_793b54b32f180edfa1100d8b7bebb33d_rle_crop_3744853972_0.png.png imagette219905521743651842/1743624974_1498303_1349612181_2b7e5a5f53ab96457dbc353b7e896989_rle_crop_3744876492_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3cf917957d455854f0b3d88355bb92da_47231770.png imagette219905521743651842 21990555 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=21990555 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349613718: '1743624914_1496675_1349613429_793b54b32f180edfa1100d8b7bebb33d_rle_crop_3744853971_0.png', 1349614106: '1743624934_1497250_1349613464_95f9188733591a0183de11a437e728db_rle_crop_3744858420_0.png', 1349614107: '1743624934_1497250_1349613122_307bc9d7c6ee983bf4171e584ec2781a_rle_crop_3744858558_0.png', 1349614109: '1743624934_1497250_1349613122_307bc9d7c6ee983bf4171e584ec2781a_rle_crop_3744858556_0.png', 1349614606: '1743624954_1497645_1349613148_3808e899055cfdd81a73c6905d63d014_rle_crop_3744870699_0.png', 1349614607: '1743624954_1497645_1349612740_ccdce1e84412e158b8f92d3ba4c3f6e8_rle_crop_3744870722_0.png', 1349614608: '1743624954_1497645_1349612638_7a4316ce6261cfe69dd233cfc4a25ede_rle_crop_3744874760_0.png', 1349642731: '1743627693_1530824_1349614154_66b27278cffb8f6696446ba482b24487_rle_crop_3745126756_0.png', 1349642732: '1743627693_1530824_1349614154_66b27278cffb8f6696446ba482b24487_rle_crop_3745126752_0.png', 1349642733: '1743627693_1530824_1349613653_e2b6fcedf2368f62d0a6be93836df29c_rle_crop_3745126793_0.png', 1349642735: '1743627693_1530824_1349613640_e147db41f70311f5ae945a65d70ab125_rle_crop_3745126880_0.png', 1349642737: '1743627693_1530824_1349613640_e147db41f70311f5ae945a65d70ab125_rle_crop_3745126873_0.png', 1349642843: '1743627714_1531177_1349613429_793b54b32f180edfa1100d8b7bebb33d_rle_crop_3744853971_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8c71d4d272957e33ff798c3b85c435cd_50890013.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ea7a0c994012becba156401d2664b027_48654015.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ebccbafc1c2bcf16c39ccd7891196144_57709535.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b354143bcbd1c43b388e109be312db07_40432630.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b195944fdc29395e77c888b3103a8d74_40549416.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/25ed57c954e0f92eb65f50708a1ad114_51401586.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4d85c54b0d295e3edd6abe65105c72b6_5519372.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2aefb27dda2c7420b2e6176eadc52d4e_31032775.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f243efab5926037c8c2108ff3a2c8864_83799054.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/492acd4bc736caa791d32aac14cc5466_82582169.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1a88822f4ae94e269b80ea3f20a37fc2_70420714.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/36202c8c527ec569f5a3afb81457abca_1972970.png change filename to text .imagette219905551743651842/ imagette219905551743651842/1743624934_1497250_1349613122_307bc9d7c6ee983bf4171e584ec2781a_rle_crop_3744858556_0.png.png imagette219905551743651842/1743624934_1497250_1349613464_95f9188733591a0183de11a437e728db_rle_crop_3744858420_0.png.png imagette219905551743651842/1743627693_1530824_1349613640_e147db41f70311f5ae945a65d70ab125_rle_crop_3745126873_0.png.png imagette219905551743651842/1743627693_1530824_1349614154_66b27278cffb8f6696446ba482b24487_rle_crop_3745126752_0.png.png imagette219905551743651842/1743627693_1530824_1349614154_66b27278cffb8f6696446ba482b24487_rle_crop_3745126756_0.png.png imagette219905551743651842/1743624914_1496675_1349613429_793b54b32f180edfa1100d8b7bebb33d_rle_crop_3744853971_0.png.png imagette219905551743651842/1743627693_1530824_1349613653_e2b6fcedf2368f62d0a6be93836df29c_rle_crop_3745126793_0.png.png imagette219905551743651842/1743624954_1497645_1349612638_7a4316ce6261cfe69dd233cfc4a25ede_rle_crop_3744874760_0.png.png imagette219905551743651842/1743624954_1497645_1349613148_3808e899055cfdd81a73c6905d63d014_rle_crop_3744870699_0.png.png imagette219905551743651842/1743627714_1531177_1349613429_793b54b32f180edfa1100d8b7bebb33d_rle_crop_3744853971_0.png.png imagette219905551743651842/1743624954_1497645_1349612740_ccdce1e84412e158b8f92d3ba4c3f6e8_rle_crop_3744870722_0.png.png imagette219905551743651842/1743624934_1497250_1349613122_307bc9d7c6ee983bf4171e584ec2781a_rle_crop_3744858558_0.png.png imagette219905551743651842/1743627693_1530824_1349613640_e147db41f70311f5ae945a65d70ab125_rle_crop_3745126880_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8c71d4d272957e33ff798c3b85c435cd_91523567.png imagette219905551743651842 21990557 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=21990557 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349614157: '1743624934_1497250_1349613464_95f9188733591a0183de11a437e728db_rle_crop_3744858423_0.png', 1349614626: '1743624954_1497645_1349613148_3808e899055cfdd81a73c6905d63d014_rle_crop_3744870698_0.png', 1349614627: '1743624954_1497645_1349612793_2a114bdb304c9bc28fc08c3e2e5bb0b3_rle_crop_3744870706_0.png', 1349614628: '1743624954_1497645_1349612740_ccdce1e84412e158b8f92d3ba4c3f6e8_rle_crop_3744870717_0.png', 1349614630: '1743624954_1497645_1349612673_edf8a6b822f7bca6148f829003fd96e8_rle_crop_3744874166_0.png', 1349642783: '1743627693_1530824_1349614154_66b27278cffb8f6696446ba482b24487_rle_crop_3745126753_0.png', 1349642785: '1743627693_1530824_1349613640_e147db41f70311f5ae945a65d70ab125_rle_crop_3745126877_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b15055ae8f1970d2d97bc62888679c11_48861397.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/815bf640efdbe49f44a481141c213c1e_26535941.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f22c5124929865b667e07d67b36bac64_62169438.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c0eae7456a400304562ce7ecbfa106d8_38315466.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0635cc1bb2b6372757188e4b47257fe8_11687739.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d166e7fccc7cd3128019f28c5d71e1e0_12553555.png change filename to text .imagette219905571743651844/ imagette219905571743651844/1743624934_1497250_1349613464_95f9188733591a0183de11a437e728db_rle_crop_3744858423_0.png.png imagette219905571743651844/1743624954_1497645_1349613148_3808e899055cfdd81a73c6905d63d014_rle_crop_3744870698_0.png.png imagette219905571743651844/1743627693_1530824_1349614154_66b27278cffb8f6696446ba482b24487_rle_crop_3745126753_0.png.png imagette219905571743651844/1743624954_1497645_1349612673_edf8a6b822f7bca6148f829003fd96e8_rle_crop_3744874166_0.png.png imagette219905571743651844/1743624954_1497645_1349612740_ccdce1e84412e158b8f92d3ba4c3f6e8_rle_crop_3744870717_0.png.png imagette219905571743651844/1743624954_1497645_1349612793_2a114bdb304c9bc28fc08c3e2e5bb0b3_rle_crop_3744870706_0.png.png imagette219905571743651844/1743627693_1530824_1349613640_e147db41f70311f5ae945a65d70ab125_rle_crop_3745126877_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8a29ebfce1060ba8628b2a8137236380_29866207.png imagette219905571743651844 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21990543 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21990560,21990561,21990562,21990563,21990564,21990565,21990566,21990567,21990568,21990569,21990570,21990571?tags=mal_croppe,flou,plastique,autre_refus,Carton_gris,environnement,papier,Teint_Dans_La_Masse,metal,Carton_brun,cartonnette,kraft your option no_mail is active, we will not send the real mail to your client args[1349614154] : ('0.043520923967274326',) no score found for photo 1349614154 We are sending mail with results at report@fotonower.com args[1349613660] : ('0.043520923967274326',) no score found for photo 1349613660 We are sending mail with results at report@fotonower.com args[1349613656] : ('0.043520923967274326',) no score found for photo 1349613656 We are sending mail with results at report@fotonower.com args[1349613653] : ('0.043520923967274326',) no score found for photo 1349613653 We are sending mail with results at report@fotonower.com args[1349613648] : ('0.043520923967274326',) no score found for photo 1349613648 We are sending mail with results at report@fotonower.com args[1349613643] : ('0.043520923967274326',) no score found for photo 1349613643 We are sending mail with results at report@fotonower.com args[1349613640] : ('0.043520923967274326',) no score found for photo 1349613640 We are sending mail with results at report@fotonower.com args[1349613464] : ('0.043520923967274326',) no score found for photo 1349613464 We are sending mail with results at report@fotonower.com args[1349613429] : ('0.043520923967274326',) no score found for photo 1349613429 We are sending mail with results at report@fotonower.com args[1349613402] : ('0.043520923967274326',) no score found for photo 1349613402 We are sending mail with results at report@fotonower.com args[1349613384] : ('0.043520923967274326',) no score found for photo 1349613384 We are sending mail with results at report@fotonower.com args[1349613148] : ('0.043520923967274326',) no score found for photo 1349613148 We are sending mail with results at report@fotonower.com args[1349613122] : ('0.043520923967274326',) no score found for photo 1349613122 We are sending mail with results at report@fotonower.com args[1349613088] : ('0.043520923967274326',) no score found for photo 1349613088 We are sending mail with results at report@fotonower.com args[1349612820] : ('0.043520923967274326',) no score found for photo 1349612820 We are sending mail with results at report@fotonower.com args[1349612793] : ('0.043520923967274326',) no score found for photo 1349612793 We are sending mail with results at report@fotonower.com args[1349612740] : ('0.043520923967274326',) no score found for photo 1349612740 We are sending mail with results at report@fotonower.com args[1349612704] : ('0.043520923967274326',) no score found for photo 1349612704 We are sending mail with results at report@fotonower.com args[1349612673] : ('0.043520923967274326',) no score found for photo 1349612673 We are sending mail with results at report@fotonower.com args[1349612638] : ('0.043520923967274326',) no score found for photo 1349612638 We are sending mail with results at report@fotonower.com args[1349612181] : ('0.043520923967274326',) no score found for photo 1349612181 We are sending mail with results at report@fotonower.com refus_total : 0.043520923967274326 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=21990543 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_P21990543_03-04-2025_05_44_01.pdf results_Auto_P21990543_03-04-2025_05_44_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990543_03-04-2025_05_44_01.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','21990543','results_Auto_P21990543_03-04-2025_05_44_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990543_03-04-2025_05_44_01.pdf','pdf','','0.26','0.043520923967274326') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21990543]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181] map_info['map_portfolio_photo'] : {21990543: [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181]} final : False mtd_id 4302 list_pids : [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181] 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, '2719061') ('4302', '21990543', '1349614154', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613660', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613656', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613653', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613648', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613643', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613640', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613464', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613429', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613402', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613384', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613148', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613122', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613088', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612820', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612793', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612740', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612704', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612673', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612638', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612181', None, None, None, None, None, '2719061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '21990543', '1349614154', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613660', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613656', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613653', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613648', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613643', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613640', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613464', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613429', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613402', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613384', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613148', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613122', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613088', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612820', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612793', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612740', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612704', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612673', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612638', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612181', None, None, None, None, None, '2719061')] time used for this insertion : 0.06336832046508789 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.547555446624756 time spend to save output : 0.06373977661132812 total time spend for step 4 : 5.611295223236084 step5:split_time_score Thu Apr 3 05:44:06 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 : ['21990543'] 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 : [('21990543',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21990543) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349614154: {'path': 'temp/1743651840_1520068_1349614154_66b27278cffb8f6696446ba482b24487.jpg', 'extension': 'jpg'}, 1349613643: {'path': 'temp/1743651840_1520068_1349613643_7ebd175d5824300ac4d15d09f18c0ef9.jpg', 'extension': 'jpg'}, 1349613648: {'path': 'temp/1743651840_1520068_1349613648_e07e5d4703996592cd7a7153e307a2d8.jpg', 'extension': 'jpg'}, 1349613653: {'path': 'temp/1743651840_1520068_1349613653_e2b6fcedf2368f62d0a6be93836df29c.jpg', 'extension': 'jpg'}, 1349613656: {'path': 'temp/1743651840_1520068_1349613656_a786af713b2ed1c6a12c4969dd74bdd2.jpg', 'extension': 'jpg'}, 1349613660: {'path': 'temp/1743651840_1520068_1349613660_c17a3fb1dc9e4ac8baf2ace4677e4310.jpg', 'extension': 'jpg'}, 1349612793: {'path': 'temp/1743651840_1520068_1349612793_2a114bdb304c9bc28fc08c3e2e5bb0b3.jpg', 'extension': 'jpg'}, 1349612820: {'path': 'temp/1743651840_1520068_1349612820_f668e64cb327d4e5c0affd27e256f1e9.jpg', 'extension': 'jpg'}, 1349613088: {'path': 'temp/1743651840_1520068_1349613088_e918af6e3b772db21036f7a7b90819a2.jpg', 'extension': 'jpg'}, 1349613122: {'path': 'temp/1743651840_1520068_1349613122_307bc9d7c6ee983bf4171e584ec2781a.jpg', 'extension': 'jpg'}, 1349613148: {'path': 'temp/1743651840_1520068_1349613148_3808e899055cfdd81a73c6905d63d014.jpg', 'extension': 'jpg'}, 1349612181: {'path': 'temp/1743651840_1520068_1349612181_2b7e5a5f53ab96457dbc353b7e896989.jpg', 'extension': 'jpg'}, 1349612638: {'path': 'temp/1743651840_1520068_1349612638_7a4316ce6261cfe69dd233cfc4a25ede.jpg', 'extension': 'jpg'}, 1349612673: {'path': 'temp/1743651840_1520068_1349612673_edf8a6b822f7bca6148f829003fd96e8.jpg', 'extension': 'jpg'}, 1349612704: {'path': 'temp/1743651840_1520068_1349612704_f6f881339f2e6f84c8cea7dcc0256c69.jpg', 'extension': 'jpg'}, 1349612740: {'path': 'temp/1743651840_1520068_1349612740_ccdce1e84412e158b8f92d3ba4c3f6e8.jpg', 'extension': 'jpg'}, 1349613384: {'path': 'temp/1743651840_1520068_1349613384_19a48d0c8176b95fb679e96b241f8462.jpg', 'extension': 'jpg'}, 1349613402: {'path': 'temp/1743651840_1520068_1349613402_af43f278170cca5ade070c8c43d82b91.jpg', 'extension': 'jpg'}, 1349613429: {'path': 'temp/1743651840_1520068_1349613429_793b54b32f180edfa1100d8b7bebb33d.jpg', 'extension': 'jpg'}, 1349613464: {'path': 'temp/1743651840_1520068_1349613464_95f9188733591a0183de11a437e728db.jpg', 'extension': 'jpg'}, 1349613640: {'path': 'temp/1743651840_1520068_1349613640_e147db41f70311f5ae945a65d70ab125.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 = 21990543; (('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 = 21990543 group by h (('22', 21),) 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=21990543 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 (21990543) 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 (21990543) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21990543 Nombre de photos uploadées : 21 / 23040 (0%) 02042025 21990543 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 02042025 21990543 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1349612181, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2b7e5a5f53ab96457dbc353b7e896989.jpg', 'username': None, 'uploaded_at': 1743624667, 'text': 'image_02042025_22_10_45_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349612820, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f668e64cb327d4e5c0affd27e256f1e9.jpg', 'username': None, 'uploaded_at': 1743624727, 'text': 'image_02042025_22_10_54_009126m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349612793, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2a114bdb304c9bc28fc08c3e2e5bb0b3.jpg', 'username': None, 'uploaded_at': 1743624727, 'text': 'image_02042025_22_11_04_010155m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349612740, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ccdce1e84412e158b8f92d3ba4c3f6e8.jpg', 'username': None, 'uploaded_at': 1743624727, 'text': 'image_02042025_22_11_14_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.291534423828125e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010259151458740234 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21990543, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.030970335006713867 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= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21965066, 'dashboard_result_id': 9834469, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965066_02-04-2025_05_54_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965079, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21965459, 'dashboard_result_id': 9834470, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965459_02-04-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965472, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21965950, 'dashboard_result_id': 9834471, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21966355, 'dashboard_result_id': 9834472, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966355_02-04-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966369, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21966736, 'dashboard_result_id': 9834473, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966736_02-04-2025_07_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966751, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21967292, 'dashboard_result_id': 9834474, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21967515, 'dashboard_result_id': 9834475, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21968589, 'dashboard_result_id': 9834476, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21969192, 'dashboard_result_id': 9834477, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969192_02-04-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21969199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969204, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21969684, 'dashboard_result_id': 9834478, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969684_02-04-2025_08_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21969712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969723, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21970477, 'dashboard_result_id': 9834479, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21970477_02-04-2025_08_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21970482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21970483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21970484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21970485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21970486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21970487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21970488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21970489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21970490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21970491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21970492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21970493, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21971233, 'dashboard_result_id': 9834480, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971233_02-04-2025_08_49_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971247, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21971650, 'dashboard_result_id': 9834481, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971650_03-04-2025_01_10_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971665, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998569, 'dashboard_result_id': 9834482, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998569_03-04-2025_01_10_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999318, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998570, 'dashboard_result_id': 9834483, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998570_03-04-2025_01_09_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999274, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999282, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998571, 'dashboard_result_id': 9834484, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998571_03-04-2025_01_09_38.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21999259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999270, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998572, 'dashboard_result_id': 9834485, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998572_03-04-2025_01_09_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999246, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998573, 'dashboard_result_id': 9834486, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998573_03-04-2025_01_08_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999206, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998574, 'dashboard_result_id': 9834487, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998574_03-04-2025_01_07_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999182, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998575, 'dashboard_result_id': 9834488, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998575_03-04-2025_01_07_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21999122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999134, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998576, 'dashboard_result_id': 9834489, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998576_03-04-2025_01_07_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999146, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998579, 'dashboard_result_id': 9834490, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998579_03-04-2025_01_07_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21999066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999071, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999078, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998612, 'dashboard_result_id': 9834491, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998612_03-04-2025_01_06_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999004, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998613, 'dashboard_result_id': 9834492, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998613_03-04-2025_01_06_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999027, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999028, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998614, 'dashboard_result_id': 9834493, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998614_03-04-2025_01_05_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21998946, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998639, 'dashboard_result_id': 9834494, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998639_03-04-2025_01_05_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21998931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998936, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998952, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998665, 'dashboard_result_id': 9834495, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998665_03-04-2025_01_05_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21998913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998915, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998692, 'dashboard_result_id': 9834496, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998692_03-04-2025_01_04_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998866, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21998867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998869, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998694, 'dashboard_result_id': 9834497, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998694_03-04-2025_01_03_43.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21998721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998744, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21998713, 'dashboard_result_id': 9834498, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998713_03-04-2025_01_03_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998730, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21998731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998734, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998738, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21972252, 'dashboard_result_id': 9834499, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972252_02-04-2025_15_59_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972308, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21972311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972313, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21972254, 'dashboard_result_id': 9834500, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972254_02-04-2025_16_00_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972372, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21972161, 'dashboard_result_id': 9834501, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972161_02-04-2025_15_58_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972238, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21972163, 'dashboard_result_id': 9834502, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972163_02-04-2025_16_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21972180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972182, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21972798, 'dashboard_result_id': 9834503, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972798_02-04-2025_16_17_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972842, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21974424, 'dashboard_result_id': 9834504, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21974424_02-04-2025_16_33_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21974478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21974479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21974480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21974481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21974482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21974483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21974484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21974486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21974490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21974495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21974500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21974501, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21975364, 'dashboard_result_id': 9834505, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21975364_02-04-2025_16_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21975385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21975386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21975387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21975388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21975389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21975390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21975391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21975392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21975393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21975394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21975395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21975396, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21976250, 'dashboard_result_id': 9834506, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976250_02-04-2025_17_02_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21976254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976265, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21976969, 'dashboard_result_id': 9834507, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976969_02-04-2025_17_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21976982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976983, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21977730, 'dashboard_result_id': 9834508, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21977730_02-04-2025_17_33_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21977782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21977783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21977784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21977785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21977786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21977787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21977788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21977789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21977790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21977791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21977792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21977793, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21980200, 'dashboard_result_id': 9834509, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980200_02-04-2025_18_19_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21980220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21980221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21980222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21980223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21980224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21980225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21980226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21980227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21980228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21980229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21980230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21980231, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21980993, 'dashboard_result_id': 9834510, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980993_02-04-2025_18_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21981035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981046, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21981615, 'dashboard_result_id': 9834511, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21981615_02-04-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21981652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981654, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21982272, 'dashboard_result_id': 9834512, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21983045, 'dashboard_result_id': 9834513, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21983779, 'dashboard_result_id': 9834514, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21984181, 'dashboard_result_id': 9834515, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21984997, 'dashboard_result_id': 9834516, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984997_02-04-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985045, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21985629, 'dashboard_result_id': 9834517, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21985629_02-04-2025_20_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985643, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21986350, 'dashboard_result_id': 9834518, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21986350_02-04-2025_20_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21986352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21986353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21986354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21986355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21986356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21986357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21986358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21986359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21986361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21986362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21986363, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21987045, 'dashboard_result_id': 9834519, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21987045_02-04-2025_21_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21987072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21987073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21987074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21987075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21987076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21987077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21987078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21987079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21987080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21987081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21987082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21987083, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21988115, 'dashboard_result_id': 9834520, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988115_02-04-2025_21_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21988122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988129, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21988550, 'dashboard_result_id': 9834521, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988550_02-04-2025_21_32_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21988618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988629, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21989220, 'dashboard_result_id': 9834522, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989220_02-04-2025_21_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989235, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21989749, 'dashboard_result_id': 9834523, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989749_02-04-2025_22_13_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989762, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21990543, 'dashboard_result_id': 9834524, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990543_02-04-2025_22_19_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21990556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990559, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21990823, 'dashboard_result_id': 9834525, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990823_03-04-2025_05_43_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21990864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990875, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21991914, 'dashboard_result_id': 9834526, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21991914_03-04-2025_05_41_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21992485, 'dashboard_result_id': 9834527, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21992485_03-04-2025_05_38_47.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21993320, 'dashboard_result_id': 9834528, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_03-04-2025_05_38_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21994250, 'dashboard_result_id': 9834529, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_03-04-2025_05_37_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21995162, 'dashboard_result_id': 9834530, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995162_03-04-2025_05_36_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995189, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1720333, 'mtr_portfolio_id': 21995734, 'dashboard_result_id': 9834531, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995734_03-04-2025_05_36_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995761, '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 = 21965066 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715415, 'mtr_portfolio_id': 21965066, 'created_at': datetime.datetime(2025, 4, 2, 5, 54, 30), 'result': '0.06865256931388193', 'result_long': None, 'result_double': None}] Qualite : 0.06865256931388193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21965066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965066_02-04-2025_05_54_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21965066 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965066_02-04-2025_05_54_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965079, 'pht': 3726}}" where mtr_portfolio_id = 21965066 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21965066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834469, 0.06865256931388193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965066_02-04-2025_05_54_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965079, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21965459 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715478, 'mtr_portfolio_id': 21965459, 'created_at': datetime.datetime(2025, 4, 2, 6, 18, 59), 'result': '0.03699761545588388', 'result_long': None, 'result_double': None}] Qualite : 0.03699761545588388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21965459 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965459_02-04-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21965459 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965459_02-04-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965472, 'pht': 3726}}" where mtr_portfolio_id = 21965459 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21965459 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834470, 0.03699761545588388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965459_02-04-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965472, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21965950 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715506, 'mtr_portfolio_id': 21965950, 'created_at': datetime.datetime(2025, 4, 2, 6, 32, 59), 'result': '0.040222582913804414', 'result_long': None, 'result_double': None}] Qualite : 0.040222582913804414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21965950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21965950 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, 'pht': 3726}}" where mtr_portfolio_id = 21965950 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21965950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834471, 0.040222582913804414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21966355 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715538, 'mtr_portfolio_id': 21966355, 'created_at': datetime.datetime(2025, 4, 2, 6, 48, 58), 'result': '0.05853413055267464', 'result_long': None, 'result_double': None}] Qualite : 0.05853413055267464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21966355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966355_02-04-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21966355 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966355_02-04-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966369, 'pht': 3726}}" where mtr_portfolio_id = 21966355 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21966355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834472, 0.05853413055267464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966355_02-04-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966369, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21966736 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715567, 'mtr_portfolio_id': 21966736, 'created_at': datetime.datetime(2025, 4, 2, 7, 2, 59), 'result': '0.05327455022977842', 'result_long': None, 'result_double': None}] Qualite : 0.05327455022977842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21966736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966736_02-04-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21966736 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966736_02-04-2025_07_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966751, 'pht': 3726}}" where mtr_portfolio_id = 21966736 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21966736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834473, 0.05327455022977842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966736_02-04-2025_07_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966751, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21967292 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715671, 'mtr_portfolio_id': 21967292, 'created_at': datetime.datetime(2025, 4, 2, 7, 22, 58), 'result': '0.04335168860141576', 'result_long': None, 'result_double': None}] Qualite : 0.04335168860141576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21967292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_22_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21967292 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, 'pht': 3726}}" where mtr_portfolio_id = 21967292 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21967292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834474, 0.04335168860141576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21967515 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715698, 'mtr_portfolio_id': 21967515, 'created_at': datetime.datetime(2025, 4, 2, 7, 32, 59), 'result': '0.034342358176222956', 'result_long': None, 'result_double': None}] Qualite : 0.034342358176222956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21967515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967515_02-04-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21967515 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, 'pht': 3726}}" where mtr_portfolio_id = 21967515 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21967515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834475, 0.034342358176222956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21968589 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715767, 'mtr_portfolio_id': 21968589, 'created_at': datetime.datetime(2025, 4, 2, 7, 46, 31), 'result': '0.04523367331598181', 'result_long': None, 'result_double': None}] Qualite : 0.04523367331598181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21968589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21968589 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, 'pht': 3726}}" where mtr_portfolio_id = 21968589 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21968589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834476, 0.04523367331598181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21969192 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715809, 'mtr_portfolio_id': 21969192, 'created_at': datetime.datetime(2025, 4, 2, 8, 3), 'result': '0.05020333979237098', 'result_long': None, 'result_double': None}] Qualite : 0.05020333979237098 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21969192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969192_02-04-2025_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21969192 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969192_02-04-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21969199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969204, 'pht': 3726}}" where mtr_portfolio_id = 21969192 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21969192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834477, 0.05020333979237098, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969192_02-04-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21969199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969204, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21969684 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715863, 'mtr_portfolio_id': 21969684, 'created_at': datetime.datetime(2025, 4, 2, 8, 19), 'result': '0.04463799718194004', 'result_long': None, 'result_double': None}] Qualite : 0.04463799718194004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21969684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969684_02-04-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21969684 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969684_02-04-2025_08_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21969712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969723, 'pht': 3726}}" where mtr_portfolio_id = 21969684 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21969684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834478, 0.04463799718194004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969684_02-04-2025_08_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21969712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969723, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21970477 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715918, 'mtr_portfolio_id': 21970477, 'created_at': datetime.datetime(2025, 4, 2, 8, 32, 57), 'result': '0.05129223180784693', 'result_long': None, 'result_double': None}] Qualite : 0.05129223180784693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21970477 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21970477_02-04-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21970477 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21970477_02-04-2025_08_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21970482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21970483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21970484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21970485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21970486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21970487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21970488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21970489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21970490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21970491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21970492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21970493, 'pht': 3726}}" where mtr_portfolio_id = 21970477 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21970477 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834479, 0.05129223180784693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21970477_02-04-2025_08_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21970482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21970483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21970484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21970485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21970486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21970487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21970488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21970489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21970490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21970491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21970492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21970493, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21971233 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2715985, 'mtr_portfolio_id': 21971233, 'created_at': datetime.datetime(2025, 4, 2, 8, 49, 7), 'result': '0.05528412368617842', 'result_long': None, 'result_double': None}] Qualite : 0.05528412368617842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21971233 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971233_02-04-2025_08_49_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21971233 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971233_02-04-2025_08_49_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971247, 'pht': 3726}}" where mtr_portfolio_id = 21971233 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21971233 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834480, 0.05528412368617842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971233_02-04-2025_08_49_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971247, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21971650 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2716016, 'mtr_portfolio_id': 21971650, 'created_at': datetime.datetime(2025, 4, 3, 1, 10, 29), 'result': '0.0447982511802468', 'result_long': None, 'result_double': None}] Qualite : 0.0447982511802468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21971650 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971650_03-04-2025_01_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21971650 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971650_03-04-2025_01_10_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971665, 'pht': 3726}}" where mtr_portfolio_id = 21971650 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21971650 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834481, 0.0447982511802468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971650_03-04-2025_01_10_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971665, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998569 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 = 21998569 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 = 21998569 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998569 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 = 21998569 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 = 21998569 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998569_03-04-2025_01_10_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998569 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998569_03-04-2025_01_10_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999318, 'pht': 3726}}" where mtr_portfolio_id = 21998569 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998570 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 = 21998570 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 = 21998570 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998570 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 = 21998570 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 = 21998570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998570_03-04-2025_01_09_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998570 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998570_03-04-2025_01_09_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999274, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999282, 'pht': 3726}}" where mtr_portfolio_id = 21998570 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998571 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 = 21998571 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 = 21998571 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998571 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 = 21998571 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 = 21998571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998571_03-04-2025_01_09_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998571 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998571_03-04-2025_01_09_38.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21999259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999270, 'pht': 3726}}" where mtr_portfolio_id = 21998571 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998572 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 = 21998572 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 = 21998572 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998572 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 = 21998572 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 = 21998572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998572_03-04-2025_01_09_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998572 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998572_03-04-2025_01_09_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999246, 'pht': 3726}}" where mtr_portfolio_id = 21998572 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998573 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 = 21998573 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 = 21998573 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998573 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 = 21998573 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 = 21998573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998573_03-04-2025_01_08_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998573 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998573_03-04-2025_01_08_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999206, 'pht': 3726}}" where mtr_portfolio_id = 21998573 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998574 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 = 21998574 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 = 21998574 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998574 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 = 21998574 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 = 21998574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998574_03-04-2025_01_07_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998574 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998574_03-04-2025_01_07_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999182, 'pht': 3726}}" where mtr_portfolio_id = 21998574 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998575 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 = 21998575 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 = 21998575 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998575 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 = 21998575 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 = 21998575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998575_03-04-2025_01_07_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998575 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998575_03-04-2025_01_07_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21999122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999134, 'pht': 3726}}" where mtr_portfolio_id = 21998575 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998576 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 = 21998576 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 = 21998576 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998576 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 = 21998576 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 = 21998576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998576_03-04-2025_01_07_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998576 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998576_03-04-2025_01_07_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999146, 'pht': 3726}}" where mtr_portfolio_id = 21998576 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998579 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 = 21998579 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 = 21998579 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998579 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 = 21998579 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 = 21998579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998579_03-04-2025_01_07_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998579 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998579_03-04-2025_01_07_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21999066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999071, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999078, 'pht': 3726}}" where mtr_portfolio_id = 21998579 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998612 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 = 21998612 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 = 21998612 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998612 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 = 21998612 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 = 21998612 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998612_03-04-2025_01_06_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998612 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998612_03-04-2025_01_06_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999004, 'pht': 3726}}" where mtr_portfolio_id = 21998612 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998613 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 = 21998613 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 = 21998613 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998613 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 = 21998613 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 = 21998613 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998613_03-04-2025_01_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998613 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998613_03-04-2025_01_06_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999027, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999028, 'pht': 3726}}" where mtr_portfolio_id = 21998613 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998614 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 = 21998614 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 = 21998614 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998614 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 = 21998614 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 = 21998614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998614_03-04-2025_01_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998614 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998614_03-04-2025_01_05_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21998946, 'pht': 3726}}" where mtr_portfolio_id = 21998614 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998639 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 = 21998639 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 = 21998639 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998639 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 = 21998639 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 = 21998639 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998639_03-04-2025_01_05_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998639 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998639_03-04-2025_01_05_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21998931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998936, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998952, 'pht': 3726}}" where mtr_portfolio_id = 21998639 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998665 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 = 21998665 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 = 21998665 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998665 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 = 21998665 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 = 21998665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998665_03-04-2025_01_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998665 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998665_03-04-2025_01_05_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21998913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998915, 'pht': 3726}}" where mtr_portfolio_id = 21998665 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998692 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 = 21998692 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 = 21998692 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998692 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 = 21998692 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 = 21998692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998692_03-04-2025_01_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998692 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998692_03-04-2025_01_04_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998866, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21998867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998869, 'pht': 3726}}" where mtr_portfolio_id = 21998692 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998694 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 = 21998694 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 = 21998694 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998694 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 = 21998694 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 = 21998694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998694_03-04-2025_01_03_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998694 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998694_03-04-2025_01_03_43.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21998721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998744, 'pht': 3726}}" where mtr_portfolio_id = 21998694 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998713 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 = 21998713 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 = 21998713 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998713 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 = 21998713 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 = 21998713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998713_03-04-2025_01_03_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998713 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998713_03-04-2025_01_03_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21998724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21998725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21998726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21998728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21998729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21998730, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21998731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21998733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21998734, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21998735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21998736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21998738, 'pht': 3726}}" where mtr_portfolio_id = 21998713 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21972252 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 = 21972252 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 = 21972252 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21972252 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 = 21972252 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 = 21972252 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972252_02-04-2025_15_59_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21972252 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972252_02-04-2025_15_59_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972308, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21972311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972313, 'pht': 3726}}" where mtr_portfolio_id = 21972252 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21972254 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 = 21972254 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 = 21972254 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21972254 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 = 21972254 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 = 21972254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972254_02-04-2025_16_00_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21972254 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972254_02-04-2025_16_00_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972372, 'pht': 3726}}" where mtr_portfolio_id = 21972254 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21972161 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 = 21972161 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 = 21972161 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21972161 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 = 21972161 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 = 21972161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972161_02-04-2025_15_58_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21972161 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972161_02-04-2025_15_58_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972238, 'pht': 3726}}" where mtr_portfolio_id = 21972161 and dashboard_run_id = 1720333 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21972163 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2716051, 'mtr_portfolio_id': 21972163, 'created_at': datetime.datetime(2025, 4, 2, 16, 3), 'result': '0.05267951214092447', 'result_long': None, 'result_double': None}] Qualite : 0.05267951214092447 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21972163 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972163_02-04-2025_16_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21972163 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972163_02-04-2025_16_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21972180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972182, 'pht': 3726}}" where mtr_portfolio_id = 21972163 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21972163 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834502, 0.05267951214092447, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972163_02-04-2025_16_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21972180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972182, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21972798 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2716247, 'mtr_portfolio_id': 21972798, 'created_at': datetime.datetime(2025, 4, 2, 16, 17, 8), 'result': '0.04454951203202496', 'result_long': None, 'result_double': None}] Qualite : 0.04454951203202496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21972798 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972798_02-04-2025_16_17_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21972798 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972798_02-04-2025_16_17_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972842, 'pht': 3726}}" where mtr_portfolio_id = 21972798 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21972798 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834503, 0.04454951203202496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972798_02-04-2025_16_17_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972842, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21974424 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2716525, 'mtr_portfolio_id': 21974424, 'created_at': datetime.datetime(2025, 4, 2, 16, 33, 6), 'result': '0.061252814750167715', 'result_long': None, 'result_double': None}] Qualite : 0.061252814750167715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21974424 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21974424_02-04-2025_16_33_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21974424 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21974424_02-04-2025_16_33_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21974478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21974479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21974480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21974481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21974482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21974483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21974484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21974486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21974490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21974495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21974500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21974501, 'pht': 3726}}" where mtr_portfolio_id = 21974424 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21974424 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834504, 0.061252814750167715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21974424_02-04-2025_16_33_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21974478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21974479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21974480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21974481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21974482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21974483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21974484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21974486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21974490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21974495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21974500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21974501, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21975364 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2716589, 'mtr_portfolio_id': 21975364, 'created_at': datetime.datetime(2025, 4, 2, 16, 48, 58), 'result': '0.039526264555899526', 'result_long': None, 'result_double': None}] Qualite : 0.039526264555899526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21975364 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21975364_02-04-2025_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21975364 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21975364_02-04-2025_16_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21975385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21975386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21975387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21975388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21975389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21975390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21975391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21975392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21975393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21975394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21975395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21975396, 'pht': 3726}}" where mtr_portfolio_id = 21975364 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21975364 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834505, 0.039526264555899526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21975364_02-04-2025_16_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21975385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21975386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21975387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21975388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21975389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21975390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21975391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21975392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21975393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21975394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21975395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21975396, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21976250 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2716660, 'mtr_portfolio_id': 21976250, 'created_at': datetime.datetime(2025, 4, 2, 17, 2, 33), 'result': '0.04106087082866955', 'result_long': None, 'result_double': None}] Qualite : 0.04106087082866955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21976250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976250_02-04-2025_17_02_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21976250 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976250_02-04-2025_17_02_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21976254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976265, 'pht': 3726}}" where mtr_portfolio_id = 21976250 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21976250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834506, 0.04106087082866955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976250_02-04-2025_17_02_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21976254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976265, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21976969 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2716779, 'mtr_portfolio_id': 21976969, 'created_at': datetime.datetime(2025, 4, 2, 17, 18, 59), 'result': '0.04335864282878315', 'result_long': None, 'result_double': None}] Qualite : 0.04335864282878315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21976969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976969_02-04-2025_17_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21976969 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976969_02-04-2025_17_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21976982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976983, 'pht': 3726}}" where mtr_portfolio_id = 21976969 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21976969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834507, 0.04335864282878315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976969_02-04-2025_17_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21976982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976983, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21977730 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2716829, 'mtr_portfolio_id': 21977730, 'created_at': datetime.datetime(2025, 4, 2, 17, 33, 6), 'result': '0.050358595180812406', 'result_long': None, 'result_double': None}] Qualite : 0.050358595180812406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21977730 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21977730_02-04-2025_17_33_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21977730 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21977730_02-04-2025_17_33_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21977782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21977783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21977784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21977785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21977786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21977787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21977788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21977789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21977790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21977791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21977792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21977793, 'pht': 3726}}" where mtr_portfolio_id = 21977730 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21977730 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834508, 0.050358595180812406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21977730_02-04-2025_17_33_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21977782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21977783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21977784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21977785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21977786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21977787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21977788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21977789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21977790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21977791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21977792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21977793, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21980200 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717031, 'mtr_portfolio_id': 21980200, 'created_at': datetime.datetime(2025, 4, 2, 18, 19, 1), 'result': '0.04963321400999219', 'result_long': None, 'result_double': None}] Qualite : 0.04963321400999219 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21980200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980200_02-04-2025_18_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21980200 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980200_02-04-2025_18_19_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21980220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21980221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21980222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21980223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21980224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21980225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21980226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21980227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21980228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21980229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21980230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21980231, 'pht': 3726}}" where mtr_portfolio_id = 21980200 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21980200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834509, 0.04963321400999219, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980200_02-04-2025_18_19_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21980220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21980221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21980222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21980223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21980224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21980225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21980226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21980227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21980228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21980229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21980230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21980231, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21980993 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717073, 'mtr_portfolio_id': 21980993, 'created_at': datetime.datetime(2025, 4, 2, 18, 33, 28), 'result': '0.04294571312738064', 'result_long': None, 'result_double': None}] Qualite : 0.04294571312738064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21980993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980993_02-04-2025_18_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21980993 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980993_02-04-2025_18_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21981035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981046, 'pht': 3726}}" where mtr_portfolio_id = 21980993 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21980993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834510, 0.04294571312738064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980993_02-04-2025_18_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21981035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981046, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21981615 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717132, 'mtr_portfolio_id': 21981615, 'created_at': datetime.datetime(2025, 4, 2, 18, 48, 58), 'result': '0.04685903695457557', 'result_long': None, 'result_double': None}] Qualite : 0.04685903695457557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21981615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21981615_02-04-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21981615 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21981615_02-04-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21981652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981654, 'pht': 3726}}" where mtr_portfolio_id = 21981615 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21981615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834511, 0.04685903695457557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21981615_02-04-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21981652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981654, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21982272 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717173, 'mtr_portfolio_id': 21982272, 'created_at': datetime.datetime(2025, 4, 2, 19, 3), 'result': '0.03891199199274584', 'result_long': None, 'result_double': None}] Qualite : 0.03891199199274584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21982272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21982272 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, 'pht': 3726}}" where mtr_portfolio_id = 21982272 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21982272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834512, 0.03891199199274584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21983045 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717236, 'mtr_portfolio_id': 21983045, 'created_at': datetime.datetime(2025, 4, 2, 19, 16, 57), 'result': '0.04554435823533873', 'result_long': None, 'result_double': None}] Qualite : 0.04554435823533873 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21983045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21983045 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, 'pht': 3726}}" where mtr_portfolio_id = 21983045 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21983045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834513, 0.04554435823533873, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21983779 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717284, 'mtr_portfolio_id': 21983779, 'created_at': datetime.datetime(2025, 4, 2, 19, 32, 59), 'result': '0.0673209137893428', 'result_long': None, 'result_double': None}] Qualite : 0.0673209137893428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21983779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21983779 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, 'pht': 3726}}" where mtr_portfolio_id = 21983779 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21983779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834514, 0.0673209137893428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21984181 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717323, 'mtr_portfolio_id': 21984181, 'created_at': datetime.datetime(2025, 4, 2, 19, 46, 59), 'result': '0.05459668629207812', 'result_long': None, 'result_double': None}] Qualite : 0.05459668629207812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21984181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21984181 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, 'pht': 3726}}" where mtr_portfolio_id = 21984181 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21984181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834515, 0.05459668629207812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21984997 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717386, 'mtr_portfolio_id': 21984997, 'created_at': datetime.datetime(2025, 4, 2, 20, 3), 'result': '0.05394130131453614', 'result_long': None, 'result_double': None}] Qualite : 0.05394130131453614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21984997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984997_02-04-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21984997 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984997_02-04-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985045, 'pht': 3726}}" where mtr_portfolio_id = 21984997 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21984997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834516, 0.05394130131453614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984997_02-04-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985045, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21985629 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717455, 'mtr_portfolio_id': 21985629, 'created_at': datetime.datetime(2025, 4, 2, 20, 17), 'result': '0.04799028614957448', 'result_long': None, 'result_double': None}] Qualite : 0.04799028614957448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21985629 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21985629_02-04-2025_20_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21985629 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21985629_02-04-2025_20_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985643, 'pht': 3726}}" where mtr_portfolio_id = 21985629 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21985629 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834517, 0.04799028614957448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21985629_02-04-2025_20_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985643, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21986350 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717500, 'mtr_portfolio_id': 21986350, 'created_at': datetime.datetime(2025, 4, 2, 20, 33), 'result': '0.06650561200153669', 'result_long': None, 'result_double': None}] Qualite : 0.06650561200153669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21986350 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21986350_02-04-2025_20_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21986350 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21986350_02-04-2025_20_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21986352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21986353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21986354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21986355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21986356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21986357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21986358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21986359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21986361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21986362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21986363, 'pht': 3726}}" where mtr_portfolio_id = 21986350 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21986350 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834518, 0.06650561200153669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21986350_02-04-2025_20_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21986352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21986353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21986354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21986355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21986356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21986357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21986358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21986359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21986361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21986362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21986363, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21987045 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717563, 'mtr_portfolio_id': 21987045, 'created_at': datetime.datetime(2025, 4, 2, 21, 2, 59), 'result': '0.05949485987746661', 'result_long': None, 'result_double': None}] Qualite : 0.05949485987746661 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21987045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21987045_02-04-2025_21_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21987045 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21987045_02-04-2025_21_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21987072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21987073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21987074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21987075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21987076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21987077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21987078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21987079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21987080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21987081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21987082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21987083, 'pht': 3726}}" where mtr_portfolio_id = 21987045 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21987045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834519, 0.05949485987746661, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21987045_02-04-2025_21_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21987072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21987073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21987074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21987075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21987076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21987077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21987078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21987079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21987080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21987081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21987082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21987083, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21988115 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717666, 'mtr_portfolio_id': 21988115, 'created_at': datetime.datetime(2025, 4, 2, 21, 19), 'result': '0.04083338573309732', 'result_long': None, 'result_double': None}] Qualite : 0.04083338573309732 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21988115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988115_02-04-2025_21_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21988115 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988115_02-04-2025_21_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21988122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988129, 'pht': 3726}}" where mtr_portfolio_id = 21988115 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21988115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834520, 0.04083338573309732, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988115_02-04-2025_21_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21988122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988129, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21988550 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717695, 'mtr_portfolio_id': 21988550, 'created_at': datetime.datetime(2025, 4, 2, 21, 32, 30), 'result': '0.05492749853373801', 'result_long': None, 'result_double': None}] Qualite : 0.05492749853373801 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21988550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988550_02-04-2025_21_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21988550 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988550_02-04-2025_21_32_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21988618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988629, 'pht': 3726}}" where mtr_portfolio_id = 21988550 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21988550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834521, 0.05492749853373801, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988550_02-04-2025_21_32_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21988618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988629, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21989220 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717751, 'mtr_portfolio_id': 21989220, 'created_at': datetime.datetime(2025, 4, 2, 21, 48, 58), 'result': '0.04760866089784744', 'result_long': None, 'result_double': None}] Qualite : 0.04760866089784744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21989220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989220_02-04-2025_21_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21989220 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989220_02-04-2025_21_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989235, 'pht': 3726}}" where mtr_portfolio_id = 21989220 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21989220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834522, 0.04760866089784744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989220_02-04-2025_21_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989235, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21989749 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2717793, 'mtr_portfolio_id': 21989749, 'created_at': datetime.datetime(2025, 4, 2, 22, 13), 'result': '0.04490013312089892', 'result_long': None, 'result_double': None}] Qualite : 0.04490013312089892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21989749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989749_02-04-2025_22_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21989749 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989749_02-04-2025_22_13_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989762, 'pht': 3726}}" where mtr_portfolio_id = 21989749 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21989749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834523, 0.04490013312089892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989749_02-04-2025_22_13_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989762, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21990543 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2719061, 'mtr_portfolio_id': 21990543, 'created_at': datetime.datetime(2025, 4, 3, 5, 44), 'result': '0.043520923967274326', 'result_long': None, 'result_double': None}] Qualite : 0.043520923967274326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21990543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990543_03-04-2025_05_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21990543 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990543_03-04-2025_05_44_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21990556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990559, 'pht': 3726}}" where mtr_portfolio_id = 21990543 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21990543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834524, 0.043520923967274326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990543_03-04-2025_05_44_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21990556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990559, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21990823 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2719062, 'mtr_portfolio_id': 21990823, 'created_at': datetime.datetime(2025, 4, 3, 5, 43, 30), 'result': '0.04773022996927406', 'result_long': None, 'result_double': None}] Qualite : 0.04773022996927406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21990823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990823_03-04-2025_05_43_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21990823 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990823_03-04-2025_05_43_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21990864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990875, 'pht': 3726}}" where mtr_portfolio_id = 21990823 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21990823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834525, 0.04773022996927406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990823_03-04-2025_05_43_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21990864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990875, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21991914 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2719063, 'mtr_portfolio_id': 21991914, 'created_at': datetime.datetime(2025, 4, 3, 5, 41, 5), 'result': '0.04321091433418179', 'result_long': None, 'result_double': None}] Qualite : 0.04321091433418179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21991914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21991914_03-04-2025_05_41_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21991914 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21991914_03-04-2025_05_41_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, 'pht': 3726}}" where mtr_portfolio_id = 21991914 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21991914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834526, 0.04321091433418179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21991914_03-04-2025_05_41_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21992485 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2719064, 'mtr_portfolio_id': 21992485, 'created_at': datetime.datetime(2025, 4, 3, 5, 38, 34), 'result': '0.054962088960148994', 'result_long': None, 'result_double': None}] Qualite : 0.054962088960148994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21992485 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21992485_03-04-2025_05_38_47.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21992485 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21992485_03-04-2025_05_38_47.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, 'pht': 3726}}" where mtr_portfolio_id = 21992485 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21992485 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834527, 0.054962088960148994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21992485_03-04-2025_05_38_47.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21993320 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2719065, 'mtr_portfolio_id': 21993320, 'created_at': datetime.datetime(2025, 4, 3, 5, 38), 'result': '0.04808564016519448', 'result_long': None, 'result_double': None}] Qualite : 0.04808564016519448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21993320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_03-04-2025_05_38_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21993320 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_03-04-2025_05_38_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, 'pht': 3726}}" where mtr_portfolio_id = 21993320 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21993320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834528, 0.04808564016519448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_03-04-2025_05_38_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21994250 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2719066, 'mtr_portfolio_id': 21994250, 'created_at': datetime.datetime(2025, 4, 3, 5, 37, 29), 'result': '0.04540615758888029', 'result_long': None, 'result_double': None}] Qualite : 0.04540615758888029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21994250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_03-04-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21994250 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_03-04-2025_05_37_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, 'pht': 3726}}" where mtr_portfolio_id = 21994250 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21994250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834529, 0.04540615758888029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_03-04-2025_05_37_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21995162 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2719067, 'mtr_portfolio_id': 21995162, 'created_at': datetime.datetime(2025, 4, 3, 5, 36, 30), 'result': '0.054251953482370587', 'result_long': None, 'result_double': None}] Qualite : 0.054251953482370587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21995162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995162_03-04-2025_05_36_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21995162 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995162_03-04-2025_05_36_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995189, 'pht': 3726}}" where mtr_portfolio_id = 21995162 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21995162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834530, 0.054251953482370587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995162_03-04-2025_05_36_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995189, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21995734 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2719068, 'mtr_portfolio_id': 21995734, 'created_at': datetime.datetime(2025, 4, 3, 5, 36), 'result': '0.054176513107686945', 'result_long': None, 'result_double': None}] Qualite : 0.054176513107686945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21995734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995734_03-04-2025_05_36_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21995734 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995734_03-04-2025_05_36_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995761, 'pht': 3726}}" where mtr_portfolio_id = 21995734 and dashboard_run_id = 1720333 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21995734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9834531, 0.054176513107686945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995734_03-04-2025_05_36_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995761, '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 (21965066,21965459,21965950,21966355,21966736,21967292,21967515,21968589,21969192,21969684,21970477,21971233,21971650,21998569,21998570,21998571,21998572,21998573,21998574,21998575,21998576,21998579,21998612,21998613,21998614,21998639,21998665,21998692,21998694,21998713,21972252,21972254,21972161,21972163,21972798,21974424,21975364,21976250,21976969,21977730,21980200,21980993,21981615,21982272,21983045,21983779,21984181,21984997,21985629,21986350,21987045,21988115,21988550,21989220,21989749,21990543,21990823,21991914,21992485,21993320,21994250,21995162,21995734) result : ((1349455628,), (1349456107,), (1349456769,), (1349456777,), (1349456780,), (1349457093,), (1349457220,), (1349457223,), (1349457267,), (1349457303,), (1349457306,), (1349457307,), (1349457315,), (1349457345,), (1349457380,), (1349457384,), (1349457415,), (1349457475,), (1349457478,), (1349457506,), (1349458637,), (1349459755,), (1349459786,), (1349459808,), (1349459821,), (1349460035,), (1349460058,), (1349460107,), (1349460133,), (1349460502,), (1349460530,), (1349460556,), (1349460582,), (1349460612,), (1349460871,), (1349460899,), (1349460937,), (1349460966,), (1349460996,), (1349461022,), (1349461232,), (1349461255,), (1349461275,), (1349461299,), (1349461380,), (1349461382,), (1349461384,), (1349461386,), (1349461389,), (1349461391,), (1349461466,), (1349461485,), (1349461510,), (1349461538,), (1349461751,), (1349461756,), (1349461758,), (1349461772,), (1349461800,), (1349461811,), (1349461838,), (1349461839,), (1349461840,), (1349461841,), (1349461884,), (1349461887,), (1349461890,), (1349461892,), (1349461895,), (1349461897,), (1349461929,), (1349461931,), (1349461933,), (1349461937,), (1349461976,), (1349461979,), (1349461982,), (1349461985,), (1349461989,), (1349462008,), (1349462010,), (1349462012,), (1349462015,), (1349462021,), (1349462051,), (1349462054,), (1349462057,), (1349462059,), (1349462062,), (1349462065,), (1349462086,), (1349462089,), (1349462091,), (1349462093,), (1349462099,), (1349462149,), (1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,), (1349462713,), (1349462715,), (1349462716,), (1349462719,), (1349462752,), (1349462757,), (1349462758,), (1349462759,), (1349462762,), (1349462765,), (1349462784,), (1349462786,), (1349462792,), (1349462795,), (1349462824,), (1349462826,), (1349462829,), (1349462832,), (1349462835,), (1349462837,), (1349462856,), (1349462859,), (1349462861,), (1349462863,), (1349462894,), (1349462900,), (1349462908,), (1349462918,), (1349462923,), (1349462927,), (1349462954,), (1349462957,), (1349462960,), (1349462963,), (1349462964,), (1349463005,), (1349463006,), (1349463007,), (1349463008,), (1349463011,), (1349463014,), (1349463033,), (1349463036,), (1349463039,), (1349463042,), (1349463076,), (1349463078,), (1349463080,), (1349463088,), (1349463093,), (1349463126,), (1349463128,), (1349463130,), (1349463131,), (1349463134,), (1349463187,), (1349463190,), (1349463192,), (1349463194,), (1349463197,), (1349463222,), (1349463223,), (1349463224,), (1349463225,), (1349463228,), (1349463256,), (1349463261,), (1349463274,), (1349463279,), (1349463307,), (1349463310,), (1349463311,), (1349463312,), (1349463361,), (1349463352,), (1349463354,), (1349463356,), (1349463358,), (1349463381,), (1349463384,), (1349463387,), (1349463390,), (1349463393,), (1349463422,), (1349463425,), (1349463427,), (1349463451,), (1349463454,), (1349463489,), (1349463532,), (1349463534,), (1349463536,), (1349463538,), (1349463564,), (1349463565,), (1349463566,), (1349463567,), (1349463594,), (1349463597,), (1349463599,), (1349463635,), (1349463645,), (1349463648,), (1349463650,), (1349463675,), (1349463676,), (1349463705,), (1349463708,), (1349463711,), (1349463716,), (1349463738,), (1349463740,), (1349463741,), (1349464021,), (1349464022,), (1349464024,), (1349464026,), (1349464040,), (1349464590,), (1349464620,), (1349464650,), (1349464685,), (1349465006,), (1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,), (1349466860,), (1349466902,), (1349466919,), (1349466936,), (1349466941,), (1349466955,), (1349467043,), (1349467053,), (1349467056,), (1349467137,), (1349467140,), (1349467172,), (1349467179,), (1349467185,), (1349467203,), (1349467208,), (1349467212,), (1349467216,), (1349467220,), (1349467226,), (1349467242,), (1349467247,), (1349467254,), (1349467259,), (1349467277,), (1349467283,), (1349467284,), (1349467286,), (1349467288,), (1349467291,), (1349467324,), (1349467340,), (1349467342,), (1349467381,), (1349467410,), (1349467103,), (1349467104,), (1349467110,), (1349467111,), (1349467119,), (1349467120,), (1349467124,), (1349467125,), (1349467130,), (1349467131,), (1349467155,), (1349467156,), (1349467157,), (1349467158,), (1349467159,), (1349467160,), (1349467164,), (1349467165,), (1349467169,), (1349467236,), (1349467238,), (1349467305,), (1349467309,), (1349467314,), (1349467354,), (1349467374,), (1349467457,), (1349467460,), (1349467463,), (1349467467,), (1349467538,), (1349467542,), (1349467545,), (1349467569,), (1349467618,), (1349467794,), (1349467797,), (1349467801,), (1349467808,), (1349467853,), (1349467858,), (1349467862,), (1349467867,), (1349467936,), (1349467948,), (1349467951,), (1349467954,), (1349467967,), (1349467987,), (1349468328,), (1349468356,), (1349468391,), (1349468438,), (1349468454,), (1349468456,), (1349468516,), (1349468520,), (1349468527,), (1349468530,), (1349468714,), (1349468718,), (1349468722,), (1349468726,), (1349468729,), (1349468732,), (1349468791,), (1349468795,), (1349468804,), (1349468810,), (1349469000,), (1349468878,), (1349468903,), (1349468928,), (1349468956,), (1349468986,), (1349469137,), (1349469146,), (1349469150,), (1349469155,), (1349469160,), (1349469241,), (1349469251,), (1349469254,), (1349469258,), (1349469261,), (1349469267,), (1349469310,), (1349469312,), (1349469314,), (1349469319,), (1349469376,), (1349469382,), (1349469419,), (1349469446,), (1349469461,), (1349469639,), (1349469650,), (1349469654,), (1349469659,), (1349469664,), (1349469673,), (1349469730,), (1349469766,), (1349469792,), (1349469994,), (1349470006,), (1349470014,), (1349470028,), (1349470032,), (1349470110,), (1349470136,), (1349470160,), (1349470163,), (1349470204,), (1349470206,), (1349470209,), (1349470212,), (1349470215,), (1349470226,), (1349470267,), (1349470285,), (1349470322,), (1349470376,), (1349470386,), (1349470403,), (1349470411,), (1349470421,), (1349470428,), (1349470492,), (1349470497,), (1349470501,), (1349470504,), (1349470510,), (1349470566,), (1349470570,), (1349470575,), (1349470579,), (1349470721,), (1349470724,), (1349470726,), (1349470728,), (1349470732,), (1349470737,), (1349470797,), (1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,), (1349471738,), (1349471743,), (1349471754,), (1349471765,), (1349472350,), (1349472379,), (1349472453,), (1349472498,), (1349472566,), (1349472613,), (1349472719,), (1349472770,), (1349472819,), (1349472853,), (1349473106,), (1349472948,), (1349473006,), (1349473070,), (1349473325,), (1349473374,), (1349473402,), (1349473453,), (1349473488,), (1349473550,), (1349473657,), (1349473665,), (1349473679,), (1349473930,), (1349473951,), (1349473982,), (1349475047,), (1349475081,), (1349475437,), (1349475450,), (1349475480,), (1349475502,), (1349475507,), (1349475625,), (1349475627,), (1349475662,), (1349475671,), (1349475676,), (1349475775,), (1349475779,), (1349475783,), (1349475787,), (1349475845,), (1349475851,), (1349475862,), (1349475865,), (1349475900,), (1349475911,), (1349475915,), (1349475919,), (1349475973,), (1349475978,), (1349475982,), (1349475984,), (1349476025,), (1349476028,), (1349476033,), (1349476037,), (1349476055,), (1349476151,), (1349476130,), (1349476135,), (1349476140,), (1349476146,), (1349476198,), (1349476210,), (1349476220,), (1349476301,), (1349476321,), (1349476334,), (1349476338,), (1349476344,), (1349476468,), (1349476479,), (1349476484,), (1349476487,), (1349476801,), (1349476807,), (1349476841,), (1349476849,), (1349476864,), (1349476869,), (1349477068,), (1349477101,), (1349477167,), (1349477227,), (1349477425,), (1349477460,), (1349477508,), (1349477535,), (1349477538,), (1349477542,), (1349477579,), (1349477583,), (1349477589,), (1349477595,), (1349477664,), (1349477683,), (1349477694,), (1349477704,), (1349477709,), (1349477727,), (1349477778,), (1349477782,), (1349477791,), (1349477797,), (1349477898,), (1349477902,), (1349477903,), (1349477915,), (1349477919,), (1349477927,), (1349477990,), (1349477992,), (1349478006,), (1349478205,), (1349478207,), (1349478210,), (1349478214,), (1349478217,), (1349478221,), (1349478252,), (1349478256,), (1349478260,), (1349478264,), (1349478302,), (1349478306,), (1349478308,), (1349478310,), (1349478314,), (1349478377,), (1349478364,), (1349478368,), (1349478373,), (1349478428,), (1349478441,), (1349479040,), (1349479178,), (1349479180,), (1349479183,), (1349479186,), (1349479345,), (1349479368,), (1349479393,), (1349479419,), (1349479442,), (1349479641,), (1349479644,), (1349479646,), (1349479648,), (1349479693,), (1349479695,), (1349479697,), (1349479700,), (1349479704,), (1349479709,), (1349479785,), (1349479786,), (1349479788,), (1349479797,), (1349479892,), (1349479954,), (1349479984,), (1349480009,), (1349480025,), (1349480041,), (1349480086,), (1349480088,), (1349480091,), (1349480094,), (1349480190,), (1349480193,), (1349480197,), (1349480200,), (1349480205,), (1349480209,), (1349480247,), (1349480233,), (1349480236,), (1349480241,), (1349480244,), (1349480343,), (1349480346,), (1349480349,), (1349480353,), (1349480357,), (1349480360,), (1349480483,), (1349480485,), (1349480512,), (1349480515,), (1349480544,), (1349480546,), (1349480548,), (1349480553,), (1349480557,), (1349480563,), (1349480583,), (1349480586,), (1349480590,), (1349480599,), (1349480632,), (1349480761,), (1349480771,), (1349480779,), (1349480785,), (1349480789,), (1349480808,), (1349480888,), (1349480896,), (1349480957,), (1349480960,), (1349481108,), (1349481115,), (1349481117,), (1349481122,), (1349481133,), (1349481136,), (1349481248,), (1349481252,), (1349481255,), (1349481257,), (1349481290,), (1349481293,), (1349481296,), (1349481298,), (1349481302,), (1349481305,), (1349481333,), (1349481336,), (1349481342,), (1349481345,), (1349481348,), (1349481350,), (1349481374,), (1349481375,), (1349481377,), (1349481378,), (1349481407,), (1349481410,), (1349481415,), (1349481418,), (1349481420,), (1349481423,), (1349481465,), (1349481470,), (1349481477,), (1349481480,), (1349481488,), (1349481495,), (1349481512,), (1349481514,), (1349481522,), (1349500269,), (1349500273,), (1349500277,), (1349500279,), (1349500315,), (1349500320,), (1349500324,), (1349500328,), (1349500331,), (1349500358,), (1349500367,), (1349500369,), (1349500373,), (1349500375,), (1349500403,), (1349500405,), (1349500410,), (1349500445,), (1349500448,), (1349500451,), (1349500453,), (1349500455,), (1349500460,), (1349500485,), (1349500490,), (1349500495,), (1349500499,), (1349500502,), (1349500505,), (1349500535,), (1349500538,), (1349500541,), (1349500543,), (1349500579,), (1349500581,), (1349500585,), (1349500590,), (1349500594,), (1349500597,), (1349500625,), (1349500631,), (1349500635,), (1349500639,), (1349500669,), (1349500672,), (1349500676,), (1349500682,), (1349500687,), (1349500720,), (1349500723,), (1349500728,), (1349500733,), (1349500737,), (1349500739,), (1349500767,), (1349500769,), (1349500774,), (1349500809,), (1349500813,), (1349500817,), (1349500821,), (1349500824,), (1349500827,), (1349500852,), (1349500856,), (1349500861,), (1349500865,), (1349500898,), (1349500900,), (1349500904,), (1349500908,), (1349500914,), (1349500916,), (1349500962,), (1349500955,), (1349500958,), (1349501001,), (1349501004,), (1349501008,), (1349501012,), (1349501015,), (1349501049,), (1349501052,), (1349501056,), (1349501094,), (1349501097,), (1349501101,), (1349501134,), (1349501136,), (1349501140,), (1349501143,), (1349501145,), (1349501148,), (1349501185,), (1349501187,), (1349501192,), (1349501195,), (1349501198,), (1349501230,), (1349501233,), (1349501236,), (1349501238,), (1349501241,), (1349501275,), (1349501277,), (1349501281,), (1349501284,), (1349501317,), (1349501320,), (1349501325,), (1349501328,), (1349501331,), (1349501334,), (1349501365,), (1349501368,), (1349501373,), (1349501376,), (1349501406,), (1349501410,), (1349501414,), (1349501416,), (1349501420,), (1349501423,), (1349501454,), (1349501457,), (1349501459,), (1349501463,), (1349501499,), (1349501502,), (1349501507,), (1349501511,), (1349501516,), (1349501563,), (1349501570,), (1349501580,), (1349501589,), (1349501596,), (1349501604,), (1349501668,), (1349498870,), (1349498875,), (1349498881,), (1349498925,), (1349498932,), (1349498940,), (1349498946,), (1349498954,), (1349498960,), (1349498985,), (1349498988,), (1349498992,), (1349498999,), (1349499034,), (1349499039,), (1349499043,), (1349499049,), (1349499055,), (1349499060,), (1349499084,), (1349499090,), (1349499144,), (1349499150,), (1349499156,), (1349499162,), (1349499196,), (1349499198,), (1349499202,), (1349499204,), (1349499209,), (1349499214,), (1349499242,), (1349499246,), (1349499251,), (1349499255,), (1349499289,), (1349499291,), (1349499326,), (1349499330,), (1349499334,), (1349499339,), (1349499380,), (1349499382,), (1349499384,), (1349499387,), (1349499389,), (1349499419,), (1349499424,), (1349499428,), (1349499434,), (1349499468,), (1349499470,), (1349499473,), (1349499476,), (1349499507,), (1349499510,), (1349499513,), (1349499550,), (1349499553,), (1349499555,), (1349499557,), (1349499560,), (1349499563,), (1349499608,), (1349499595,), (1349499597,), (1349499601,), (1349499603,), (1349499606,), (1349499639,), (1349499641,), (1349499644,), (1349499681,), (1349499684,), (1349499687,), (1349499691,), (1349499724,), (1349499726,), (1349499765,), (1349499768,), (1349499770,), (1349499806,), (1349499809,), (1349499812,), (1349499815,), (1349499818,), (1349499853,), (1349499859,), (1349499863,), (1349499895,), (1349499899,), (1349499905,), (1349499909,), (1349499913,), (1349499916,), (1349499937,), (1349499942,), (1349499947,), (1349499953,), (1349499957,), (1349499984,), (1349499990,), (1349499995,), (1349500006,), (1349500012,), (1349500032,), (1349500036,), (1349500041,), (1349500047,), (1349500054,), (1349500058,), (1349500080,), (1349500082,), (1349500086,), (1349500090,), (1349500124,), (1349500129,), (1349500134,), (1349500139,), (1349500143,), (1349500176,), (1349500180,), (1349500182,), (1349500184,), (1349500187,), (1349500218,), (1349500223,), (1349500228,), (1349500232,), (1349500236,), (1349500282,), (1349501646,), (1349501650,), (1349501656,), (1349501661,), (1349501736,), (1349501754,), (1349501817,), (1349501927,), (1349501946,), (1349501950,), (1349501954,), (1349501976,), (1349501998,), (1349502095,), (1349502408,), (1349502806,), (1349502836,), (1349502879,), (1349502935,), (1349502973,), (1349503105,), (1349503110,), (1349503115,), (1349503129,), (1349503391,), (1349503399,), (1349503403,), (1349503419,), (1349503444,), (1349503469,), (1349503725,), (1349503756,), (1349503773,), (1349503790,), (1349503826,), (1349504084,), (1349504224,), (1349504337,), (1349504439,), (1349504476,), (1349504794,), (1349504849,), (1349504852,), (1349504855,), (1349505015,), (1349505020,), (1349505033,), (1349505036,), (1349505041,), (1349505047,), (1349505203,), (1349505227,), (1349505253,), (1349505306,), (1349505626,), (1349505682,), (1349505757,), (1349505773,), (1349505782,), (1349505796,), (1349506019,), (1349506038,), (1349506064,), (1349506089,), (1349506113,), (1349506348,), (1349506308,), (1349506339,), (1349506345,), (1349506399,), (1349506403,), (1349506414,), (1349506421,), (1349506428,), (1349506435,), (1349506527,), (1349506530,), (1349506543,), (1349506554,), (1349506632,), (1349506644,), (1349506649,), (1349506653,), (1349506657,), (1349506661,), (1349506901,), (1349506921,), (1349506924,), (1349506943,), (1349506957,), (1349507013,), (1349507118,), (1349507129,), (1349507136,), (1349507295,), (1349507368,), (1349507396,), (1349507416,), (1349507458,), (1349507466,), (1349507609,), (1349507630,), (1349507636,), (1349507642,), (1349507774,), (1349507780,), (1349507785,), (1349507789,), (1349507793,), (1349507831,), (1349507834,), (1349507839,), (1349507844,), (1349507853,), (1349507861,), (1349507913,), (1349507923,), (1349507927,), (1349507932,), (1349507966,), (1349507974,), (1349507978,), (1349508001,), (1349508010,), (1349508027,), (1349508082,), (1349508086,), (1349508093,), (1349508114,), (1349508165,), (1349508169,), (1349508293,), (1349508298,), (1349508303,), (1349508461,), (1349508463,), (1349508467,), (1349508473,), (1349508485,), (1349508491,), (1349508560,), (1349508547,), (1349508552,), (1349508555,), (1349508600,), (1349508656,), (1349508666,), (1349508682,), (1349508693,), (1349510450,), (1349510457,), (1349510463,), (1349510469,), (1349510509,), (1349510515,), (1349510519,), (1349510522,), (1349510649,), (1349510652,), (1349510660,), (1349510675,), (1349510681,), (1349510951,), (1349510962,), (1349510967,), (1349510989,), (1349511142,), (1349511145,), (1349511148,), (1349511234,), (1349511239,), (1349511243,), (1349511247,), (1349511557,), (1349511435,), (1349511463,), (1349511474,), (1349511522,), (1349511534,), (1349512027,), (1349512068,), (1349512107,), (1349512160,), (1349512753,), (1349512835,), (1349512902,), (1349512931,), (1349513003,), (1349513035,), (1349513105,), (1349513108,), (1349513112,), (1349513115,), (1349513118,), (1349513226,), (1349513258,), (1349513280,), (1349513305,), (1349513573,), (1349513616,), (1349513649,), (1349513654,), (1349513658,), (1349513662,), (1349513781,), (1349513785,), (1349513794,), (1349513795,), (1349513812,), (1349513850,), (1349513957,), (1349513961,), (1349513966,), (1349513970,), (1349514023,), (1349514225,), (1349514230,), (1349514232,), (1349514234,), (1349514238,), (1349514241,), (1349514538,), (1349514563,), (1349514591,), (1349514651,), (1349514653,), (1349514665,), (1349514668,), (1349514671,), (1349514673,), (1349514705,), (1349514715,), (1349514727,), (1349514734,), (1349514893,), (1349514939,), (1349514967,), (1349514999,), (1349515044,), (1349515443,), (1349515447,), (1349515454,), (1349515461,), (1349515468,), (1349515473,), (1349515611,), (1349515591,), (1349515596,), (1349515601,), (1349515606,), (1349515863,), (1349515891,), (1349515906,), (1349515955,), (1349516162,), (1349516177,), (1349516203,), (1349516229,), (1349516254,), (1349516583,), (1349516614,), (1349516725,), (1349516808,), (1349516869,), (1349516913,), (1349517313,), (1349517402,), (1349517456,), (1349518036,), (1349518091,), (1349518166,), (1349518219,), (1349518262,), (1349518350,), (1349518798,), (1349518845,), (1349518906,), (1349518934,), (1349518954,), (1349519380,), (1349519395,), (1349519478,), (1349519526,), (1349519587,), (1349520108,), (1349520169,), (1349520199,), (1349520231,), (1349520276,), (1349520578,), (1349520622,), (1349520667,), (1349520727,), (1349520754,), (1349520835,), (1349521584,), (1349521662,), (1349521738,), (1349522513,), (1349522618,), (1349522659,), (1349522717,), (1349522791,), (1349522866,), (1349523281,), (1349523384,), (1349523462,), (1349523526,), (1349523580,), (1349523603,), (1349524527,), (1349524693,), (1349524807,), (1349524923,), (1349526703,), (1349526777,), (1349526822,), (1349526864,), (1349526999,), (1349527975,), (1349527689,), (1349527731,), (1349527803,), (1349527891,), (1349528800,), (1349528890,), (1349529031,), (1349529275,), (1349529382,), (1349529888,), (1349529972,), (1349530076,), (1349530185,), (1349530247,), (1349530294,), (1349530967,), (1349531052,), (1349531130,), (1349532173,), (1349532229,), (1349532503,), (1349532721,), (1349532830,), (1349533472,), (1349533509,), (1349533573,), (1349533658,), (1349533749,), (1349533795,), (1349534382,), (1349534534,), (1349534622,), (1349535648,), (1349535737,), (1349535889,), (1349535969,), (1349536045,), (1349536140,), (1349536803,), (1349536936,), (1349537040,), (1349537171,), (1349537259,), (1349537962,), (1349538049,), (1349538093,), (1349538142,), (1349538620,), (1349538645,), (1349538698,), (1349539187,), (1349539234,), (1349539281,), (1349539308,), (1349539335,), (1349539379,), (1349539817,), (1349539885,), (1349539942,), (1349539984,), (1349540054,), (1349540107,), (1349540255,), (1349540311,), (1349540381,), (1349541517,), (1349541646,), (1349541747,), (1349541844,), (1349541890,), (1349542694,), (1349560558,), (1349560568,), (1349560628,), (1349561240,), (1349561271,), (1349561322,), (1349561368,), (1349561387,), (1349561410,), (1349561540,), (1349561576,), (1349561886,), (1349561927,), (1349561956,), (1349561982,), (1349562354,), (1349562390,), (1349562412,), (1349562472,), (1349562546,), (1349562587,), (1349562963,), (1349563033,), (1349563068,), (1349563093,), (1349563130,), (1349563474,), (1349563498,), (1349563504,), (1349563674,), (1349563677,), (1349563681,), (1349563683,), (1349563686,), (1349563689,), (1349563797,), (1349563813,), (1349563837,), (1349563862,), (1349563879,), (1349564082,), (1349564108,), (1349564139,), (1349564335,), (1349564364,), (1349564386,), (1349564389,), (1349564394,), (1349564477,), (1349564479,), (1349564482,), (1349564485,), (1349564552,), (1349564555,), (1349564559,), (1349564564,), (1349564568,), (1349564626,), (1349564629,), (1349564631,), (1349564634,), (1349565072,), (1349564847,), (1349564874,), (1349564915,), (1349564974,), (1349565020,), (1349565302,), (1349565330,), (1349565366,), (1349565401,), (1349565450,), (1349565463,), (1349565468,), (1349565477,), (1349565504,), (1349565529,), (1349565877,), (1349565924,), (1349565963,), (1349565998,), (1349566034,), (1349566188,), (1349566197,), (1349566230,), (1349566276,), (1349566286,), (1349566289,), (1349566292,), (1349566295,), (1349566324,), (1349566328,), (1349566396,), (1349566402,), (1349566566,), (1349566571,), (1349566598,), (1349566635,), (1349566675,), (1349566915,), (1349566920,), (1349566926,), (1349566930,), (1349566976,), (1349566991,), (1349566995,), (1349567013,), (1349567037,), (1349567062,), (1349567385,), (1349567390,), (1349567394,), (1349567397,), (1349567429,), (1349567435,), (1349567437,), (1349567439,), (1349567441,), (1349567489,), (1349567492,), (1349567494,), (1349567497,), (1349567501,), (1349567507,), (1349567534,), (1349567539,), (1349567549,), (1349567562,), (1349567618,), (1349567611,), (1349567615,), (1349567686,), (1349567693,), (1349567771,), (1349567786,), (1349567791,), (1349567844,), (1349567860,), (1349567887,), (1349567916,), (1349567947,), (1349567976,), (1349568087,), (1349568089,), (1349568091,), (1349568124,), (1349568728,), (1349568796,), (1349568866,), (1349568959,), (1349569080,), (1349569380,), (1349569383,), (1349569386,), (1349569389,), (1349569433,), (1349569446,), (1349569459,), (1349569470,), (1349569474,), (1349569801,), (1349569850,), (1349569922,), (1349569944,), (1349570146,), (1349570150,), (1349570174,), (1349570178,), (1349570182,), (1349570220,), (1349570246,), (1349570250,), (1349570255,), (1349570260,), (1349570337,), (1349570340,), (1349570344,), (1349570347,), (1349570351,), (1349570358,), (1349570446,), (1349570461,), (1349570466,), (1349570470,), (1349570534,), (1349570536,), (1349570539,), (1349570543,), (1349570547,), (1349570578,), (1349570582,), (1349570594,), (1349570608,), (1349570611,), (1349570671,), (1349570676,), (1349570683,), (1349570685,), (1349570983,), (1349570957,), (1349570962,), (1349570967,), (1349570972,), (1349570981,), (1349571039,), (1349571048,), (1349571080,), (1349571190,), (1349571194,), (1349571207,), (1349571374,), (1349571382,), (1349571385,), (1349571395,), (1349571450,), (1349571505,), (1349571689,), (1349571717,), (1349571767,), (1349571822,), (1349571869,), (1349571918,), (1349571992,), (1349571996,), (1349572060,), (1349572063,), (1349572065,), (1349572067,), (1349572070,), (1349572072,), (1349572102,), (1349572105,), (1349572110,), (1349572113,), (1349572132,), (1349572185,), (1349572338,), (1349572365,), (1349572399,), (1349572424,), (1349572453,), (1349572716,), (1349572749,), (1349572788,), (1349572840,), (1349573439,), (1349573454,), (1349573516,), (1349573589,), (1349573630,), (1349573633,), (1349573779,), (1349573782,), (1349573794,), (1349573808,), (1349574794,), (1349574834,), (1349574874,), (1349574931,), (1349574968,), (1349575030,), (1349575266,), (1349575174,), (1349575179,), (1349575202,), (1349575235,), (1349575730,), (1349575795,), (1349575870,), (1349575964,), (1349576029,), (1349576506,), (1349576558,), (1349576638,), (1349576701,), (1349576778,), (1349577201,), (1349577256,), (1349577283,), (1349577529,), (1349577611,), (1349577636,), (1349577660,), (1349577688,), (1349577894,), (1349577925,), (1349577959,), (1349578023,), (1349578074,), (1349578100,), (1349578337,), (1349578364,), (1349578384,), (1349578399,), (1349578403,), (1349578486,), (1349578489,), (1349578492,), (1349578496,), (1349578639,), (1349578642,), (1349578646,), (1349578650,), (1349578654,), (1349578707,), (1349578752,), (1349578769,), (1349578776,), (1349578780,), (1349578849,), (1349578852,), (1349578856,), (1349578859,), (1349578896,), (1349578902,), (1349578910,), (1349578916,), (1349578919,), (1349578957,), (1349578961,), (1349578999,), (1349579002,), (1349579499,), (1349579622,), (1349579626,), (1349579630,), (1349579636,), (1349579705,), (1349579725,), (1349579731,), (1349579885,), (1349579892,), (1349579898,), (1349579903,), (1349579910,), (1349579915,), (1349579942,), (1349579947,), (1349579954,), (1349580046,), (1349580065,), (1349580079,), (1349580083,), (1349580140,), (1349580144,), (1349580151,), (1349580183,), (1349580187,), (1349580192,), (1349580229,), (1349580265,), (1349580348,), (1349580434,), (1349580484,), (1349580580,), (1349580583,), (1349580626,), (1349580652,), (1349580690,), (1349580768,), (1349580772,), (1349580836,), (1349580839,), (1349580844,), (1349580847,), (1349580892,), (1349580901,), (1349580906,), (1349580911,), (1349580916,), (1349580942,), (1349580946,), (1349580951,), (1349580998,), (1349581001,), (1349581004,), (1349581007,), (1349581011,), (1349581135,), (1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,), (1349582633,), (1349582643,), (1349582650,), (1349582658,), (1349582673,), (1349582770,), (1349582776,), (1349582783,), (1349582788,), (1349582791,), (1349582803,), (1349582879,), (1349582887,), (1349582896,), (1349582899,), (1349582954,), (1349582959,), (1349582963,), (1349582969,), (1349582976,), (1349583000,), (1349583233,), (1349583123,), (1349583153,), (1349583203,), (1349583416,), (1349583439,), (1349583463,), (1349583780,), (1349583851,), (1349583889,), (1349583911,), (1349583972,), (1349584206,), (1349584212,), (1349584216,), (1349584221,), (1349584224,), (1349584261,), (1349584277,), (1349584286,), (1349584288,), (1349584294,), (1349584381,), (1349584385,), (1349584458,), (1349584463,), (1349584466,), (1349584469,), (1349584498,), (1349584502,), (1349584504,), (1349584552,), (1349584555,), (1349584559,), (1349584563,), (1349584566,), (1349584601,), (1349584605,), (1349584607,), (1349584610,), (1349584646,), (1349584654,), (1349584658,), (1349584667,), (1349584669,), (1349584702,), (1349584705,), (1349584707,), (1349584817,), (1349584820,), (1349584824,), (1349584828,), (1349584832,), (1349585299,), (1349585345,), (1349585405,), (1349585468,), (1349585522,), (1349585676,), (1349585688,), (1349585727,), (1349585745,), (1349585787,), (1349585805,), (1349585851,), (1349585875,), (1349586195,), (1349586077,), (1349586140,), (1349586812,), (1349587556,), (1349587608,), (1349587661,), (1349587703,), (1349587751,), (1349587798,), (1349588151,), (1349588195,), (1349588246,), (1349588305,), (1349588867,), (1349588925,), (1349588973,), (1349589017,), (1349589086,), (1349589105,), (1349589350,), (1349589377,), (1349589383,), (1349589389,), (1349589399,), (1349589412,), (1349589771,), (1349589790,), (1349589805,), (1349589811,), (1349589961,), (1349589987,), (1349590018,), (1349590044,), (1349590068,), (1349590121,), (1349590499,), (1349590510,), (1349590526,), (1349590566,), (1349590625,), (1349590670,), (1349590894,), (1349590912,), (1349590929,), (1349591075,), (1349591080,), (1349591086,), (1349591089,), (1349591096,), (1349591128,), (1349591135,), (1349591139,), (1349591144,), (1349591158,), (1349591182,), (1349591187,), (1349591191,), (1349591196,), (1349591199,), (1349591236,), (1349591243,), (1349591249,), (1349591254,), (1349591274,), (1349591301,), (1349591305,), (1349591309,), (1349591314,), (1349591320,), (1349591324,), (1349591541,), (1349591526,), (1349591536,), (1349591643,), (1349591646,), (1349591683,), (1349591696,), (1349591707,), (1349591750,), (1349591798,), (1349591815,), (1349591826,), (1349591852,), (1349591856,), (1349591869,), (1349591873,), (1349591877,), (1349592013,), (1349592019,), (1349592023,), (1349592028,), (1349592079,), (1349592083,), (1349592085,), (1349592089,), (1349592092,), (1349592197,), (1349592216,), (1349592238,), (1349592263,), (1349592288,), (1349592297,), (1349592464,), (1349592472,), (1349592494,), (1349592644,), (1349592648,), (1349592680,), (1349592765,), (1349592768,), (1349592771,), (1349592817,), (1349592822,), (1349592826,), (1349592829,), (1349592833,), (1349592837,), (1349592881,), (1349592892,), (1349592895,), (1349592970,), (1349592982,), (1349592985,), (1349592988,), (1349592992,), (1349592996,), (1349593220,), (1349593282,), (1349593350,), (1349593412,), (1349593543,), (1349593547,), (1349593573,), (1349593576,), (1349593622,), (1349593627,), (1349593641,), (1349593645,), (1349593652,), (1349593658,), (1349593801,), (1349593787,), (1349593791,), (1349593792,), (1349593794,), (1349593798,), (1349594012,), (1349594016,), (1349594020,), (1349594025,), (1349594027,), (1349594064,), (1349594067,), (1349594070,), (1349594339,), (1349594348,), (1349594351,), (1349594354,), (1349594357,), (1349594407,), (1349594651,), (1349594707,), (1349594756,), (1349594791,), (1349594822,), (1349594868,), (1349595055,), (1349595079,), (1349595120,), (1349595150,), (1349595175,), (1349595205,), (1349595386,), (1349595412,), (1349595418,), (1349595512,), (1349595531,), (1349595540,), (1349595544,), (1349595547,), (1349595678,), (1349595682,), (1349595702,), (1349595710,), (1349595712,), (1349595816,), (1349595822,), (1349595825,), (1349595987,), (1349595992,), (1349595994,), (1349595998,), (1349599695,), (1349599689,), (1349600177,), (1349600205,), (1349601157,), (1349601559,), (1349601586,), (1349601917,), (1349601944,), (1349601947,), (1349601963,), (1349602024,), (1349602054,), (1349602105,), (1349602107,), (1349602111,), (1349602116,), (1349602122,), (1349602192,), (1349602195,), (1349602286,), (1349602288,), (1349602314,), (1349602370,), (1349602373,), (1349602376,), (1349602380,), (1349602384,), (1349602411,), (1349602413,), (1349602418,), (1349602421,), (1349602510,), (1349602512,), (1349602550,), (1349602555,), (1349602557,), (1349602560,), (1349602563,), (1349602566,), (1349602585,), (1349602588,), (1349602592,), (1349602594,), (1349602597,), (1349602601,), (1349602644,), (1349602625,), (1349602627,), (1349602632,), (1349602636,), (1349602738,), (1349602739,), (1349602741,), (1349602743,), (1349602746,), (1349602838,), (1349602843,), (1349602858,), (1349602903,), (1349602943,), (1349602966,), (1349603030,), (1349603031,), (1349603034,), (1349603037,), (1349603067,), (1349603069,), (1349603072,), (1349603075,), (1349603473,), (1349603479,), (1349603482,), (1349603510,), (1349603516,), (1349603522,), (1349603525,), (1349603540,), (1349603655,), (1349603657,), (1349603660,), (1349603721,), (1349603724,), (1349603727,), (1349603730,), (1349603733,), (1349603793,), (1349603814,), (1349603838,), (1349603861,), (1349603879,), (1349603898,), (1349603991,), (1349603999,), (1349604003,), (1349604070,), (1349604071,), (1349604073,), (1349604075,), (1349604078,), (1349604081,), (1349604101,), (1349604112,), (1349604129,), (1349604136,), (1349604171,), (1349604173,), (1349604175,), (1349604177,), (1349604180,), (1349604183,), (1349604211,), (1349604218,), (1349604226,), (1349604229,), (1349604233,), (1349604235,), (1349604278,), (1349604269,), (1349604272,), (1349604275,), (1349604303,), (1349604306,), (1349604310,), (1349604316,), (1349604328,), (1349604380,), (1349604383,), (1349604385,), (1349604388,), (1349604416,), (1349604436,), (1349604568,), (1349604572,), (1349604576,), (1349604595,), (1349604597,), (1349604600,), (1349604603,), (1349604606,), (1349604628,), (1349604631,), (1349604644,), (1349604651,), (1349604725,), (1349604731,), (1349604753,), (1349604771,), (1349604797,), (1349604800,), (1349604813,), (1349604825,), (1349604828,), (1349604831,), (1349604846,), (1349604849,), (1349604853,), (1349604857,), (1349604860,), (1349604915,), (1349604917,), (1349604925,), (1349605063,), (1349605073,), (1349605078,), (1349605082,), (1349605085,), (1349605088,), (1349605198,), (1349605201,), (1349605207,), (1349605211,), (1349605214,), (1349605359,), (1349605365,), (1349605368,), (1349605370,), (1349605374,), (1349605405,), (1349605410,), (1349605412,), (1349605416,), (1349605420,), (1349605448,), (1349605473,), (1349605475,), (1349605479,), (1349605552,), (1349605516,), (1349605524,), (1349605528,), (1349605532,), (1349605542,), (1349605621,), (1349605623,), (1349605628,), (1349605636,), (1349605667,), (1349605774,), (1349605843,), (1349605845,), (1349605848,), (1349605877,), (1349605881,), (1349605885,), (1349605888,), (1349605918,), (1349605919,), (1349605921,), (1349605923,), (1349605926,), (1349605929,), (1349605957,), (1349605961,), (1349605973,), (1349605980,), (1349606004,), (1349606074,), (1349606078,), (1349606082,), (1349606086,), (1349606107,), (1349606109,), (1349606112,), (1349606115,), (1349606118,), (1349606120,), (1349606888,), (1349612222,), (1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,), (1349613859,), (1349613915,), (1349613967,), (1349614017,), (1349614081,), (1349614680,), (1349614710,), (1349615364,), (1349615387,), (1349615422,), (1349615777,), (1349615825,), (1349616243,), (1349616266,), (1349616307,), (1349616350,), (1349616399,), (1349616983,), (1349617024,), (1349617062,), (1349617089,), (1349617643,), (1349617744,), (1349617768,), (1349617822,), (1349617858,), (1349617904,), (1349618260,), (1349618414,), (1349618517,), (1349618657,), (1349618780,), (1349618857,), (1349619299,), (1349619316,), (1349619342,), (1349619370,), (1349619553,), (1349619577,), (1349619601,), (1349619623,), (1349619675,), (1349619747,), (1349620184,), (1349620201,), (1349620432,), (1349620737,), (1349620777,), (1349620834,), (1349620902,), (1349621535,), (1349621598,), (1349621648,), (1349621721,), (1349621782,), (1349622130,), (1349622158,), (1349622191,), (1349622626,), (1349623964,), (1349623977,), (1349624273,), (1349624317,), (1349624355,), (1349624387,), (1349624697,), (1349624722,), (1349624750,), (1349624772,), (1349624776,), (1349624779,), (1349624905,), (1349624925,), (1349624941,), (1349624947,), (1349624963,), (1349625025,), (1349625029,), (1349625032,), (1349625084,), (1349625097,), (1349625108,), (1349625117,), (1349625125,), (1349625144,), (1349625256,), (1349625262,), (1349625271,), (1349625297,), (1349625521,), (1349625525,), (1349625764,), (1349625775,), (1349625779,), (1349625783,), (1349625787,), (1349626076,), (1349626133,), (1349626158,), (1349626179,), (1349626183,), (1349626208,), (1349626484,), (1349626522,), (1349626547,), (1349626571,), (1349626603,), (1349626620,), (1349626804,), (1349626895,), (1349626910,), (1349626931,), (1349627394,), (1349627184,), (1349627209,), (1349627256,), (1349627304,), (1349627345,), (1349628007,), (1349628053,), (1349628085,), (1349628149,), (1349628654,), (1349628699,), (1349628779,), (1349628921,), (1349628996,), (1349629048,), (1349629663,), (1349629709,), (1349629768,), (1349629926,), (1349630080,), (1349630116,), (1349630971,), (1349631032,), (1349631097,), (1349631188,), (1349631857,), (1349631876,), (1349631952,), (1349631991,), (1349632055,), (1349632132,), (1349632687,), (1349632761,), (1349632867,), (1349632968,), (1349633671,), (1349633745,), (1349633904,), (1349633991,), (1349634076,), (1349634150,), (1349634636,), (1349634704,), (1349634837,), (1349634910,), (1349634932,), (1349635470,), (1349635574,), (1349635674,), (1349635758,), (1349635849,), (1349636481,), (1349636567,), (1349636639,), (1349636709,), (1349637359,), (1349637391,), (1349637439,), (1349637490,), (1349637544,), (1349637603,), (1349638758,), (1349638894,), (1349639008,), (1349639087,), (1349639157,), (1349640422,), (1349640504,), (1349640554,), (1349640608,), (1349640669,), (1349640867,), (1349640962,), (1349641052,), (1349641145,), (1349641230,), (1349641837,), (1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,), (1349650183,), (1349650227,), (1349650326,), (1349650463,), (1349650576,), (1349650648,), (1349651146,), (1349651194,), (1349651262,), (1349651316,), (1349651997,), (1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,), (1349658562,), (1349658606,), (1349658660,), (1349658813,), (1349658963,), (1349659065,), (1349659518,), (1349659616,), (1349659750,), (1349659817,), (1349660349,), (1349660404,), (1349660487,), (1349660542,), (1349660592,), (1349660937,), (1349660961,), (1349660997,), (1349661022,), (1349661055,), (1349661314,), (1349661342,), (1349661362,), (1349661367,), (1349661372,), (1349661409,), (1349661411,), (1349661414,), (1349661416,), (1349661478,), (1349661489,), (1349661496,), (1349661501,), (1349661576,), (1349661553,), (1349661560,), (1349661568,), (1349661573,), (1349661697,), (1349661724,), (1349661760,), (1349661792,), (1349661813,), (1349662051,), (1349662055,), (1349662058,), (1349662061,), (1349662066,), (1349662073,), (1349662218,), (1349662241,), (1349662250,), (1349662285,), (1349662340,), (1349662364,), (1349662374,), (1349662377,), (1349662380,), (1349662384,), (1349662423,), (1349662432,), (1349662443,), (1349662446,), (1349662454,), (1349662504,), (1349662537,), (1349662540,), (1349662546,), (1349662722,), (1349662737,), (1349662766,), (1349662790,), (1349662811,), (1349662834,), (1349662925,), (1349662928,), (1349662933,), (1349662941,), (1349663035,), (1349663042,), (1349663073,), (1349663081,), (1349663086,), (1349663128,), (1349663132,), (1349663137,), (1349663142,), (1349663145,), (1349663148,), (1349663211,), (1349663222,), (1349663235,), (1349663253,), (1349663257,), (1349663318,), (1349663322,), (1349663328,), (1349663375,), (1349663397,), (1349663400,), (1349663434,), (1349663438,), (1349663448,), (1349663459,), (1349663497,), (1349663810,), (1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,), (1349664318,), (1349664325,), (1349664331,), (1349664336,), (1349664338,), (1349664342,), (1349664641,), (1349664648,), (1349664654,), (1349664659,), (1349664711,), (1349664716,), (1349664721,), (1349664726,), (1349664730,), (1349664751,), (1349665274,), (1349665306,), (1349665340,), (1349665366,), (1349665372,), (1349665455,), (1349665515,), (1349665573,), (1349665632,), (1349665688,), (1349666220,), (1349666241,), (1349483112,), (1349483114,), (1349483166,), (1349483170,), (1349483223,), (1349483266,), (1349483315,), (1349483318,), (1349483355,), (1349483358,), (1349483361,), (1349483404,), (1349483409,), (1349483412,), (1349483414,), (1349483418,), (1349483452,), (1349483456,), (1349483460,), (1349483465,), (1349483470,), (1349483501,), (1349483504,), (1349483507,), (1349483509,), (1349483513,), (1349483546,), (1349483549,), (1349483553,), (1349483557,), (1349483561,), (1349483565,), (1349483603,), (1349483604,), (1349483608,), (1349483610,), (1349483614,), (1349483648,), (1349483651,), (1349483655,), (1349483659,), (1349483665,), (1349483696,), (1349483705,), (1349483708,), (1349483711,), (1349483713,), (1349483715,), (1349483743,), (1349483746,), (1349483750,), (1349483753,), (1349483756,), (1349483807,), (1349483793,), (1349483797,), (1349483800,), (1349483803,), (1349483844,), (1349483847,), (1349483849,), (1349483851,), (1349483854,), (1349483905,), (1349483908,), (1349483912,), (1349483915,), (1349483919,), (1349483924,), (1349483960,), (1349483963,), (1349483968,), (1349483972,), (1349483976,), (1349483981,), (1349484020,), (1349484024,), (1349484027,), (1349484029,), (1349484072,), (1349484078,), (1349484083,), (1349484088,), (1349484093,), (1349484131,), (1349484135,), (1349484138,), (1349484142,), (1349484145,), (1349484150,), (1349484180,), (1349484193,), (1349484197,), (1349484202,), (1349484206,), (1349484240,), (1349484245,), (1349484250,), (1349484256,), (1349484262,), (1349484298,), (1349484302,), (1349484306,), (1349484309,), (1349484313,), (1349484318,), (1349484356,), (1349484362,), (1349484365,), (1349484370,), (1349484374,), (1349484414,), (1349484417,), (1349484419,), (1349484420,), (1349484426,), (1349484465,), (1349484468,), (1349484473,), (1349484478,), (1349484484,), (1349484532,), (1349484538,), (1349484546,), (1349484557,), (1349484563,), (1349484627,), (1349484603,), (1349484609,), (1349484614,), (1349484621,), (1349484658,), (1349484665,), (1349484670,), (1349484676,), (1349484683,), (1349484716,), (1349484722,), (1349484728,), (1349484734,), (1349484780,), (1349484784,), (1349484788,), (1349484830,), (1349484836,), (1349484844,), (1349484937,), (1349485170,), (1349485232,), (1349485236,), (1349485240,), (1349485246,), (1349485251,), (1349485290,), (1349485296,), (1349485302,), (1349485308,), (1349485313,), (1349485317,), (1349485350,), (1349485356,), (1349485360,), (1349485364,), (1349485368,), (1349485413,), (1349485419,), (1349485423,), (1349485429,), (1349485437,), (1349485440,), (1349485488,), (1349485471,), (1349485474,), (1349485478,), (1349485483,), (1349485524,), (1349485529,), (1349485535,), (1349485541,), (1349485545,), (1349485579,), (1349485582,), (1349485586,), (1349485589,), (1349485592,), (1349485628,), (1349485635,), (1349485641,), (1349485644,), (1349485648,), (1349485649,), (1349485687,), (1349485692,), (1349485696,), (1349485697,), (1349485702,), (1349485733,), (1349485737,), (1349485742,), (1349485747,), (1349485750,), (1349485790,), (1349485794,), (1349485799,), (1349485804,), (1349485809,), (1349485842,), (1349485847,), (1349485853,), (1349485858,), (1349485863,), (1349485866,), (1349485900,), (1349485903,), (1349485908,), (1349485913,), (1349485916,), (1349485952,), (1349485956,), (1349485959,), (1349485963,), (1349485969,), (1349486001,), (1349486005,), (1349486011,), (1349486017,), (1349486022,), (1349486054,), (1349486057,), (1349486059,), (1349486061,), (1349486063,), (1349486067,), (1349486096,), (1349486099,), (1349486104,), (1349486107,), (1349486111,), (1349486143,), (1349486144,), (1349486147,), (1349486150,), (1349486152,), (1349486178,), (1349486192,), (1349486196,), (1349486201,), (1349486204,), (1349486206,), (1349486237,), (1349486230,), (1349486231,), (1349486234,), (1349486265,), (1349486267,), (1349486271,), (1349486275,), (1349486280,), (1349486282,), (1349486309,), (1349486311,), (1349486315,), (1349486355,), (1349486358,), (1349486361,), (1349486364,), (1349486368,), (1349486372,), (1349486405,), (1349486408,), (1349486410,), (1349486413,), (1349486417,), (1349486456,), (1349486459,), (1349486463,), (1349486467,), (1349486471,), (1349486474,), (1349486510,), (1349486514,), (1349486517,), (1349486521,), (1349486559,), (1349486561,), (1349486564,), (1349486567,), (1349486571,), (1349486615,), (1349486618,), (1349486622,), (1349486626,), (1349486629,), (1349486669,), (1349486672,), (1349486676,), (1349486678,), (1349486683,), (1349486688,), (1349486727,), (1349486729,), (1349486733,), (1349486736,), (1349486740,), (1349486781,), (1349486783,), (1349486785,), (1349486788,), (1349486793,), (1349486833,), (1349486837,), (1349486839,), (1349486843,), (1349486878,), (1349486881,), (1349486884,), (1349486888,), (1349486893,), (1349486896,), (1349486934,), (1349486938,), (1349486940,), (1349486943,), (1349486949,), (1349486953,), (1349486997,), (1349486991,), (1349486994,), (1349487046,), (1349487050,), (1349487053,), (1349487056,), (1349487059,), (1349487062,), (1349487097,), (1349487099,), (1349487103,), (1349487149,), (1349487153,), (1349487156,), (1349487197,), (1349487199,), (1349487202,), (1349487205,), (1349487249,), (1349487252,), (1349487255,), (1349487257,), (1349487260,), (1349487300,), (1349487302,), (1349487305,), (1349487308,), (1349487349,), (1349487352,), (1349487357,), (1349487361,), (1349487365,), (1349487406,), (1349487409,), (1349487411,), (1349487414,), (1349487418,), (1349487458,), (1349487461,), (1349487465,), (1349487471,), (1349487476,), (1349487479,), (1349487515,), (1349487518,), (1349487523,), (1349487528,), (1349487564,), (1349487568,), (1349487571,), (1349487574,), (1349487578,), (1349487581,), (1349487614,), (1349487616,), (1349487621,), (1349487625,), (1349487672,), (1349487678,), (1349487687,), (1349487697,), (1349487706,), (1349487716,), (1349487775,), (1349487754,), (1349487757,), (1349487763,), (1349487767,), (1349487806,), (1349487810,), (1349487819,), (1349487826,), (1349487866,), (1349487871,), (1349487878,), (1349487885,), (1349487891,), (1349487897,), (1349487922,), (1349487926,), (1349487931,), (1349487936,), (1349487972,), (1349487974,), (1349487978,), (1349487982,), (1349487986,), (1349487992,), (1349488023,), (1349488027,), (1349488034,), (1349488039,), (1349488071,), (1349488075,), (1349488079,), (1349488085,), (1349488090,), (1349488091,), (1349488115,), (1349488119,), (1349488124,), (1349488129,), (1349488134,), (1349488159,), (1349488162,), (1349488167,), (1349488171,), (1349488179,), (1349488185,), (1349488205,), (1349488210,), (1349488213,), (1349488217,), (1349488248,), (1349488251,), (1349488255,), (1349488258,), (1349488263,), (1349488266,), (1349488296,), (1349488299,), (1349488303,), (1349488345,), (1349488348,), (1349488353,), (1349488357,), (1349488360,), (1349488362,), (1349488380,), (1349488382,), (1349488386,), (1349488389,), (1349488395,), (1349488419,), (1349488425,), (1349488432,), (1349488440,), (1349488447,), (1349488450,), (1349488484,), (1349488471,), (1349488475,), (1349488480,), (1349488510,), (1349488514,), (1349488519,), (1349488524,), (1349488528,), (1349488533,), (1349488556,), (1349488560,), (1349488564,), (1349488568,), (1349488572,), (1349488575,), (1349488595,), (1349488601,), (1349488606,), (1349488609,), (1349488637,), (1349488641,), (1349488645,), (1349488649,), (1349488652,), (1349488657,), (1349488689,), (1349488694,), (1349488700,), (1349488704,), (1349488733,), (1349488736,), (1349488740,), (1349488745,), (1349488748,), (1349488752,), (1349488779,), (1349488782,), (1349488786,), (1349488790,), (1349488820,), (1349488824,), (1349488829,), (1349488834,), (1349488838,), (1349488843,), (1349488863,), (1349488869,), (1349488874,), (1349488881,), (1349488888,), (1349488917,), (1349488921,), (1349488926,), (1349488930,), (1349488935,), (1349488939,), (1349488964,), (1349488969,), (1349488973,), (1349488978,), (1349488985,), (1349489011,), (1349489017,), (1349489022,), (1349489027,), (1349489030,), (1349489035,), (1349489061,), (1349489064,), (1349489068,), (1349489072,), (1349489105,), (1349489112,), (1349489120,), (1349489126,), (1349489132,), (1349489182,), (1349489169,), (1349489171,), (1349489173,), (1349489175,), (1349489178,), (1349489218,), (1349489223,), (1349489227,), (1349489230,), (1349489261,), (1349489263,), (1349489265,), (1349489267,), (1349489271,), (1349489274,), (1349489304,), (1349489307,), (1349489313,), (1349489317,), (1349489322,), (1349489353,), (1349489356,), (1349489359,), (1349489363,), (1349489369,), (1349489399,), (1349489402,), (1349489406,), (1349489410,), (1349489414,), (1349489448,), (1349489451,), (1349489456,), (1349489461,), (1349489465,), (1349489497,), (1349489500,), (1349489503,), (1349489506,), (1349489509,), (1349489540,), (1349489542,), (1349489545,), (1349489547,), (1349489552,), (1349489584,), (1349489589,), (1349489592,), (1349489596,), (1349489603,), (1349489636,), (1349489639,), (1349489644,), (1349489647,), (1349489651,), (1349489678,), (1349489682,), (1349489686,), (1349489691,), (1349489698,), (1349489721,), (1349489726,), (1349489732,), (1349489736,), (1349489742,), (1349489768,), (1349489771,), (1349489775,), (1349489778,), (1349489782,), (1349489811,), (1349489818,), (1349489824,), (1349489827,), (1349489835,), (1349489841,), (1349489880,), (1349489870,), (1349489874,), (1349489922,), (1349489927,), (1349489931,), (1349489935,), (1349489940,), (1349489945,), (1349489976,), (1349489981,), (1349489987,), (1349490024,), (1349490028,), (1349490033,), (1349490036,), (1349490040,), (1349490046,), (1349490069,), (1349490072,), (1349490075,), (1349490079,), (1349490112,), (1349490116,), (1349490121,), (1349490126,), (1349490132,), (1349490135,), (1349490157,), (1349490160,), (1349490165,), (1349490170,), (1349490175,), (1349490199,), (1349490202,), (1349490207,), (1349490212,), (1349490218,), (1349490223,), (1349490250,), (1349490255,), (1349490260,), (1349490304,), (1349490310,), (1349490317,), (1349490326,), (1349490332,), (1349490338,), (1349490361,), (1349490365,), (1349490370,), (1349490412,), (1349490414,), (1349490418,), (1349490422,), (1349490426,), (1349490432,), (1349490457,), (1349490461,), (1349490464,), (1349490467,), (1349490472,), (1349490509,), (1349490517,), (1349490524,), (1349490532,), (1349490540,), (1349490592,), (1349490570,), (1349490575,), (1349490581,), (1349490587,), (1349490621,), (1349490626,), (1349490633,), (1349490637,), (1349490676,), (1349490680,), (1349490686,), (1349490691,), (1349490696,), (1349490730,), (1349490733,), (1349490736,), (1349490740,), (1349490743,), (1349490777,), (1349490780,), (1349490784,), (1349490792,), (1349490796,), (1349490802,), (1349490828,), (1349490830,), (1349490832,), (1349490833,), (1349490836,), (1349490867,), (1349490870,), (1349490874,), (1349490877,), (1349490878,), (1349490881,), (1349490916,), (1349490919,), (1349490922,), (1349490926,), (1349490958,), (1349490962,), (1349490966,), (1349490971,), (1349490975,), (1349490978,), (1349491004,), (1349491005,), (1349491009,), (1349491013,), (1349491018,), (1349491051,), (1349491056,), (1349491061,), (1349491066,), (1349494408,), (1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,), (1349494863,), (1349494870,), (1349494874,), (1349494878,), (1349494909,), (1349494912,), (1349494916,), (1349494921,), (1349494924,), (1349494957,), (1349494961,), (1349494965,), (1349495000,), (1349495006,), (1349495012,), (1349495016,), (1349495020,), (1349495050,), (1349495056,), (1349495061,), (1349495064,), (1349495092,), (1349495097,), (1349495102,), (1349495106,), (1349495110,), (1349495114,), (1349495138,), (1349495142,), (1349495147,), (1349495152,), (1349495188,), (1349495194,), (1349495200,), (1349495204,), (1349495207,), (1349495209,), (1349495240,), (1349495243,), (1349495246,), (1349495248,), (1349495251,), (1349495278,), (1349495283,), (1349495288,), (1349495292,), (1349495296,), (1349495329,), (1349495331,), (1349495334,), (1349495336,), (1349495368,), (1349495372,), (1349495377,), (1349495381,), (1349495385,), (1349495427,), (1349495432,), (1349495440,), (1349495448,), (1349495463,), (1349495481,), (1349495485,), (1349495489,), (1349495493,), (1349495513,), (1349495505,), (1349495509,), (1349495558,), (1349495565,), (1349495571,), (1349495576,), (1349495581,), (1349495586,), (1349495623,), (1349495628,), (1349495633,), (1349495638,), (1349495643,), (1349495681,), (1349495686,), (1349495732,), (1349495738,), (1349495743,), (1349495783,), (1349495787,), (1349495792,), (1349495798,), (1349495802,), (1349495836,), (1349495842,), (1349495848,), (1349495854,), (1349495861,), (1349495902,), (1349495907,), (1349495912,), (1349495916,), (1349495957,), (1349495961,), (1349495965,), (1349496011,), (1349496019,), (1349496028,), (1349496034,), (1349496042,), (1349496082,), (1349496087,), (1349496092,), (1349496097,), (1349496103,), (1349496109,), (1349496144,), (1349496148,), (1349496155,), (1349496159,), (1349496199,), (1349496203,), (1349496208,), (1349496212,), (1349496258,), (1349496263,), (1349496269,), (1349496274,), (1349496279,), (1349496318,), (1349496322,), (1349496328,), (1349496334,), (1349496383,), (1349496374,), (1349496377,), (1349496430,), (1349496434,), (1349496439,), (1349496443,), (1349496486,), (1349496490,), (1349496495,), (1349496499,), (1349496504,), (1349496510,), (1349496543,), (1349496550,), (1349496555,), (1349496599,), (1349496610,), (1349496615,), (1349496622,), (1349496630,), (1349496662,), (1349496668,), (1349496672,), (1349496679,), (1349496685,), (1349496691,), (1349496722,), (1349496727,), (1349496731,), (1349496736,), (1349496782,), (1349496787,), (1349496794,), (1349496798,), (1349496805,), (1349496813,), (1349496851,), (1349496854,), (1349496907,), (1349497030,), (1349497034,), (1349497038,), (1349497042,), (1349497046,), (1349497094,), (1349497098,), (1349497102,), (1349497107,), (1349497151,), (1349497156,), (1349497160,), (1349497170,), (1349497176,), (1349497181,), (1349497205,), (1349497209,), (1349497215,), (1349497275,), (1349497266,), (1349497268,), (1349497271,), (1349497322,), (1349497324,), (1349497331,), (1349497333,), (1349497338,), (1349497373,), (1349497376,), (1349497379,), (1349497383,), (1349497388,), (1349497424,), (1349497429,), (1349497433,), (1349497482,), (1349497485,), (1349497488,), (1349497489,), (1349497496,), (1349497502,), (1349497542,), (1349497548,), (1349497552,), (1349497556,), (1349497559,), (1349497565,), (1349497598,), (1349497600,), (1349497604,), (1349497649,), (1349497657,), (1349497661,), (1349497666,), (1349497672,), (1349497707,), (1349497710,), (1349497714,), (1349497717,), (1349497721,), (1349497726,), (1349497759,), (1349497763,), (1349497767,), (1349497772,), (1349497777,), (1349497981,), (1349497986,), (1349497990,), (1349497994,), (1349497999,), (1349498030,), (1349498033,), (1349498039,), (1349498105,), (1349498089,), (1349498095,), (1349498100,), (1349498142,), (1349498146,), (1349498151,), (1349498186,), (1349498193,), (1349498198,), (1349498202,), (1349498207,), (1349498213,), (1349498242,), (1349498245,), (1349498248,), (1349498252,), (1349498294,), (1349498297,), (1349498350,), (1349498352,), (1349498355,), (1349498356,), (1349498361,), (1349498401,), (1349498405,), (1349498416,), (1349498421,), (1349498426,), (1349498432,), (1349498462,), (1349498464,), (1349498466,), (1349498513,), (1349498515,), (1349498518,), (1349498521,), (1349498524,), (1349498527,), (1349498567,), (1349498570,), (1349498574,), (1349498576,), (1349498581,), (1349498585,), (1349498626,), (1349498630,), (1349498634,), (1349498723,), (1349498725,), (1349498728,), (1349498793,), (1349498799,), (1349498806,), (1349498814,), (1349498822,), (1349498885,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21990543]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181] map_info['map_portfolio_photo'] : {21990543: [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181]} final : True mtd_id 4302 list_pids : [1349614154, 1349613660, 1349613656, 1349613653, 1349613648, 1349613643, 1349613640, 1349613464, 1349613429, 1349613402, 1349613384, 1349613148, 1349613122, 1349613088, 1349612820, 1349612793, 1349612740, 1349612704, 1349612673, 1349612638, 1349612181] Looping around the photos to save general results len do output : 1 /21990543Didn'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, '2719061') ('4302', '21990543', '1349614154', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613660', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613656', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613653', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613648', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613643', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613640', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613464', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613429', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613402', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613384', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613148', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613122', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349613088', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612820', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612793', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612740', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612704', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612673', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612638', None, None, None, None, None, '2719061') ('4302', None, None, None, None, None, None, None, '2719061') ('4302', '21990543', '1349612181', None, None, None, None, None, '2719061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '21990543', 'None', None, None, None, None, '2719061'), ('4302', '21990543', '1349614154', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613660', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613656', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613653', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613648', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613643', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613640', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613464', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613429', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613402', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613384', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613148', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613122', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349613088', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612820', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612793', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612740', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612704', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612673', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612638', None, None, None, None, None, '2719061'), ('4302', '21990543', '1349612181', None, None, None, None, None, '2719061')] time used for this insertion : 0.42851948738098145 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8301196098327637 time spend to save output : 0.42884016036987305 total time spend for step 5 : 4.258959770202637 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 (2719061) 2.81user 2.50system 0:16.36elapsed 32%CPU (0avgtext+0avgdata 160836maxresident)k 3720inputs+17080outputs (63major+76611minor)pagefaults 0swaps