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 : 4130324 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 (3596638) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3596638) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223041 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3596638'] with mtr_portfolio_ids : ['26223041'] and first list_photo_ids : [] new path : /proc/4130324/ Name: python3 Umask: 0002 State: R (running) Tgid: 4130324 Ngid: 0 Pid: 4130324 PPid: 4130323 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4130324 NSpid: 4130324 NSpgid: 4130045 NSsid: 4130045 VmPeak: 1107248 kB VmSize: 1107248 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100156 kB VmRSS: 100156 kB RssAnon: 60160 kB RssFile: 39996 kB RssShmem: 0 kB VmData: 866000 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 56 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4130324', 'Ngid': '0', 'Pid': '4130324', 'PPid': '4130323', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4130324', 'NSpid': '4130324', 'NSpgid': '4130045', 'NSsid': '4130045', 'VmPeak': '1107248 kB', 'VmSize': '1107248 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100156 kB', 'VmRSS': '100156 kB', 'RssAnon': '60160 kB', 'RssFile': '39996 kB', 'RssShmem': '0 kB', 'VmData': '866000 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '56', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '4130324', '1107248', '0', '1107248', '866000', '100156', b'', 'marlene', '3596638') 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 (26223041) 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 (3596638 ) ) 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 (26223041) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1379369641, 'portfolio_id': 26223041}, {'photo_id': 1379369640, 'portfolio_id': 26223041}, {'photo_id': 1379369639, 'portfolio_id': 26223041}, {'photo_id': 1379369637, 'portfolio_id': 26223041}, {'photo_id': 1379369636, 'portfolio_id': 26223041}, {'photo_id': 1379369603, 'portfolio_id': 26223041}, {'photo_id': 1379369589, 'portfolio_id': 26223041}, {'photo_id': 1379369588, 'portfolio_id': 26223041}, {'photo_id': 1379369587, 'portfolio_id': 26223041}, {'photo_id': 1379369586, 'portfolio_id': 26223041}, {'photo_id': 1379369585, 'portfolio_id': 26223041}, {'photo_id': 1379369584, 'portfolio_id': 26223041}, {'photo_id': 1379369556, 'portfolio_id': 26223041}, {'photo_id': 1379369554, 'portfolio_id': 26223041}] map_portfolio_id_photo_id: {26223041: [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584, 1379369556, 1379369554]} ##### 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.014011144638061523 #### 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 Tue Aug 26 06:19:27 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26223041) 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 : 26223041 get user id for portfolio 26223041 get sub ptf for main ptf 26223041, type 3726 and hashtags ['Carton_brun', 'metal', 'autre_refus', 'papier', 'mal_croppe', 'flou', 'Carton_gris', 'plastique', 'Teint_Dans_La_Masse', 'environnement', 'cartonnette', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26223041 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','autre_refus','papier','mal_croppe','flou','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','cartonnette','kraft')) 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`=26223041 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','autre_refus','papier','mal_croppe','flou','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','cartonnette','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 26223041, 'sub_port_id': 26223053, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655814, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}, 'autre_refus': {'main_port_id': 26223041, 'sub_port_id': 26223054, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655815, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}, 'Carton_gris': {'main_port_id': 26223041, 'sub_port_id': 26223055, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655816, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}, 'mal_croppe': {'main_port_id': 26223041, 'sub_port_id': 26223056, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655817, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26223041, 'sub_port_id': 26223057, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655818, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}, 'plastique': {'main_port_id': 26223041, 'sub_port_id': 26223058, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655819, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}, 'metal': {'main_port_id': 26223041, 'sub_port_id': 26223059, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655820, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}, 'Carton_brun': {'main_port_id': 26223041, 'sub_port_id': 26223060, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655821, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}, 'environnement': {'main_port_id': 26223041, 'sub_port_id': 26223061, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655822, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}, 'flou': {'main_port_id': 26223041, 'sub_port_id': 26223062, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655823, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}, 'papier': {'main_port_id': 26223041, 'sub_port_id': 26223063, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655824, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}, 'cartonnette': {'main_port_id': 26223041, 'sub_port_id': 26223064, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655825, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26223053 , 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=26223041 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 (26223053) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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 26223054 , 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=26223041 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 (26223054) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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 26223055 , 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=26223041 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 (26223055) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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 26223056 , 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=26223041 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 (26223056) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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 26223057 , 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=26223041 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 (26223057) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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 26223058 , 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=26223041 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 (26223058) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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 26223059 , 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=26223041 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 (26223059) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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 26223060 , 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=26223041 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 (26223060) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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 26223061 , 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=26223041 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 (26223061) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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 26223062 , 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=26223041 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 (26223062) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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 26223063 , 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=26223041 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 (26223063) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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 26223064 , 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=26223041 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 (26223064) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26223041) result : ((1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) 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`=26223041 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','autre_refus','papier','mal_croppe','flou','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','cartonnette','kraft')) 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`=26223041 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','metal','autre_refus','papier','mal_croppe','flou','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','cartonnette','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 26223041, 'sub_port_id': 26223065, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655826, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}, 'autre_refus': {'main_port_id': 26223041, 'sub_port_id': 26223066, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655827, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}, 'Carton_gris': {'main_port_id': 26223041, 'sub_port_id': 26223067, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655828, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}, 'mal_croppe': {'main_port_id': 26223041, 'sub_port_id': 26223068, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655829, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 26223041, 'sub_port_id': 26223069, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655830, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}, 'plastique': {'main_port_id': 26223041, 'sub_port_id': 26223070, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655831, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}, 'metal': {'main_port_id': 26223041, 'sub_port_id': 26223071, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655832, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}, 'Carton_brun': {'main_port_id': 26223041, 'sub_port_id': 26223072, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655833, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}, 'environnement': {'main_port_id': 26223041, 'sub_port_id': 26223073, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655834, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}, 'flou': {'main_port_id': 26223041, 'sub_port_id': 26223074, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655835, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}, 'papier': {'main_port_id': 26223041, 'sub_port_id': 26223075, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655836, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}, 'cartonnette': {'main_port_id': 26223041, 'sub_port_id': 26223076, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17655837, 'last_updated_at': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 26, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 26, 6, 17, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223065,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223053 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223066,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223054 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223067,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223055 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223068,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223056 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223069,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223057 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223070,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223058 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223071,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223059 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223072,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26223076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26223064 lien utilise dans velours : https://www.fotonower.com/velours/26223065,26223066,26223067,26223068,26223069,26223070,26223071,26223072,26223073,26223074,26223075,26223076?tags=kraft,autre_refus,Carton_gris,mal_croppe,Teint_Dans_La_Masse,plastique,metal,Carton_brun,environnement,flou,papier,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26223041]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584] map_info['map_portfolio_photo'] : {26223041: [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584, 1379369556, 1379369554]} final : False mtd_id 4302 list_pids : [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584] Looping around the photos to save general results len do output : 1 /26223041. 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, '3596638') ('4302', '26223041', '1379369641', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369640', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369639', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369637', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369636', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369603', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369589', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369588', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369587', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369586', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369585', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369584', None, None, None, None, None, '3596638') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26223041', "{'kraft': 26223053, 'autre_refus': 26223054, 'Carton_gris': 26223055, 'mal_croppe': 26223056, 'Teint_Dans_La_Masse': 26223057, 'plastique': 26223058, 'metal': 26223059, 'Carton_brun': 26223060, 'environnement': 26223061, 'flou': 26223062, 'papier': 26223063, 'cartonnette': 26223064}", None, None, None, None, '3596638'), ('4302', '26223041', '1379369641', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369640', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369639', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369637', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369636', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369603', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369589', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369588', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369587', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369586', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369585', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369584', None, None, None, None, None, '3596638')] time used for this insertion : 0.017487049102783203 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5140488147735596 time spend to save output : 0.017806529998779297 total time spend for step 1 : 1.5318553447723389 step2:final Tue Aug 26 06:19:29 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 (26223041) 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 26223041 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1379369556,1379369603,1379369554,1379369589,1379369588,1379369587,1379369586,1379369585,1379369584,1379369641,1379369640,1379369639,1379369637,1379369636); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26223041]) Inside saveOutput : final : False verbose : True original output for save of step final : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} new output for save of step final : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584] map_info['map_portfolio_photo'] : {26223041: [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584, 1379369556, 1379369554]} final : False mtd_id 4302 list_pids : [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584] Looping around the photos to save general results len do output : 12 /1379369641.Didn't retrieve data . /1379369640.Didn't retrieve data . /1379369639.Didn't retrieve data . /1379369637.Didn't retrieve data . /1379369636.Didn't retrieve data . /1379369603.Didn't retrieve data . /1379369589.Didn't retrieve data . /1379369588.Didn't retrieve data . /1379369587.Didn't retrieve data . /1379369586.Didn't retrieve data . /1379369585.Didn't retrieve data . /1379369584.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, '3596638') ('4302', '26223041', '1379369641', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369640', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369639', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369637', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369636', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369603', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369589', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369588', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369587', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369586', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369585', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369584', None, None, None, None, None, '3596638') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '26223041', '1379369641', '0.0', None, None, None, None, '3596638'), ('4302', '26223041', '1379369640', '0.0', None, None, None, None, '3596638'), ('4302', '26223041', '1379369639', '0.0', None, None, None, None, '3596638'), ('4302', '26223041', '1379369637', '0.0', None, None, None, None, '3596638'), ('4302', '26223041', '1379369636', '0.0', None, None, None, None, '3596638'), ('4302', '26223041', '1379369603', '0.0', None, None, None, None, '3596638'), ('4302', '26223041', '1379369589', '0.0', None, None, None, None, '3596638'), ('4302', '26223041', '1379369588', '0.0', None, None, None, None, '3596638'), ('4302', '26223041', '1379369587', '0.0', None, None, None, None, '3596638'), ('4302', '26223041', '1379369586', '0.0', None, None, None, None, '3596638'), ('4302', '26223041', '1379369585', '0.0', None, None, None, None, '3596638'), ('4302', '26223041', '1379369584', '0.0', None, None, None, None, '3596638')] time used for this insertion : 0.019665241241455078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.04992985725402832 time spend to save output : 0.020257234573364258 total time spend for step 2 : 0.07018709182739258 step3:velours_tree Tue Aug 26 06:19:29 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 : {26223041: [{'kraft': 26223053, 'autre_refus': 26223054, 'Carton_gris': 26223055, 'mal_croppe': 26223056, 'Teint_Dans_La_Masse': 26223057, 'plastique': 26223058, 'metal': 26223059, 'Carton_brun': 26223060, 'environnement': 26223061, 'flou': 26223062, 'papier': 26223063, 'cartonnette': 26223064}]} input_args_next_step : {26223041: ()} output_args : {26223041: [{'kraft': 26223053, 'autre_refus': 26223054, 'Carton_gris': 26223055, 'mal_croppe': 26223056, 'Teint_Dans_La_Masse': 26223057, 'plastique': 26223058, 'metal': 26223059, 'Carton_brun': 26223060, 'environnement': 26223061, 'flou': 26223062, 'papier': 26223063, 'cartonnette': 26223064}]} args : 26223041 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 : ({'kraft': 26223053, 'autre_refus': 26223054, 'Carton_gris': 26223055, 'mal_croppe': 26223056, 'Teint_Dans_La_Masse': 26223057, 'plastique': 26223058, 'metal': 26223059, 'Carton_brun': 26223060, 'environnement': 26223061, 'flou': 26223062, 'papier': 26223063, 'cartonnette': 26223064},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26223041) 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([26223041]) 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.29067444801330566 time spend to save output : 6.151199340820312e-05 total time spend for step 3 : 0.29073596000671387 step4:send_mail_cod Tue Aug 26 06:19:29 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 : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} input_args_next_step : {1379369641: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369641 depend.output_id : 0 input_args_next_step : {1379369641: ('0.0',), 1379369640: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369640 depend.output_id : 0 input_args_next_step : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369639 depend.output_id : 0 input_args_next_step : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369637 depend.output_id : 0 input_args_next_step : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369636 depend.output_id : 0 input_args_next_step : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369603 depend.output_id : 0 input_args_next_step : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369589 depend.output_id : 0 input_args_next_step : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369588 depend.output_id : 0 input_args_next_step : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369587 depend.output_id : 0 input_args_next_step : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369586 depend.output_id : 0 input_args_next_step : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369585 depend.output_id : 0 input_args_next_step : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ()} output_args : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',)} args : 1379369584 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 : {26223041: [{'kraft': 26223053, 'autre_refus': 26223054, 'Carton_gris': 26223055, 'mal_croppe': 26223056, 'Teint_Dans_La_Masse': 26223057, 'plastique': 26223058, 'metal': 26223059, 'Carton_brun': 26223060, 'environnement': 26223061, 'flou': 26223062, 'papier': 26223063, 'cartonnette': 26223064}]} input_args_next_step : {1379369641: ('0.0',), 1379369640: ('0.0',), 1379369639: ('0.0',), 1379369637: ('0.0',), 1379369636: ('0.0',), 1379369603: ('0.0',), 1379369589: ('0.0',), 1379369588: ('0.0',), 1379369587: ('0.0',), 1379369586: ('0.0',), 1379369585: ('0.0',), 1379369584: ('0.0',), 26223041: ()} output_args : {26223041: [{'kraft': 26223053, 'autre_refus': 26223054, 'Carton_gris': 26223055, 'mal_croppe': 26223056, 'Teint_Dans_La_Masse': 26223057, 'plastique': 26223058, 'metal': 26223059, 'Carton_brun': 26223060, 'environnement': 26223061, 'flou': 26223062, 'papier': 26223063, 'cartonnette': 26223064}]} args : 26223041 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 :13, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26223041) 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 (1379369641,1379369640,1379369639,1379369637,1379369636,1379369603,1379369589,1379369588,1379369587,1379369586,1379369585,1379369584) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1379369584 begin to download photo : 1379369587 begin to download photo : 1379369603 begin to download photo : 1379369639 download finish for photo 1379369587 begin to download photo : 1379369588 download finish for photo 1379369584 begin to download photo : 1379369585 download finish for photo 1379369639 begin to download photo : 1379369640 download finish for photo 1379369603 begin to download photo : 1379369636 download finish for photo 1379369588 begin to download photo : 1379369589 download finish for photo 1379369585 begin to download photo : 1379369586 download finish for photo 1379369636 begin to download photo : 1379369637 download finish for photo 1379369640 begin to download photo : 1379369641 download finish for photo 1379369586 download finish for photo 1379369589 download finish for photo 1379369637 download finish for photo 1379369641 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette262230531756181969/ imagette262230541756181969/ imagette262230561756181969/ imagette262230581756181969/ imagette262230591756181969/ imagette262230621756181969/ imagette262230641756181969/ imagette262230551756181970/ imagette262230571756181970/ imagette262230601756181970/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P26223041_26-08-2025_06_19_29.pdf 26223053 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=26223053 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262230531756181969 26223054 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=26223054 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262230541756181969 26223056 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=26223056 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262230561756181969 26223058 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=26223058 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262230581756181969 26223059 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=26223059 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262230591756181969 26223062 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=26223062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262230621756181969 26223064 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=26223064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262230641756181969 26223055 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=26223055 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262230551756181970 26223057 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=26223057 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262230571756181970 26223060 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=26223060 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262230601756181970 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26223041 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/26223065,26223066,26223067,26223068,26223069,26223070,26223071,26223072,26223073,26223074,26223075,26223076?tags=kraft,autre_refus,Carton_gris,mal_croppe,Teint_Dans_La_Masse,plastique,metal,Carton_brun,environnement,flou,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1379369641] : ('0.0',) no score found for photo 1379369641 We are sending mail with results at report@fotonower.com args[1379369640] : ('0.0',) no score found for photo 1379369640 We are sending mail with results at report@fotonower.com args[1379369639] : ('0.0',) no score found for photo 1379369639 We are sending mail with results at report@fotonower.com args[1379369637] : ('0.0',) no score found for photo 1379369637 We are sending mail with results at report@fotonower.com args[1379369636] : ('0.0',) no score found for photo 1379369636 We are sending mail with results at report@fotonower.com args[1379369603] : ('0.0',) no score found for photo 1379369603 We are sending mail with results at report@fotonower.com args[1379369589] : ('0.0',) no score found for photo 1379369589 We are sending mail with results at report@fotonower.com args[1379369588] : ('0.0',) no score found for photo 1379369588 We are sending mail with results at report@fotonower.com args[1379369587] : ('0.0',) no score found for photo 1379369587 We are sending mail with results at report@fotonower.com args[1379369586] : ('0.0',) no score found for photo 1379369586 We are sending mail with results at report@fotonower.com args[1379369585] : ('0.0',) no score found for photo 1379369585 We are sending mail with results at report@fotonower.com args[1379369584] : ('0.0',) no score found for photo 1379369584 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=26223041 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_P26223041_26-08-2025_06_19_29.pdf results_Auto_P26223041_26-08-2025_06_19_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223041_26-08-2025_06_19_29.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','26223041','results_Auto_P26223041_26-08-2025_06_19_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223041_26-08-2025_06_19_29.pdf','pdf','','0.11','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26223041]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584] map_info['map_portfolio_photo'] : {26223041: [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584, 1379369556, 1379369554]} final : False mtd_id 4302 list_pids : [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584] 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, '3596638') ('4302', '26223041', '1379369641', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369640', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369639', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369637', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369636', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369603', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369589', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369588', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369587', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369586', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369585', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369584', None, None, None, None, None, '3596638') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '26223041', '1379369641', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369640', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369639', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369637', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369636', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369603', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369589', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369588', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369587', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369586', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369585', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369584', None, None, None, None, None, '3596638')] time used for this insertion : 0.02166914939880371 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6946468353271484 time spend to save output : 0.021914958953857422 total time spend for step 4 : 1.7165617942810059 step5:split_time_score Tue Aug 26 06:19:31 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 : ['26223041'] 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 : [('26223041',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26223041) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1379369584: {'path': 'temp/1756181969_4130324_1379369584_b89439d8e79ccf7fbea484021dffa19c_33878899.jpg', 'extension': 'jpg'}, 1379369585: {'path': 'temp/1756181969_4130324_1379369585_68a21ed8538414c8b521963d29f984dd_50314040.jpg', 'extension': 'jpg'}, 1379369586: {'path': 'temp/1756181969_4130324_1379369586_cc37c86bdb5336f054d16a44f9fbfd3f_19228637.jpg', 'extension': 'jpg'}, 1379369587: {'path': 'temp/1756181969_4130324_1379369587_80843cdf61733fedac7bab665593a65a_13456166.jpg', 'extension': 'jpg'}, 1379369588: {'path': 'temp/1756181969_4130324_1379369588_cf6eb700d647cc08147fbe75679359c3_13400645.jpg', 'extension': 'jpg'}, 1379369589: {'path': 'temp/1756181969_4130324_1379369589_e52369fd06290077987c651b70323496_33888052.jpg', 'extension': 'jpg'}, 1379369603: {'path': 'temp/1756181969_4130324_1379369603_e779ead5ee3957d4a7b221016bce44cb_91632809.jpg', 'extension': 'jpg'}, 1379369636: {'path': 'temp/1756181969_4130324_1379369636_0b3de41b3f6e8b76f08554b7f3cbc004_58049312.jpg', 'extension': 'jpg'}, 1379369637: {'path': 'temp/1756181969_4130324_1379369637_f6efb3084e2777c53131ee7d2a6f2b15_94146405.jpg', 'extension': 'jpg'}, 1379369639: {'path': 'temp/1756181969_4130324_1379369639_7d3835f9eef9339f6585a84e3b3f62da_91426697.jpg', 'extension': 'jpg'}, 1379369640: {'path': 'temp/1756181969_4130324_1379369640_06e8c87df32ff6254f3a94f1af2a9385_36607883.jpg', 'extension': 'jpg'}, 1379369641: {'path': 'temp/1756181969_4130324_1379369641_98d5f500a3e7ca5586ae25230f73dd67_92744670.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 = 26223041; (('arc_en_ciel_jrm_live',), ('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 = 26223041 group by h (('06', 14),) 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=26223041 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 (26223041) 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 (26223041) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26082025 26223041 Nombre de photos uploadées : 14 / 23040 (0%) 26082025 26223041 Nombre de photos taguées (types de déchets): 0 / 14 (0%) 26082025 26223041 Nombre de photos taguées (volume) : 0 / 14 (0%) [{'photo_id': 1379369556, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/26/e779ead5ee3957d4a7b221016bce44cb_95731693.jpg', 'username': None, 'uploaded_at': 1756181772, 'text': 'image_26082025_06_15_04_10151.jpg'}, {'photo_id': 1379369603, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/26/e779ead5ee3957d4a7b221016bce44cb_91632809.jpg', 'username': None, 'uploaded_at': 1756181847, 'text': 'image_26082025_06_15_04_10151.jpg'}, {'photo_id': 1379369554, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/26/e52369fd06290077987c651b70323496_24132693.jpg', 'username': None, 'uploaded_at': 1756181772, 'text': 'image_26082025_06_15_14_10135.jpg'}, {'photo_id': 1379369589, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/26/e52369fd06290077987c651b70323496_33888052.jpg', 'username': None, 'uploaded_at': 1756181837, 'text': 'image_26082025_06_15_14_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ?????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0007076263427734375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26223041, '2025-08-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-26' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2174217,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21454429626464844 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 2174217 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26218438, 'dashboard_result_id': 14290088, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218438_26-08-2025_06_07_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26218439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26218440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26218441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26218442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26218443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26218444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26218445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26218446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26218447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26218448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26218449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26218450, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26218950, 'dashboard_result_id': 14290089, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218950_26-08-2025_06_07_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26218954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26218955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26218956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26218957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26218958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26218959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26218960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26218961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26218962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26218963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26218964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26218965, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26219900, 'dashboard_result_id': 14290090, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219900_26-08-2025_06_09_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26219903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26219904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26219905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26219906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26219907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26219908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26219909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26219910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26219911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26219912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26219913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26219914, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26219967, 'dashboard_result_id': 14290091, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219967_26-08-2025_06_09_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26219973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26219974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26219975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26219976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26219977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26219978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26219979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26219980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26219981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26219982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26219983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26219984, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26220103, 'dashboard_result_id': 14290092, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220103_26-08-2025_06_09_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220139, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26220140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220147, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26220824, 'dashboard_result_id': 14290093, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220824_26-08-2025_06_10_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26220830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220841, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26220951, 'dashboard_result_id': 14290094, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220951_26-08-2025_06_11_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26220956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220967, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26221110, 'dashboard_result_id': 14290095, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221110_26-08-2025_06_11_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221154, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26221445, 'dashboard_result_id': 14290096, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221445_26-08-2025_06_12_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26221450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221461, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26221595, 'dashboard_result_id': 14290097, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221595_26-08-2025_06_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221611, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221612, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26221773, 'dashboard_result_id': 14290098, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221773_26-08-2025_04_05_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221790, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26221991, 'dashboard_result_id': 14290099, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221991_26-08-2025_05_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222015, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26222507, 'dashboard_result_id': 14290100, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222507_26-08-2025_06_14_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222520, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26222617, 'dashboard_result_id': 14290101, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222617_26-08-2025_06_14_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222632, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26222730, 'dashboard_result_id': 14290102, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222730_26-08-2025_06_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222746, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26222815, 'dashboard_result_id': 14290103, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222815_26-08-2025_06_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222835, 'pht': 3726}}"}, {'dashboat_entry_day': 2174217, 'dashboard_run_id': 2182421, 'mtr_portfolio_id': 26223041, 'dashboard_result_id': 14290104, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223041_26-08-2025_06_17_31.pdf'}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26218438 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26218438 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26218438 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26218438 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26218438 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26218438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218438_26-08-2025_06_07_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26218438 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218438_26-08-2025_06_07_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26218439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26218440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26218441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26218442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26218443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26218444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26218445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26218446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26218447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26218448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26218449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26218450, 'pht': 3726}}" where mtr_portfolio_id = 26218438 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26218950 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26218950 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26218950 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26218950 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26218950 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26218950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218950_26-08-2025_06_07_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26218950 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26218950_26-08-2025_06_07_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26218954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26218955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26218956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26218957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26218958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26218959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26218960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26218961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26218962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26218963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26218964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26218965, 'pht': 3726}}" where mtr_portfolio_id = 26218950 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26219900 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26219900 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26219900 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26219900 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26219900 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26219900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219900_26-08-2025_06_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26219900 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219900_26-08-2025_06_09_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26219903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26219904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26219905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26219906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26219907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26219908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26219909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26219910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26219911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26219912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26219913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26219914, 'pht': 3726}}" where mtr_portfolio_id = 26219900 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26219967 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26219967 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26219967 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26219967 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26219967 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26219967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219967_26-08-2025_06_09_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26219967 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26219967_26-08-2025_06_09_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26219973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26219974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26219975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26219976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26219977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26219978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26219979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26219980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26219981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26219982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26219983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26219984, 'pht': 3726}}" where mtr_portfolio_id = 26219967 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220103 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220103 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26220103 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220103 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220103 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26220103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220103_26-08-2025_06_09_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26220103 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220103_26-08-2025_06_09_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220139, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26220140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220147, 'pht': 3726}}" where mtr_portfolio_id = 26220103 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220824 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220824 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26220824 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220824 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220824 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26220824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220824_26-08-2025_06_10_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26220824 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220824_26-08-2025_06_10_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26220830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220841, 'pht': 3726}}" where mtr_portfolio_id = 26220824 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220951 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220951 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26220951 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220951 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26220951 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26220951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220951_26-08-2025_06_11_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26220951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26220951_26-08-2025_06_11_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26220956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26220957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26220958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26220959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26220960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26220961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26220962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26220963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26220964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26220965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26220966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26220967, 'pht': 3726}}" where mtr_portfolio_id = 26220951 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221110 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221110 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26221110 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221110 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221110 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26221110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221110_26-08-2025_06_11_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26221110 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221110_26-08-2025_06_11_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221154, 'pht': 3726}}" where mtr_portfolio_id = 26221110 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221445 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221445 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26221445 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221445 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221445 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26221445 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221445_26-08-2025_06_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26221445 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221445_26-08-2025_06_12_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26221450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221461, 'pht': 3726}}" where mtr_portfolio_id = 26221445 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221595 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221595 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26221595 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221595 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221595 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26221595 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221595_26-08-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26221595 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221595_26-08-2025_06_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221611, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221612, 'pht': 3726}}" where mtr_portfolio_id = 26221595 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221773 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221773 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26221773 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221773 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221773 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26221773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221773_26-08-2025_04_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26221773 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221773_26-08-2025_04_05_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26221779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26221780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26221781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26221782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26221783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26221784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26221785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26221786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26221787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26221788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26221789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26221790, 'pht': 3726}}" where mtr_portfolio_id = 26221773 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221991 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221991 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26221991 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221991 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26221991 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26221991 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221991_26-08-2025_05_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26221991 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26221991_26-08-2025_05_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222015, 'pht': 3726}}" where mtr_portfolio_id = 26221991 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222507 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222507 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26222507 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222507 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222507 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26222507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222507_26-08-2025_06_14_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26222507 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222507_26-08-2025_06_14_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222520, 'pht': 3726}}" where mtr_portfolio_id = 26222507 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222617 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222617 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26222617 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222617 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222617 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26222617 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222617_26-08-2025_06_14_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26222617 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222617_26-08-2025_06_14_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222632, 'pht': 3726}}" where mtr_portfolio_id = 26222617 and dashboard_run_id = 2182421 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222730 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222730 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26222730 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222730 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222730 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26222730 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222730_26-08-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26222730 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222730_26-08-2025_06_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222746, 'pht': 3726}}" where mtr_portfolio_id = 26222730 and dashboard_run_id = 2182423 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222815 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222815 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26222815 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222815 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26222815 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26222815 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222815_26-08-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26222815 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26222815_26-08-2025_06_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26222824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26222825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26222826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26222827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26222828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26222829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26222830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26222831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26222832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26222833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26222834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26222835, 'pht': 3726}}" where mtr_portfolio_id = 26222815 and dashboard_run_id = 2182423 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26223041 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26223041 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26223041 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26223041 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26223041 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26223041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223041_26-08-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26223041 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26223041_26-08-2025_06_19_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26223053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26223054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26223055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26223056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26223057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26223058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26223059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26223060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26223061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26223062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26223063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26223064, 'pht': 3726}}" where mtr_portfolio_id = 26223041 and dashboard_run_id = 2182423 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26218438,26218950,26219900,26219967,26220103,26220824,26220951,26221110,26221445,26221595,26221773,26221991,26222507,26222617,26222730,26222815,26223041) result : ((1379342854,), (1379342855,), (1379342870,), (1379342957,), (1379342959,), (1379344937,), (1379344940,), (1379345298,), (1379346354,), (1379347089,), (1379347411,), (1379347710,), (1379347711,), (1379347794,), (1379347795,), (1379347900,), (1379347958,), (1379348092,), (1379348173,), (1379352067,), (1379352068,), (1379352103,), (1379352125,), (1379352140,), (1379352141,), (1379352163,), (1379352164,), (1379352188,), (1379352210,), (1379352262,), (1379352319,), (1379352346,), (1379352347,), (1379352389,), (1379352387,), (1379352388,), (1379352440,), (1379352464,), (1379352600,), (1379352601,), (1379352602,), (1379352623,), (1379352648,), (1379352681,), (1379352682,), (1379352820,), (1379352821,), (1379352882,), (1379352884,), (1379352896,), (1379352897,), (1379352942,), (1379352941,), (1379353283,), (1379353284,), (1379353719,), (1379355085,), (1379355086,), (1379355111,), (1379355112,), (1379355127,), (1379355128,), (1379355280,), (1379355339,), (1379355340,), (1379355341,), (1379355383,), (1379355957,), (1379355998,), (1379356022,), (1379356109,), (1379356110,), (1379356130,), (1379356151,), (1379356196,), (1379356214,), (1379356278,), (1379356320,), (1379356379,), (1379356441,), (1379356442,), (1379356460,), (1379356461,), (1379356531,), (1379356532,), (1379356563,), (1379356564,), (1379356605,), (1379356990,), (1379356992,), (1379356994,), (1379358160,), (1379358553,), (1379358733,), (1379358735,), (1379358780,), (1379358781,), (1379358782,), (1379358783,), (1379358838,), (1379358911,), (1379358961,), (1379358960,), (1379358977,), (1379358978,), (1379359030,), (1379359052,), (1379359053,), (1379359115,), (1379359173,), (1379359174,), (1379359193,), (1379359194,), (1379359281,), (1379359342,), (1379359341,), (1379359383,), (1379359384,), (1379359429,), (1379359458,), (1379359493,), (1379359535,), (1379359576,), (1379359623,), (1379359624,), (1379359625,), (1379359689,), (1379359690,), (1379359720,), (1379359738,), (1379359776,), (1379359777,), (1379359836,), (1379359920,), (1379359940,), (1379359963,), (1379359983,), (1379359995,), (1379360559,), (1379360560,), (1379360568,), (1379361235,), (1379361233,), (1379361385,), (1379361668,), (1379361670,), (1379362176,), (1379362177,), (1379362236,), (1379362237,), (1379364945,), (1379365529,), (1379365730,), (1379365731,), (1379365751,), (1379365758,), (1379365759,), (1379365760,), (1379365812,), (1379365813,), (1379365814,), (1379365815,), (1379366262,), (1379365996,), (1379366284,), (1379366290,), (1379366291,), (1379366317,), (1379366371,), (1379366372,), (1379366373,), (1379367051,), (1379367191,), (1379367192,), (1379367252,), (1379367254,), (1379367257,), (1379367259,), (1379367261,), (1379367263,), (1379367653,), (1379367655,), (1379367657,), (1379367659,), (1379367838,), (1379367839,), (1379368118,), (1379368114,), (1379368116,), (1379368380,), (1379368381,), (1379368382,), (1379368383,), (1379368462,), (1379368463,), (1379368464,), (1379368465,), (1379368553,), (1379368555,), (1379368557,), (1379368559,), (1379368561,), (1379368918,), (1379368920,), (1379368923,), (1379368925,), (1379368927,), (1379369168,), (1379369170,), (1379369172,), (1379369174,), (1379369176,), (1379369178,), (1379369262,), (1379369263,), (1379369264,), (1379369266,), (1379369267,), (1379369268,), (1379369292,), (1379369294,), (1379369296,), (1379369298,), (1379369334,), (1379369335,), (1379369336,), (1379369337,), (1379369338,), (1379369339,), (1379369341,), (1379369342,), (1379369344,), (1379369357,), (1379369358,), (1379369386,), (1379369387,), (1379369388,), (1379369389,), (1379369390,), (1379369409,), (1379369410,), (1379369411,), (1379369412,), (1379369413,), (1379369414,), (1379369477,), (1379369478,), (1379369479,), (1379369480,), (1379369481,), (1379369502,), (1379369503,), (1379369504,), (1379369505,), (1379369506,), (1379369530,), (1379369532,), (1379369533,), (1379369534,), (1379369535,), (1379369557,), (1379369604,), (1379369554,), (1379369556,), (1379369584,), (1379369585,), (1379369586,), (1379369587,), (1379369588,), (1379369589,), (1379369603,), (1379369636,), (1379369637,), (1379369639,), (1379369640,), (1379369641,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26082025': {'nb_upload': 14, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26223041]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584] map_info['map_portfolio_photo'] : {26223041: [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584, 1379369556, 1379369554]} final : True mtd_id 4302 list_pids : [1379369641, 1379369640, 1379369639, 1379369637, 1379369636, 1379369603, 1379369589, 1379369588, 1379369587, 1379369586, 1379369585, 1379369584] Looping around the photos to save general results len do output : 1 /26223041Didn'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, '3596638') ('4302', '26223041', '1379369641', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369640', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369639', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369637', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369636', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369603', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369589', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369588', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369587', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369586', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369585', None, None, None, None, None, '3596638') ('4302', None, None, None, None, None, None, None, '3596638') ('4302', '26223041', '1379369584', None, None, None, None, None, '3596638') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26223041', 'None', None, None, None, None, '3596638'), ('4302', '26223041', '1379369641', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369640', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369639', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369637', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369636', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369603', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369589', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369588', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369587', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369586', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369585', None, None, None, None, None, '3596638'), ('4302', '26223041', '1379369584', None, None, None, None, None, '3596638')] time used for this insertion : 0.021680355072021484 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4200727939605713 time spend to save output : 0.021953105926513672 total time spend for step 5 : 1.442025899887085 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 (3596638) 2.02user 2.33system 0:07.36elapsed 59%CPU (0avgtext+0avgdata 161144maxresident)k 0inputs+6664outputs (11major+64221minor)pagefaults 0swaps