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 : 2160345 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 (2667683) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2667683) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407147 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2667683'] with mtr_portfolio_ids : ['21407147'] and first list_photo_ids : [] new path : /proc/2160345/ Name: python3 Umask: 0002 State: R (running) Tgid: 2160345 Ngid: 0 Pid: 2160345 PPid: 2160344 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2160345 NSpid: 2160345 NSpgid: 2157656 NSsid: 2157656 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97264 kB VmRSS: 97264 kB RssAnon: 59800 kB RssFile: 37464 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2160345', 'Ngid': '0', 'Pid': '2160345', 'PPid': '2160344', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2160345', 'NSpid': '2160345', 'NSpgid': '2157656', 'NSsid': '2157656', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97264 kB', 'VmRSS': '97264 kB', 'RssAnon': '59800 kB', 'RssFile': '37464 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '2160345', '1106844', '0', '1106844', '865596', '97264', b'', 'marlene', '2667683') 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 (21407147) 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 (2667683 ) ) 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 (21407147) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1344070339, 'portfolio_id': 21407147}, {'photo_id': 1344070337, 'portfolio_id': 21407147}, {'photo_id': 1344070335, 'portfolio_id': 21407147}, {'photo_id': 1344070332, 'portfolio_id': 21407147}, {'photo_id': 1344070327, 'portfolio_id': 21407147}, {'photo_id': 1344070304, 'portfolio_id': 21407147}, {'photo_id': 1344070300, 'portfolio_id': 21407147}, {'photo_id': 1344070288, 'portfolio_id': 21407147}, {'photo_id': 1344070277, 'portfolio_id': 21407147}, {'photo_id': 1344070273, 'portfolio_id': 21407147}, {'photo_id': 1344070259, 'portfolio_id': 21407147}, {'photo_id': 1344070229, 'portfolio_id': 21407147}, {'photo_id': 1344070227, 'portfolio_id': 21407147}, {'photo_id': 1344070223, 'portfolio_id': 21407147}, {'photo_id': 1344070219, 'portfolio_id': 21407147}, {'photo_id': 1344070204, 'portfolio_id': 21407147}, {'photo_id': 1344070198, 'portfolio_id': 21407147}, {'photo_id': 1344070181, 'portfolio_id': 21407147}, {'photo_id': 1344070179, 'portfolio_id': 21407147}, {'photo_id': 1344070177, 'portfolio_id': 21407147}, {'photo_id': 1344070175, 'portfolio_id': 21407147}, {'photo_id': 1344070145, 'portfolio_id': 21407147}, {'photo_id': 1344070141, 'portfolio_id': 21407147}, {'photo_id': 1344070138, 'portfolio_id': 21407147}, {'photo_id': 1344070136, 'portfolio_id': 21407147}, {'photo_id': 1344070133, 'portfolio_id': 21407147}, {'photo_id': 1344070069, 'portfolio_id': 21407147}, {'photo_id': 1344070066, 'portfolio_id': 21407147}, {'photo_id': 1344070061, 'portfolio_id': 21407147}, {'photo_id': 1344070055, 'portfolio_id': 21407147}, {'photo_id': 1344069995, 'portfolio_id': 21407147}, {'photo_id': 1344069989, 'portfolio_id': 21407147}, {'photo_id': 1344069983, 'portfolio_id': 21407147}, {'photo_id': 1344069978, 'portfolio_id': 21407147}, {'photo_id': 1344069974, 'portfolio_id': 21407147}, {'photo_id': 1344069971, 'portfolio_id': 21407147}, {'photo_id': 1344069898, 'portfolio_id': 21407147}, {'photo_id': 1344069890, 'portfolio_id': 21407147}, {'photo_id': 1344069886, 'portfolio_id': 21407147}, {'photo_id': 1344069885, 'portfolio_id': 21407147}, {'photo_id': 1344069868, 'portfolio_id': 21407147}, {'photo_id': 1344069862, 'portfolio_id': 21407147}, {'photo_id': 1344069859, 'portfolio_id': 21407147}, {'photo_id': 1344069857, 'portfolio_id': 21407147}, {'photo_id': 1344069854, 'portfolio_id': 21407147}, {'photo_id': 1344069840, 'portfolio_id': 21407147}, {'photo_id': 1344069836, 'portfolio_id': 21407147}, {'photo_id': 1344069832, 'portfolio_id': 21407147}, {'photo_id': 1344069831, 'portfolio_id': 21407147}, {'photo_id': 1344069830, 'portfolio_id': 21407147}, {'photo_id': 1344069827, 'portfolio_id': 21407147}, {'photo_id': 1344069821, 'portfolio_id': 21407147}, {'photo_id': 1344069799, 'portfolio_id': 21407147}, {'photo_id': 1344069798, 'portfolio_id': 21407147}, {'photo_id': 1344069797, 'portfolio_id': 21407147}, {'photo_id': 1344069781, 'portfolio_id': 21407147}, {'photo_id': 1344069766, 'portfolio_id': 21407147}, {'photo_id': 1344069731, 'portfolio_id': 21407147}, {'photo_id': 1344069728, 'portfolio_id': 21407147}, {'photo_id': 1344069726, 'portfolio_id': 21407147}, {'photo_id': 1344069724, 'portfolio_id': 21407147}, {'photo_id': 1344069659, 'portfolio_id': 21407147}, {'photo_id': 1344069656, 'portfolio_id': 21407147}, {'photo_id': 1344069655, 'portfolio_id': 21407147}, {'photo_id': 1344069651, 'portfolio_id': 21407147}, {'photo_id': 1344069638, 'portfolio_id': 21407147}, {'photo_id': 1344069634, 'portfolio_id': 21407147}, {'photo_id': 1344069610, 'portfolio_id': 21407147}, {'photo_id': 1344069608, 'portfolio_id': 21407147}, {'photo_id': 1344069604, 'portfolio_id': 21407147}] map_portfolio_id_photo_id: {21407147: [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259, 1344070229, 1344070227, 1344070223, 1344070219, 1344070204, 1344070198, 1344070181, 1344070179, 1344070177, 1344070175, 1344070145, 1344070141, 1344070138, 1344070136, 1344070133, 1344070069, 1344070066, 1344070061, 1344070055, 1344069995, 1344069989, 1344069983, 1344069978, 1344069974, 1344069971, 1344069898, 1344069890, 1344069886, 1344069885, 1344069868, 1344069862, 1344069859, 1344069857, 1344069854, 1344069840, 1344069836, 1344069832, 1344069831, 1344069830, 1344069827, 1344069821, 1344069799, 1344069798, 1344069797, 1344069781, 1344069766, 1344069731, 1344069728, 1344069726, 1344069724, 1344069659, 1344069656, 1344069655, 1344069651, 1344069638, 1344069634, 1344069610, 1344069608, 1344069604]} ##### 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.041413307189941406 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 14 05:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21407147) 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 : 21407147 get user id for portfolio 21407147 get sub ptf for main ptf 21407147, type 3726 and hashtags ['flou', 'environnement', 'kraft', 'metal', 'mal_croppe', 'cartonnette', 'autre_refus', 'plastique', 'Carton_gris', 'Carton_brun', 'papier', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21407147 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','kraft','metal','mal_croppe','cartonnette','autre_refus','plastique','Carton_gris','Carton_brun','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21407147 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','kraft','metal','mal_croppe','cartonnette','autre_refus','plastique','Carton_gris','Carton_brun','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21407147, 'sub_port_id': 21407149, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980304, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}, 'metal': {'main_port_id': 21407147, 'sub_port_id': 21407150, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980305, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}, 'mal_croppe': {'main_port_id': 21407147, 'sub_port_id': 21407151, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980306, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}, 'papier': {'main_port_id': 21407147, 'sub_port_id': 21407152, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980307, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}, 'environnement': {'main_port_id': 21407147, 'sub_port_id': 21407153, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980308, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}, 'Carton_gris': {'main_port_id': 21407147, 'sub_port_id': 21407154, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980309, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}, 'cartonnette': {'main_port_id': 21407147, 'sub_port_id': 21407155, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980310, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}, 'autre_refus': {'main_port_id': 21407147, 'sub_port_id': 21407156, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980311, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}, 'flou': {'main_port_id': 21407147, 'sub_port_id': 21407157, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980312, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21407147, 'sub_port_id': 21407158, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980313, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}, 'Carton_brun': {'main_port_id': 21407147, 'sub_port_id': 21407159, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980314, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}, 'kraft': {'main_port_id': 21407147, 'sub_port_id': 21407160, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980315, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 19, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407149 , 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=21407147 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 (21407149) result : ((1344069762,), (1344069763,), (1344070275,), (1344070296,), (1344070297,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407150 , 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=21407147 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 (21407150) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407151 , 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=21407147 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 (21407151) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407152 , 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=21407147 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 (21407152) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407153 , 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=21407147 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 (21407153) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407154 , 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=21407147 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 (21407154) result : ((1344069756,), (1344069848,), (1344069896,), (1344069897,), (1344070033,), (1344070089,), (1344070108,), (1344070109,), (1344070110,), (1344070111,), (1344070112,), (1344070113,), (1344070154,), (1344070155,), (1344070165,), (1344070166,), (1344070194,), (1344070195,), (1344070196,), (1344070197,), (1344070394,), (1344070395,), (1344070396,), (1344070398,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407155 , 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=21407147 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 (21407155) result : ((1344069757,), (1344069758,), (1344070090,), (1344070114,), (1344070115,), (1344070116,), (1344070117,), (1344070168,), (1344070200,), (1344070201,), (1344070269,), (1344070270,), (1344070271,), (1344070287,), (1344070377,), (1344070378,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407156 , 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=21407147 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 (21407156) result : ((1344069748,), (1344069749,), (1344069750,), (1344069751,), (1344069752,), (1344069753,), (1344069754,), (1344069846,), (1344069847,), (1344069858,), (1344069891,), (1344069892,), (1344069893,), (1344070011,), (1344070012,), (1344070014,), (1344070081,), (1344070082,), (1344070083,), (1344070084,), (1344070085,), (1344070086,), (1344070087,), (1344070097,), (1344070098,), (1344070099,), (1344070100,), (1344070101,), (1344070102,), (1344070104,), (1344070105,), (1344070106,), (1344070151,), (1344070152,), (1344070153,), (1344070164,), (1344070186,), (1344070188,), (1344070189,), (1344070190,), (1344070191,), (1344070192,), (1344070193,), (1344070261,), (1344070262,), (1344070263,), (1344070264,), (1344070266,), (1344070267,), (1344070281,), (1344070282,), (1344070283,), (1344070284,), (1344070285,), (1344070286,), (1344070369,), (1344070370,), (1344070371,), (1344070372,), (1344070373,), (1344070374,), (1344070375,), (1344070376,), (1344070390,), (1344070391,), (1344070392,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407157 , 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=21407147 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 (21407157) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407158 , 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=21407147 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 (21407158) result : ((1344069745,), (1344069746,), (1344069888,), (1344069889,), (1344070092,), (1344070094,), (1344070183,), (1344070184,), (1344070185,), (1344070257,), (1344070258,), (1344070279,), (1344070365,), (1344070366,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407159 , 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=21407147 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 (21407159) result : ((1344069760,), (1344069761,), (1344069850,), (1344069851,), (1344070036,), (1344070120,), (1344070121,), (1344070122,), (1344070123,), (1344070157,), (1344070202,), (1344070272,), (1344070290,), (1344070291,), (1344070292,), (1344070293,), (1344070294,), (1344070295,), (1344070381,), (1344070382,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21407160 , 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=21407147 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 (21407160) result : ((1344070091,), (1344070125,), (1344070126,), (1344070159,), (1344070169,), (1344070276,), (1344070299,), (1344070385,), (1344070386,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) 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 (1344070300) and cspi.crop_hashtag_id = chi.id; 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`=21407147 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','kraft','metal','mal_croppe','cartonnette','autre_refus','plastique','Carton_gris','Carton_brun','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21407147 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','kraft','metal','mal_croppe','cartonnette','autre_refus','plastique','Carton_gris','Carton_brun','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21407147, 'sub_port_id': 21407161, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980316, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}, 'metal': {'main_port_id': 21407147, 'sub_port_id': 21407162, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980317, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}, 'mal_croppe': {'main_port_id': 21407147, 'sub_port_id': 21407163, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980318, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}, 'papier': {'main_port_id': 21407147, 'sub_port_id': 21407164, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980319, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}, 'environnement': {'main_port_id': 21407147, 'sub_port_id': 21407165, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980320, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}, 'Carton_gris': {'main_port_id': 21407147, 'sub_port_id': 21407166, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980321, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}, 'cartonnette': {'main_port_id': 21407147, 'sub_port_id': 21407167, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980322, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}, 'autre_refus': {'main_port_id': 21407147, 'sub_port_id': 21407168, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980323, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}, 'flou': {'main_port_id': 21407147, 'sub_port_id': 21407169, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980324, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}, 'Teint_Dans_La_Masse': {'main_port_id': 21407147, 'sub_port_id': 21407170, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980325, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}, 'Carton_brun': {'main_port_id': 21407147, 'sub_port_id': 21407171, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980326, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 20), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}, 'kraft': {'main_port_id': 21407147, 'sub_port_id': 21407172, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13980327, 'last_updated_at': datetime.datetime(2025, 3, 14, 5, 29, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 5, 29, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 5, 20)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407161,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407149 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407162,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407150 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407151 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407164,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407152 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407165,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407153 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407166,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407154 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407167,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407155 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407168,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407156 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407169,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407157 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407170,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407158 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407171,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407159 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21407172,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21407160 lien utilise dans velours : https://www.fotonower.com/velours/21407161,21407162,21407163,21407164,21407165,21407166,21407167,21407168,21407169,21407170,21407171,21407172?tags=plastique,metal,mal_croppe,papier,environnement,Carton_gris,cartonnette,autre_refus,flou,Teint_Dans_La_Masse,Carton_brun,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21407147]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259] map_info['map_portfolio_photo'] : {21407147: [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259, 1344070229, 1344070227, 1344070223, 1344070219, 1344070204, 1344070198, 1344070181, 1344070179, 1344070177, 1344070175, 1344070145, 1344070141, 1344070138, 1344070136, 1344070133, 1344070069, 1344070066, 1344070061, 1344070055, 1344069995, 1344069989, 1344069983, 1344069978, 1344069974, 1344069971, 1344069898, 1344069890, 1344069886, 1344069885, 1344069868, 1344069862, 1344069859, 1344069857, 1344069854, 1344069840, 1344069836, 1344069832, 1344069831, 1344069830, 1344069827, 1344069821, 1344069799, 1344069798, 1344069797, 1344069781, 1344069766, 1344069731, 1344069728, 1344069726, 1344069724, 1344069659, 1344069656, 1344069655, 1344069651, 1344069638, 1344069634, 1344069610, 1344069608, 1344069604]} final : False mtd_id 4302 list_pids : [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259] Looping around the photos to save general results len do output : 1 /21407147. 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, '2667683') ('4302', '21407147', '1344070339', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070337', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070335', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070332', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070327', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070304', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070300', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070288', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070277', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070273', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070259', None, None, None, None, None, '2667683') 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', None, '21407147', "{'plastique': 21407149, 'metal': 21407150, 'mal_croppe': 21407151, 'papier': 21407152, 'environnement': 21407153, 'Carton_gris': 21407154, 'cartonnette': 21407155, 'autre_refus': 21407156, 'flou': 21407157, 'Teint_Dans_La_Masse': 21407158, 'Carton_brun': 21407159, 'kraft': 21407160}", None, None, None, None, '2667683'), ('4302', '21407147', '1344070339', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070337', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070335', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070332', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070327', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070304', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070300', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070288', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070277', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070273', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070259', None, None, None, None, None, '2667683')] time used for this insertion : 0.02374124526977539 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5652413368225098 time spend to save output : 0.02404642105102539 total time spend for step 1 : 0.5892877578735352 step2:final Fri Mar 14 05:30:59 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 (21407147) 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 21407147 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1344069610,1344069608,1344069604,1344069659,1344069656,1344069655,1344069651,1344069638,1344069634,1344069731,1344069728,1344069726,1344069724,1344069868,1344069821,1344069799,1344069862,1344069798,1344069859,1344069797,1344069857,1344069781,1344069854,1344069766,1344069840,1344069836,1344069832,1344069831,1344069830,1344069827,1344069898,1344069890,1344069886,1344069885,1344069995,1344069989,1344069983,1344069978,1344069974,1344069971,1344070069,1344070066,1344070061,1344070055,1344070145,1344070141,1344070138,1344070136,1344070133,1344070204,1344070198,1344070181,1344070179,1344070177,1344070175,1344070229,1344070227,1344070223,1344070219,1344070304,1344070300,1344070288,1344070277,1344070273,1344070259,1344070339,1344070337,1344070335,1344070332,1344070327); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21407147]) Inside saveOutput : final : False verbose : True original output for save of step final : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} new output for save of step final : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259] map_info['map_portfolio_photo'] : {21407147: [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259, 1344070229, 1344070227, 1344070223, 1344070219, 1344070204, 1344070198, 1344070181, 1344070179, 1344070177, 1344070175, 1344070145, 1344070141, 1344070138, 1344070136, 1344070133, 1344070069, 1344070066, 1344070061, 1344070055, 1344069995, 1344069989, 1344069983, 1344069978, 1344069974, 1344069971, 1344069898, 1344069890, 1344069886, 1344069885, 1344069868, 1344069862, 1344069859, 1344069857, 1344069854, 1344069840, 1344069836, 1344069832, 1344069831, 1344069830, 1344069827, 1344069821, 1344069799, 1344069798, 1344069797, 1344069781, 1344069766, 1344069731, 1344069728, 1344069726, 1344069724, 1344069659, 1344069656, 1344069655, 1344069651, 1344069638, 1344069634, 1344069610, 1344069608, 1344069604]} final : False mtd_id 4302 list_pids : [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259] Looping around the photos to save general results len do output : 11 /1344070339.Didn't retrieve data . /1344070337.Didn't retrieve data . /1344070335.Didn't retrieve data . /1344070332.Didn't retrieve data . /1344070327.Didn't retrieve data . /1344070304.Didn't retrieve data . /1344070300.Didn't retrieve data . /1344070288.Didn't retrieve data . /1344070277.Didn't retrieve data . /1344070273.Didn't retrieve data . /1344070259.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, '2667683') ('4302', '21407147', '1344070339', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070337', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070335', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070332', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070327', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070304', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070300', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070288', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070277', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070273', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070259', None, None, None, None, None, '2667683') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '21407147', '1344070339', '0.08035678991917955', None, None, None, None, '2667683'), ('4302', '21407147', '1344070337', '0.08035678991917955', None, None, None, None, '2667683'), ('4302', '21407147', '1344070335', '0.08035678991917955', None, None, None, None, '2667683'), ('4302', '21407147', '1344070332', '0.08035678991917955', None, None, None, None, '2667683'), ('4302', '21407147', '1344070327', '0.08035678991917955', None, None, None, None, '2667683'), ('4302', '21407147', '1344070304', '0.08035678991917955', None, None, None, None, '2667683'), ('4302', '21407147', '1344070300', '0.08035678991917955', None, None, None, None, '2667683'), ('4302', '21407147', '1344070288', '0.08035678991917955', None, None, None, None, '2667683'), ('4302', '21407147', '1344070277', '0.08035678991917955', None, None, None, None, '2667683'), ('4302', '21407147', '1344070273', '0.08035678991917955', None, None, None, None, '2667683'), ('4302', '21407147', '1344070259', '0.08035678991917955', None, None, None, None, '2667683')] time used for this insertion : 0.01947927474975586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08299088478088379 time spend to save output : 0.020064353942871094 total time spend for step 2 : 0.10305523872375488 step3:velours_tree Fri Mar 14 05:30:59 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 : {21407147: [{'plastique': 21407149, 'metal': 21407150, 'mal_croppe': 21407151, 'papier': 21407152, 'environnement': 21407153, 'Carton_gris': 21407154, 'cartonnette': 21407155, 'autre_refus': 21407156, 'flou': 21407157, 'Teint_Dans_La_Masse': 21407158, 'Carton_brun': 21407159, 'kraft': 21407160}]} input_args_next_step : {21407147: ()} output_args : {21407147: [{'plastique': 21407149, 'metal': 21407150, 'mal_croppe': 21407151, 'papier': 21407152, 'environnement': 21407153, 'Carton_gris': 21407154, 'cartonnette': 21407155, 'autre_refus': 21407156, 'flou': 21407157, 'Teint_Dans_La_Masse': 21407158, 'Carton_brun': 21407159, 'kraft': 21407160}]} args : 21407147 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 : ({'plastique': 21407149, 'metal': 21407150, 'mal_croppe': 21407151, 'papier': 21407152, 'environnement': 21407153, 'Carton_gris': 21407154, 'cartonnette': 21407155, 'autre_refus': 21407156, 'flou': 21407157, 'Teint_Dans_La_Masse': 21407158, 'Carton_brun': 21407159, 'kraft': 21407160},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21407147) 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([21407147]) 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.8430018424987793 time spend to save output : 5.4836273193359375e-05 total time spend for step 3 : 0.8430566787719727 step4:send_mail_cod Fri Mar 14 05:30:59 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 : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} input_args_next_step : {1344070339: ()} output_args : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} args : 1344070339 depend.output_id : 0 input_args_next_step : {1344070339: ('0.08035678991917955',), 1344070337: ()} output_args : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} args : 1344070337 depend.output_id : 0 input_args_next_step : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ()} output_args : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} args : 1344070335 depend.output_id : 0 input_args_next_step : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ()} output_args : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} args : 1344070332 depend.output_id : 0 input_args_next_step : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ()} output_args : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} args : 1344070327 depend.output_id : 0 input_args_next_step : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ()} output_args : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} args : 1344070304 depend.output_id : 0 input_args_next_step : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ()} output_args : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} args : 1344070300 depend.output_id : 0 input_args_next_step : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ()} output_args : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} args : 1344070288 depend.output_id : 0 input_args_next_step : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ()} output_args : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} args : 1344070277 depend.output_id : 0 input_args_next_step : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ()} output_args : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} args : 1344070273 depend.output_id : 0 input_args_next_step : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ()} output_args : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',)} args : 1344070259 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 : {21407147: [{'plastique': 21407149, 'metal': 21407150, 'mal_croppe': 21407151, 'papier': 21407152, 'environnement': 21407153, 'Carton_gris': 21407154, 'cartonnette': 21407155, 'autre_refus': 21407156, 'flou': 21407157, 'Teint_Dans_La_Masse': 21407158, 'Carton_brun': 21407159, 'kraft': 21407160}]} input_args_next_step : {1344070339: ('0.08035678991917955',), 1344070337: ('0.08035678991917955',), 1344070335: ('0.08035678991917955',), 1344070332: ('0.08035678991917955',), 1344070327: ('0.08035678991917955',), 1344070304: ('0.08035678991917955',), 1344070300: ('0.08035678991917955',), 1344070288: ('0.08035678991917955',), 1344070277: ('0.08035678991917955',), 1344070273: ('0.08035678991917955',), 1344070259: ('0.08035678991917955',), 21407147: ()} output_args : {21407147: [{'plastique': 21407149, 'metal': 21407150, 'mal_croppe': 21407151, 'papier': 21407152, 'environnement': 21407153, 'Carton_gris': 21407154, 'cartonnette': 21407155, 'autre_refus': 21407156, 'flou': 21407157, 'Teint_Dans_La_Masse': 21407158, 'Carton_brun': 21407159, 'kraft': 21407160}]} args : 21407147 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 :12, first value : ('0.08035678991917955',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21407147) 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 (1344070339,1344070337,1344070335,1344070332,1344070327,1344070304,1344070300,1344070288,1344070277,1344070273,1344070259) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1344070259 begin to download photo : 1344070288 begin to download photo : 1344070327 begin to download photo : 1344070337 download finish for photo 1344070337 begin to download photo : 1344070339 download finish for photo 1344070327 begin to download photo : 1344070332 download finish for photo 1344070259 begin to download photo : 1344070273 download finish for photo 1344070288 begin to download photo : 1344070300 download finish for photo 1344070332 begin to download photo : 1344070335 download finish for photo 1344070273 begin to download photo : 1344070277 download finish for photo 1344070300 begin to download photo : 1344070304 download finish for photo 1344070339 download finish for photo 1344070277 download finish for photo 1344070335 download finish for photo 1344070304 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P21407147_14-03-2025_05_31_00.pdf 21407149 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=21407149 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344069762: '1741925991_111713_1344069655_d2fc74694e385883af46ad1a879291aa_rle_crop_3711463451_0.png', 1344069763: '1741925991_111713_1344069634_43204370889334656f54291caefff729_rle_crop_3711463499_0.png', 1344070275: '1741926472_116314_1344070179_071e812f9f6434aab769c0228739fbca_rle_crop_3711466528_0.png', 1344070296: '1741926491_116491_1344070136_7ebba8c2641d0da014572fcbb5efb9a4_rle_crop_3711466636_0.png', 1344070297: '1741926491_116491_1344070133_da781a3ae756a1e1d19c117539b042d6_rle_crop_3711466648_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/839706e03d68e4af217a00031f95c813_28502701.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a08ccc182f5b3bdfafbe37c6d91bcdac_22681319.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9db67fd51ba6323f06fd462a3dda5bcc_99205309.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2437549eea01405446b756d3367db807_70703420.png change filename to text .imagette214071491741926660/ imagette214071491741926660/1741926491_116491_1344070136_7ebba8c2641d0da014572fcbb5efb9a4_rle_crop_3711466636_0.png.png imagette214071491741926660/1741926491_116491_1344070133_da781a3ae756a1e1d19c117539b042d6_rle_crop_3711466648_0.png.png imagette214071491741926660/1741925991_111713_1344069655_d2fc74694e385883af46ad1a879291aa_rle_crop_3711463451_0.png.png imagette214071491741926660/1741926472_116314_1344070179_071e812f9f6434aab769c0228739fbca_rle_crop_3711466528_0.png.png imagette214071491741926660/1741925991_111713_1344069634_43204370889334656f54291caefff729_rle_crop_3711463499_0.png.png imagette214071501741926660/ imagette214071511741926660/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/286a0bf009ee604f21faea15f2bbd9fa_82694741.png imagette214071491741926660 21407150 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=21407150 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214071501741926660 21407151 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=21407151 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214071511741926660 21407155 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=21407155 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344069757: '1741925991_111713_1344069656_7b9cbb6d14ee1c708427d03e480fd264_rle_crop_3711463442_0.png', 1344069758: '1741925991_111713_1344069655_d2fc74694e385883af46ad1a879291aa_rle_crop_3711463450_0.png', 1344070090: '1741926271_113861_1344069827_b08430cd5ada170070ee984c0fd1894b_rle_crop_3711465630_0.png', 1344070114: '1741926266_905153_1344069862_a83168d7ae26c98a7080b0c04e8eb664_rle_crop_3711465525_0.png', 1344070115: '1741926266_905153_1344069854_8bd876c4956562faebe8f04538a8469a_rle_crop_3711465591_0.png', 1344070116: '1741926266_905153_1344069799_3c8da304af604289b333f4af2fdf402b_rle_crop_3711465652_0.png', 1344070117: '1741926266_905153_1344069781_84710a121eae9c9cd7855db2d31d957d_rle_crop_3711465692_0.png', 1344070168: '1741926372_115664_1344069995_9240877476b786862dbbcb2e9ad5829f_rle_crop_3711465871_0.png', 1344070200: '1741926385_907276_1344069989_04619c95943bbb4de01fdd29413f4912_rle_crop_3711466104_0.png', 1344070201: '1741926385_907276_1344069978_2f979cbfed8a8a9d928fa20de59ad7d1_rle_crop_3711466140_0.png', 1344070269: '1741926472_116314_1344070181_eed40e7f9dbee1751930ff29752028eb_rle_crop_3711466504_0.png', 1344070270: '1741926472_116314_1344070179_071e812f9f6434aab769c0228739fbca_rle_crop_3711466536_0.png', 1344070271: '1741926472_116314_1344070179_071e812f9f6434aab769c0228739fbca_rle_crop_3711466532_0.png', 1344070287: '1741926491_116491_1344070133_da781a3ae756a1e1d19c117539b042d6_rle_crop_3711466643_0.png', 1344070377: '1741926593_117120_1344070277_85d4ac091751fdffae36060b86f05618_rle_crop_3711466914_0.png', 1344070378: '1741926593_117120_1344070277_85d4ac091751fdffae36060b86f05618_rle_crop_3711466916_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/01eb3102d25524d3a7b1e8b3e11d4a7d_55903411.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b707a7d5f0d08640f09053f9c2bb556d_66310718.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/44399ff9c85b30fa5b9ef3da7575a911_32348755.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d7e0f67b7d6892e76bb88fa1412a0c39_64255988.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e86686ae2694c73f5a75551c45cbc68b_74544547.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d7e0f67b7d6892e76bb88fa1412a0c39_88967447.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e86686ae2694c73f5a75551c45cbc68b_44642276.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/079834841e1df5035d44165df9808b5a_92746896.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f465bc9c95b955400141d4e6e0996b46_65091431.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d0fe36427edd3e3e680f641c7f111d8e_44569608.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/70733d58ce9f2310323cf651615a8b9e_20016376.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6b123918e358dd1ae8039e18271f4946_58026600.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3e4d3fafdf3768669fca191b0b2c9293_65594502.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/296164f98491b4285fba02c9353cc98c_37905429.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/91dff6160312e0e3fea349ed1693a238_27420055.png change filename to text .imagette214071551741926660/ imagette214071551741926660/1741926372_115664_1344069995_9240877476b786862dbbcb2e9ad5829f_rle_crop_3711465871_0.png.png imagette214071551741926660/1741925991_111713_1344069656_7b9cbb6d14ee1c708427d03e480fd264_rle_crop_3711463442_0.png.png imagette214071551741926660/1741926491_116491_1344070133_da781a3ae756a1e1d19c117539b042d6_rle_crop_3711466643_0.png.png imagette214071551741926660/1741926385_907276_1344069989_04619c95943bbb4de01fdd29413f4912_rle_crop_3711466104_0.png.png imagette214071551741926660/1741926385_907276_1344069978_2f979cbfed8a8a9d928fa20de59ad7d1_rle_crop_3711466140_0.png.png imagette214071551741926660/1741926593_117120_1344070277_85d4ac091751fdffae36060b86f05618_rle_crop_3711466916_0.png.png imagette214071551741926660/1741926266_905153_1344069862_a83168d7ae26c98a7080b0c04e8eb664_rle_crop_3711465525_0.png.png imagette214071551741926660/1741925991_111713_1344069655_d2fc74694e385883af46ad1a879291aa_rle_crop_3711463450_0.png.png imagette214071551741926660/1741926472_116314_1344070179_071e812f9f6434aab769c0228739fbca_rle_crop_3711466532_0.png.png imagette214071551741926660/1741926593_117120_1344070277_85d4ac091751fdffae36060b86f05618_rle_crop_3711466914_0.png.png imagette214071551741926660/1741926472_116314_1344070179_071e812f9f6434aab769c0228739fbca_rle_crop_3711466536_0.png.png imagette214071551741926660/1741926266_905153_1344069854_8bd876c4956562faebe8f04538a8469a_rle_crop_3711465591_0.png.png imagette214071551741926660/1741926472_116314_1344070181_eed40e7f9dbee1751930ff29752028eb_rle_crop_3711466504_0.png.png imagette214071551741926660/1741926266_905153_1344069799_3c8da304af604289b333f4af2fdf402b_rle_crop_3711465652_0.png.png imagette214071551741926660/1741926271_113861_1344069827_b08430cd5ada170070ee984c0fd1894b_rle_crop_3711465630_0.png.png imagette214071551741926660/1741926266_905153_1344069781_84710a121eae9c9cd7855db2d31d957d_rle_crop_3711465692_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e58c1e642df75eb66417b56cab848ed8_36147428.png imagette214071551741926660 21407156 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=21407156 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344070192: '1741926385_907276_1344069974_ad04477aa29c735c2b09b6eef4ed50ba_rle_crop_3711466152_0.png', 1344070281: '1741926491_116491_1344070204_75c7e8039f7559ba7fa1d38fe458c811_rle_crop_3711466583_0.png', 1344070267: '1741926472_116314_1344070175_5ef0d99befcab24d877df6c2513aad9f_rle_crop_3711466569_0.png', 1344070266: '1741926472_116314_1344070177_39617d5a8d227e4d546d9b2d244d7d0c_rle_crop_3711466553_0.png', 1344070264: '1741926472_116314_1344070179_071e812f9f6434aab769c0228739fbca_rle_crop_3711466535_0.png', 1344070263: '1741926472_116314_1344070181_eed40e7f9dbee1751930ff29752028eb_rle_crop_3711466511_0.png', 1344070262: '1741926472_116314_1344070181_eed40e7f9dbee1751930ff29752028eb_rle_crop_3711466505_0.png', 1344070261: '1741926472_116314_1344070198_e5495a988981284f04b158e1ebb90794_rle_crop_3711466497_0.png', 1344070193: '1741926385_907276_1344069971_0191638108f3e9f4a5c54c0212881c4a_rle_crop_3711466170_0.png', 1344070282: '1741926491_116491_1344070141_ae756b1c8e4cb045780c164760fa9ea4_rle_crop_3711466601_0.png', 1344070191: '1741926385_907276_1344069978_2f979cbfed8a8a9d928fa20de59ad7d1_rle_crop_3711466134_0.png', 1344070190: '1741926385_907276_1344069983_fd7ce9e8aefe3d46846c30e14697f2ca_rle_crop_3711466118_0.png', 1344070189: '1741926385_907276_1344069989_04619c95943bbb4de01fdd29413f4912_rle_crop_3711466108_0.png', 1344070188: '1741926385_907276_1344069989_04619c95943bbb4de01fdd29413f4912_rle_crop_3711466098_0.png', 1344070186: '1741926385_907276_1344070069_eddd43971e593575273eee4fdf9fc56a_rle_crop_3711466087_0.png', 1344070164: '1741926372_115664_1344069995_9240877476b786862dbbcb2e9ad5829f_rle_crop_3711465875_0.png', 1344070153: '1741926353_115430_1344070055_f8c68cbf8c5581bb84db6ac43de34571_rle_crop_3711465823_0.png', 1344070152: '1741926353_115430_1344070061_78117cef5afc6fd814a5417115a16252_rle_crop_3711465813_0.png', 1344070283: '1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466621_0.png', 1344070284: '1741926491_116491_1344070136_7ebba8c2641d0da014572fcbb5efb9a4_rle_crop_3711466627_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/27d57f670ec4e1fa9e446fcad687ffc3_17342083.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bad5039cf4a099b6f847cc85274a6e9b_38891069.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/24fc3f0b644d4163e409e89b9b427f95_41886972.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b8a3fc42be4d2ffffc17835aaac48859_54660068.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/55cbd8540981cad125d61a85329d5b7a_50248774.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/36b41abe760999f09f9052516d224878_52860549.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/829dac9002343d90e8d7c1da8382e000_61773470.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/47a356e559f9e530da5d3bafab29c8dc_12929222.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1beef818073750433f0dcaf351802f75_32457134.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f9dc3af554d77f74641fce50e9128afe_11082864.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8d8e1084a36705eef34797da5af3799e_99431125.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7818bc1a16ddad76543bae6059148816_73247229.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f00bd1a8443547a663c0948dd22c6213_8039163.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5a329a1bc18aa63f1dfde3777714df0a_12864506.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/94883d7becf40f7f58726ed9b176e7c5_43958093.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/01f06a18258668e0fa1695c3c00fa137_55003511.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b01360a89e22f5e7379d4c9d4f861864_99947997.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d43f49b90d917d862a1a935319c84867_35390524.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/216792e9af9eebe21d225a6bd4fc1083_13158892.png change filename to text .imagette214071561741926661/ imagette214071561741926661/1741926385_907276_1344069978_2f979cbfed8a8a9d928fa20de59ad7d1_rle_crop_3711466134_0.png.png imagette214071561741926661/1741926385_907276_1344069989_04619c95943bbb4de01fdd29413f4912_rle_crop_3711466108_0.png.png imagette214071561741926661/1741926472_116314_1344070181_eed40e7f9dbee1751930ff29752028eb_rle_crop_3711466511_0.png.png imagette214071561741926661/1741926385_907276_1344069989_04619c95943bbb4de01fdd29413f4912_rle_crop_3711466098_0.png.png imagette214071561741926661/1741926372_115664_1344069995_9240877476b786862dbbcb2e9ad5829f_rle_crop_3711465875_0.png.png imagette214071561741926661/1741926472_116314_1344070198_e5495a988981284f04b158e1ebb90794_rle_crop_3711466497_0.png.png imagette214071561741926661/1741926385_907276_1344070069_eddd43971e593575273eee4fdf9fc56a_rle_crop_3711466087_0.png.png imagette214071561741926661/1741926491_116491_1344070204_75c7e8039f7559ba7fa1d38fe458c811_rle_crop_3711466583_0.png.png imagette214071561741926661/1741926472_116314_1344070175_5ef0d99befcab24d877df6c2513aad9f_rle_crop_3711466569_0.png.png imagette214071561741926661/1741926385_907276_1344069974_ad04477aa29c735c2b09b6eef4ed50ba_rle_crop_3711466152_0.png.png imagette214071561741926661/1741926491_116491_1344070136_7ebba8c2641d0da014572fcbb5efb9a4_rle_crop_3711466627_0.png.png imagette214071561741926661/1741926472_116314_1344070179_071e812f9f6434aab769c0228739fbca_rle_crop_3711466535_0.png.png imagette214071561741926661/1741926491_116491_1344070141_ae756b1c8e4cb045780c164760fa9ea4_rle_crop_3711466601_0.png.png imagette214071561741926661/1741926472_116314_1344070181_eed40e7f9dbee1751930ff29752028eb_rle_crop_3711466505_0.png.png imagette214071561741926661/1741926353_115430_1344070061_78117cef5afc6fd814a5417115a16252_rle_crop_3711465813_0.png.png imagette214071561741926661/1741926385_907276_1344069983_fd7ce9e8aefe3d46846c30e14697f2ca_rle_crop_3711466118_0.png.png imagette214071561741926661/1741926472_116314_1344070177_39617d5a8d227e4d546d9b2d244d7d0c_rle_crop_3711466553_0.png.png imagette214071561741926661/1741926385_907276_1344069971_0191638108f3e9f4a5c54c0212881c4a_rle_crop_3711466170_0.png.png imagette214071561741926661/1741926353_115430_1344070055_f8c68cbf8c5581bb84db6ac43de34571_rle_crop_3711465823_0.png.png imagette214071561741926661/1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466621_0.png.png imagette214071571741926664/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9229e6f87b7b61490f2cb6fc3620d8cb_24791476.png imagette214071561741926661 21407157 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=21407157 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214071571741926664 21407160 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=21407160 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344070091: '1741926271_113861_1344069831_a373ac174efe2e3a89130098f46c5d4c_rle_crop_3711465580_0.png', 1344070125: '1741926266_905153_1344069857_a3267130f6a2a042e8c27eaa18f14876_rle_crop_3711465561_0.png', 1344070126: '1741926266_905153_1344069797_f7e4d1b824332d42e91b1176b626dc77_rle_crop_3711465674_0.png', 1344070159: '1741926353_115430_1344070061_78117cef5afc6fd814a5417115a16252_rle_crop_3711465815_0.png', 1344070169: '1741926372_115664_1344069995_9240877476b786862dbbcb2e9ad5829f_rle_crop_3711465873_0.png', 1344070276: '1741926472_116314_1344070175_5ef0d99befcab24d877df6c2513aad9f_rle_crop_3711466564_0.png', 1344070299: '1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466609_0.png', 1344070385: '1741926593_117120_1344070273_4d9e5c5478dc99ca61161f97a6d0f5fb_rle_crop_3711466931_0.png', 1344070386: '1741926593_117120_1344070273_4d9e5c5478dc99ca61161f97a6d0f5fb_rle_crop_3711466926_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c74326c19498ad994c91e3381860c562_5586375.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b5aa804c7051d2806deee810c3b8eadb_82141294.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b5aa804c7051d2806deee810c3b8eadb_23988975.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/09094b5dfb1495cf9329dffa06c45d19_5859444.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0b1ecbffc00c1d7ed9a9d3d88dc38a6d_43048521.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/cf98eb871c2df5af9ab5b466a78ebac1_93492898.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c82d18744a04d2bc47300edeb354f0fc_50019465.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5cfd03dae86ff28c6a8c0a99d355dd8b_90471201.png change filename to text .imagette214071601741926664/ imagette214071601741926664/1741926593_117120_1344070273_4d9e5c5478dc99ca61161f97a6d0f5fb_rle_crop_3711466926_0.png.png imagette214071601741926664/1741926593_117120_1344070273_4d9e5c5478dc99ca61161f97a6d0f5fb_rle_crop_3711466931_0.png.png imagette214071601741926664/1741926372_115664_1344069995_9240877476b786862dbbcb2e9ad5829f_rle_crop_3711465873_0.png.png imagette214071601741926664/1741926472_116314_1344070175_5ef0d99befcab24d877df6c2513aad9f_rle_crop_3711466564_0.png.png imagette214071601741926664/1741926353_115430_1344070061_78117cef5afc6fd814a5417115a16252_rle_crop_3711465815_0.png.png imagette214071601741926664/1741926271_113861_1344069831_a373ac174efe2e3a89130098f46c5d4c_rle_crop_3711465580_0.png.png imagette214071601741926664/1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466609_0.png.png imagette214071601741926664/1741926266_905153_1344069857_a3267130f6a2a042e8c27eaa18f14876_rle_crop_3711465561_0.png.png imagette214071601741926664/1741926266_905153_1344069797_f7e4d1b824332d42e91b1176b626dc77_rle_crop_3711465674_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/57ce1258aee833defe5e625eee6e0502_5433371.png imagette214071601741926664 21407154 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=21407154 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344070154: '1741926353_115430_1344070061_78117cef5afc6fd814a5417115a16252_rle_crop_3711465814_0.png', 1344070398: '1741926614_117369_1344070223_f5d219819b81793fbf713726dcdc6bd5_rle_crop_3711467038_0.png', 1344070396: '1741926614_117369_1344070227_4f2bb670bdfaf4ff14ad96c12731afce_rle_crop_3711467033_0.png', 1344070395: '1741926614_117369_1344070304_19916e0a82922a1b7a35613a9564d8a1_rle_crop_3711467018_0.png', 1344070394: '1741926614_117369_1344070304_19916e0a82922a1b7a35613a9564d8a1_rle_crop_3711467016_0.png', 1344070197: '1741926385_907276_1344069971_0191638108f3e9f4a5c54c0212881c4a_rle_crop_3711466164_0.png', 1344070196: '1741926385_907276_1344069971_0191638108f3e9f4a5c54c0212881c4a_rle_crop_3711466163_0.png', 1344070195: '1741926385_907276_1344069974_ad04477aa29c735c2b09b6eef4ed50ba_rle_crop_3711466150_0.png', 1344070194: '1741926385_907276_1344069978_2f979cbfed8a8a9d928fa20de59ad7d1_rle_crop_3711466132_0.png', 1344070166: '1741926372_115664_1344069995_9240877476b786862dbbcb2e9ad5829f_rle_crop_3711465878_0.png', 1344070165: '1741926372_115664_1344069995_9240877476b786862dbbcb2e9ad5829f_rle_crop_3711465872_0.png', 1344070155: '1741926353_115430_1344070055_f8c68cbf8c5581bb84db6ac43de34571_rle_crop_3711465828_0.png', 1344069756: '1741925991_111713_1344069634_43204370889334656f54291caefff729_rle_crop_3711463496_0.png', 1344070113: '1741926266_905153_1344069766_7862e5370db7b78c776667c3f28c2d0c_rle_crop_3711465699_0.png', 1344070112: '1741926266_905153_1344069781_84710a121eae9c9cd7855db2d31d957d_rle_crop_3711465693_0.png', 1344070111: '1741926266_905153_1344069797_f7e4d1b824332d42e91b1176b626dc77_rle_crop_3711465682_0.png', 1344070110: '1741926266_905153_1344069840_7a7d0f3b72b38687b1a6425a7a2023ff_rle_crop_3711465608_0.png', 1344070109: '1741926266_905153_1344069854_8bd876c4956562faebe8f04538a8469a_rle_crop_3711465592_0.png', 1344070108: '1741926266_905153_1344069857_a3267130f6a2a042e8c27eaa18f14876_rle_crop_3711465569_0.png', 1344070089: '1741926271_113861_1344069827_b08430cd5ada170070ee984c0fd1894b_rle_crop_3711465633_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f193904dbf69f4f7e3d0a58393ff3ef1_15185778.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c812bdcba11c07f14cdd82fa3aa46c04_98452685.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f6dc68beaee74911fb185f8e48493e25_22268621.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e474f3b44f58656d35fbde24ab1886f5_41208642.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b0dd18359391e88af5539d2f2c2e890c_79716421.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/30db43d4df3e379dce2db4c2770d9ec2_76147319.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a9a71c53f83040d3a7cfc267761a22ea_46971880.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f2eae80b95be76668fcba515204d8e87_23493168.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/990245f70a31b06ae5326d01f14c6f18_20189711.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/632e7d7d4c206fcf2384385a6d038bc4_38041404.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/eea3f01f7780e782500cf427181b8347_40518037.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b475a21fc0c8ecd7062dab172753d6e6_78314143.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/20e17a1c49a6d842b1de85f24ac4538e_27520461.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8ea57ee167a5a662d8623016c9f91737_13183056.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f26755388c09acb4354e8ffcc1f50fc7_7724547.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b55984d2ce6ea5ade5206af55021d37a_86316873.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8ea57ee167a5a662d8623016c9f91737_52259740.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f26755388c09acb4354e8ffcc1f50fc7_88545579.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b55984d2ce6ea5ade5206af55021d37a_93047545.png change filename to text .imagette214071541741926664/ imagette214071541741926664/1741926266_905153_1344069797_f7e4d1b824332d42e91b1176b626dc77_rle_crop_3711465682_0.png.png imagette214071541741926664/1741926614_117369_1344070304_19916e0a82922a1b7a35613a9564d8a1_rle_crop_3711467018_0.png.png imagette214071541741926664/1741926266_905153_1344069854_8bd876c4956562faebe8f04538a8469a_rle_crop_3711465592_0.png.png imagette214071541741926664/1741926372_115664_1344069995_9240877476b786862dbbcb2e9ad5829f_rle_crop_3711465878_0.png.png imagette214071541741926664/1741926614_117369_1344070304_19916e0a82922a1b7a35613a9564d8a1_rle_crop_3711467016_0.png.png imagette214071541741926664/1741926271_113861_1344069827_b08430cd5ada170070ee984c0fd1894b_rle_crop_3711465633_0.png.png imagette214071541741926664/1741926385_907276_1344069971_0191638108f3e9f4a5c54c0212881c4a_rle_crop_3711466163_0.png.png imagette214071541741926664/1741926266_905153_1344069781_84710a121eae9c9cd7855db2d31d957d_rle_crop_3711465693_0.png.png imagette214071541741926664/1741926266_905153_1344069766_7862e5370db7b78c776667c3f28c2d0c_rle_crop_3711465699_0.png.png imagette214071541741926664/1741926266_905153_1344069857_a3267130f6a2a042e8c27eaa18f14876_rle_crop_3711465569_0.png.png imagette214071541741926664/1741926385_907276_1344069971_0191638108f3e9f4a5c54c0212881c4a_rle_crop_3711466164_0.png.png imagette214071541741926664/1741926353_115430_1344070061_78117cef5afc6fd814a5417115a16252_rle_crop_3711465814_0.png.png imagette214071541741926664/1741926266_905153_1344069840_7a7d0f3b72b38687b1a6425a7a2023ff_rle_crop_3711465608_0.png.png imagette214071541741926664/1741926372_115664_1344069995_9240877476b786862dbbcb2e9ad5829f_rle_crop_3711465872_0.png.png imagette214071541741926664/1741926385_907276_1344069974_ad04477aa29c735c2b09b6eef4ed50ba_rle_crop_3711466150_0.png.png imagette214071541741926664/1741925991_111713_1344069634_43204370889334656f54291caefff729_rle_crop_3711463496_0.png.png imagette214071541741926664/1741926614_117369_1344070223_f5d219819b81793fbf713726dcdc6bd5_rle_crop_3711467038_0.png.png imagette214071541741926664/1741926385_907276_1344069978_2f979cbfed8a8a9d928fa20de59ad7d1_rle_crop_3711466132_0.png.png imagette214071541741926664/1741926614_117369_1344070227_4f2bb670bdfaf4ff14ad96c12731afce_rle_crop_3711467033_0.png.png imagette214071541741926664/1741926353_115430_1344070055_f8c68cbf8c5581bb84db6ac43de34571_rle_crop_3711465828_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/aad42307e436bb39a92e39cc086897f5_67300328.png imagette214071541741926664 21407158 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=21407158 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344069745: '1741925991_111713_1344069651_97908b86a7ab5d0eb32581fcc779c410_rle_crop_3711463471_0.png', 1344069746: '1741925991_111713_1344069651_97908b86a7ab5d0eb32581fcc779c410_rle_crop_3711463472_0.png', 1344069888: '1741926147_902596_1344069659_2329f2fef886aad4d08e3893c94e53bf_rle_crop_3711464258_0.png', 1344069889: '1741926147_902596_1344069604_7922410a6c7d3f74a9f735b6ef649b8b_rle_crop_3711464303_0.png', 1344070092: '1741926266_905153_1344069854_8bd876c4956562faebe8f04538a8469a_rle_crop_3711465594_0.png', 1344070094: '1741926266_905153_1344069781_84710a121eae9c9cd7855db2d31d957d_rle_crop_3711465695_0.png', 1344070183: '1741926385_907276_1344069989_04619c95943bbb4de01fdd29413f4912_rle_crop_3711466110_0.png', 1344070184: '1741926385_907276_1344069978_2f979cbfed8a8a9d928fa20de59ad7d1_rle_crop_3711466137_0.png', 1344070185: '1741926385_907276_1344069971_0191638108f3e9f4a5c54c0212881c4a_rle_crop_3711466167_0.png', 1344070257: '1741926472_116314_1344070179_071e812f9f6434aab769c0228739fbca_rle_crop_3711466533_0.png', 1344070258: '1741926472_116314_1344070175_5ef0d99befcab24d877df6c2513aad9f_rle_crop_3711466568_0.png', 1344070279: '1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466615_0.png', 1344070365: '1741926593_117120_1344070300_e6ce1ebd0047273b20752b64cb7e988c_rle_crop_3711466803_0.png', 1344070366: '1741926593_117120_1344070288_5e57302e0fdb9797d086ec884dff5c17_rle_crop_3711466898_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/27412be3944462111a8139c8040d4451_31835431.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c19857061dc5e887370df039b2160f3b_68238880.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/caea83bd3d967517bedac2d7c76bbb1f_12819012.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1c992192ec9c7a0e0a693e834a3326ae_63000497.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/298c51eb3a8aab310ce67f39097e6e3b_86285695.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/298c51eb3a8aab310ce67f39097e6e3b_6763200.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/27e789916399b2724b85823bbfe1ae18_42476029.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/253130f06db5b88bb5bc3a3d65245326_15836032.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3c1c7388b2a548cce95aeee0bf1beec3_16315927.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c816ce5719a4a4a8025b34126ee0d598_33759529.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/af5a13b533c229dfe50c987769c8e5cc_6895941.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/abf34b9b8be81007c76f22d639d46db0_25629204.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/aa4b399620b682e7a6616c07ac971608_67725030.png change filename to text .imagette214071581741926665/ imagette214071581741926665/1741926147_902596_1344069659_2329f2fef886aad4d08e3893c94e53bf_rle_crop_3711464258_0.png.png imagette214071581741926665/1741926147_902596_1344069604_7922410a6c7d3f74a9f735b6ef649b8b_rle_crop_3711464303_0.png.png imagette214071581741926665/1741926385_907276_1344069971_0191638108f3e9f4a5c54c0212881c4a_rle_crop_3711466167_0.png.png imagette214071581741926665/1741925991_111713_1344069651_97908b86a7ab5d0eb32581fcc779c410_rle_crop_3711463471_0.png.png imagette214071581741926665/1741926472_116314_1344070179_071e812f9f6434aab769c0228739fbca_rle_crop_3711466533_0.png.png imagette214071581741926665/1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466615_0.png.png imagette214071581741926665/1741926472_116314_1344070175_5ef0d99befcab24d877df6c2513aad9f_rle_crop_3711466568_0.png.png imagette214071581741926665/1741926593_117120_1344070288_5e57302e0fdb9797d086ec884dff5c17_rle_crop_3711466898_0.png.png imagette214071581741926665/1741926593_117120_1344070300_e6ce1ebd0047273b20752b64cb7e988c_rle_crop_3711466803_0.png.png imagette214071581741926665/1741926385_907276_1344069978_2f979cbfed8a8a9d928fa20de59ad7d1_rle_crop_3711466137_0.png.png imagette214071581741926665/1741926266_905153_1344069781_84710a121eae9c9cd7855db2d31d957d_rle_crop_3711465695_0.png.png imagette214071581741926665/1741926385_907276_1344069989_04619c95943bbb4de01fdd29413f4912_rle_crop_3711466110_0.png.png imagette214071581741926665/1741925991_111713_1344069651_97908b86a7ab5d0eb32581fcc779c410_rle_crop_3711463472_0.png.png imagette214071581741926665/1741926266_905153_1344069854_8bd876c4956562faebe8f04538a8469a_rle_crop_3711465594_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5402cd89f6982de4748a002e321217d4_6447826.png imagette214071581741926665 21407159 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=21407159 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344070202: '1741926385_907276_1344069971_0191638108f3e9f4a5c54c0212881c4a_rle_crop_3711466168_0.png', 1344070382: '1741926593_117120_1344070288_5e57302e0fdb9797d086ec884dff5c17_rle_crop_3711466903_0.png', 1344070381: '1741926593_117120_1344070300_e6ce1ebd0047273b20752b64cb7e988c_rle_crop_3711466805_0.png', 1344070295: '1741926491_116491_1344070136_7ebba8c2641d0da014572fcbb5efb9a4_rle_crop_3711466633_0.png', 1344070294: '1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466617_0.png', 1344070293: '1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466624_0.png', 1344070292: '1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466614_0.png', 1344070291: '1741926491_116491_1344070141_ae756b1c8e4cb045780c164760fa9ea4_rle_crop_3711466600_0.png', 1344070290: '1741926491_116491_1344070141_ae756b1c8e4cb045780c164760fa9ea4_rle_crop_3711466603_0.png', 1344070272: '1741926472_116314_1344070175_5ef0d99befcab24d877df6c2513aad9f_rle_crop_3711466571_0.png', 1344069760: '1741925991_111713_1344069656_7b9cbb6d14ee1c708427d03e480fd264_rle_crop_3711463439_0.png', 1344070157: '1741926353_115430_1344070055_f8c68cbf8c5581bb84db6ac43de34571_rle_crop_3711465827_0.png', 1344070123: '1741926266_905153_1344069766_7862e5370db7b78c776667c3f28c2d0c_rle_crop_3711465702_0.png', 1344070122: '1741926266_905153_1344069797_f7e4d1b824332d42e91b1176b626dc77_rle_crop_3711465680_0.png', 1344070121: '1741926266_905153_1344069840_7a7d0f3b72b38687b1a6425a7a2023ff_rle_crop_3711465611_0.png', 1344070120: '1741926266_905153_1344069857_a3267130f6a2a042e8c27eaa18f14876_rle_crop_3711465567_0.png', 1344070036: '1741926233_113255_1344069890_48af11c24ec7a44ec46da6c7a34b0134_rle_crop_3711464390_0.png', 1344069851: '1741926110_112486_1344069726_04b55a5348de9c0946ecc4e03d4eaf1c_rle_crop_3711463986_0.png', 1344069850: '1741926110_112486_1344069728_b7cf02e769c77d06b86905a0d5354380_rle_crop_3711463970_0.png', 1344069761: '1741925991_111713_1344069651_97908b86a7ab5d0eb32581fcc779c410_rle_crop_3711463474_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8c3845af24926c7ee2dc02b20e7c9dbd_7699370.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f55991a26b4930b11192ec75256ffaa3_50641569.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ac9e93f583e20a40666a8a58504483cc_67538144.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7f3f5b73d7d11d23d3d28109b2445852_33605885.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f9576321466aad29edbbe8879e646e27_1777504.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c008f8ccda12b6d3c566867dfbac6b6f_47916395.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/52799036edb5dd7a40213254de33a30b_38248156.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8f6d6e8e0fa270ad1d3aac5e9d81d468_48073785.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1a452d5a7e4998b7257a4935772d8c7d_8157148.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a4f502c0a17119990f6c3fe7f9097ee2_20947688.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bef75b4987410329689a979227609377_11947720.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2424fd31707d8e124585d8422be3e9ed_46380792.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/870d60f9b84ea788f25109352ba6c0bb_35771851.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/de3cc086946d912053a63d9ad73c6a31_25197284.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/870d60f9b84ea788f25109352ba6c0bb_18637610.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/de3cc086946d912053a63d9ad73c6a31_76645768.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9c4a9208eafca376c07d99c9a458d76b_67215868.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ed8a1eccaa71c24dc9ee1a7e1d59a1cc_30742025.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c3e75d27840dc815c139b40db2ca3946_82467631.png change filename to text .imagette214071591741926666/ imagette214071591741926666/1741926491_116491_1344070136_7ebba8c2641d0da014572fcbb5efb9a4_rle_crop_3711466633_0.png.png imagette214071591741926666/1741926233_113255_1344069890_48af11c24ec7a44ec46da6c7a34b0134_rle_crop_3711464390_0.png.png imagette214071591741926666/1741925991_111713_1344069656_7b9cbb6d14ee1c708427d03e480fd264_rle_crop_3711463439_0.png.png imagette214071591741926666/1741926353_115430_1344070055_f8c68cbf8c5581bb84db6ac43de34571_rle_crop_3711465827_0.png.png imagette214071591741926666/1741926266_905153_1344069840_7a7d0f3b72b38687b1a6425a7a2023ff_rle_crop_3711465611_0.png.png imagette214071591741926666/1741926266_905153_1344069766_7862e5370db7b78c776667c3f28c2d0c_rle_crop_3711465702_0.png.png imagette214071591741926666/1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466624_0.png.png imagette214071591741926666/1741926266_905153_1344069797_f7e4d1b824332d42e91b1176b626dc77_rle_crop_3711465680_0.png.png imagette214071591741926666/1741926385_907276_1344069971_0191638108f3e9f4a5c54c0212881c4a_rle_crop_3711466168_0.png.png imagette214071591741926666/1741926110_112486_1344069726_04b55a5348de9c0946ecc4e03d4eaf1c_rle_crop_3711463986_0.png.png imagette214071591741926666/1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466614_0.png.png imagette214071591741926666/1741926593_117120_1344070288_5e57302e0fdb9797d086ec884dff5c17_rle_crop_3711466903_0.png.png imagette214071591741926666/1741926491_116491_1344070141_ae756b1c8e4cb045780c164760fa9ea4_rle_crop_3711466603_0.png.png imagette214071591741926666/1741926593_117120_1344070300_e6ce1ebd0047273b20752b64cb7e988c_rle_crop_3711466805_0.png.png imagette214071591741926666/1741926491_116491_1344070138_94f53a09b9e663adfa2835408e02e26e_rle_crop_3711466617_0.png.png imagette214071591741926666/1741926472_116314_1344070175_5ef0d99befcab24d877df6c2513aad9f_rle_crop_3711466571_0.png.png imagette214071591741926666/1741925991_111713_1344069651_97908b86a7ab5d0eb32581fcc779c410_rle_crop_3711463474_0.png.png imagette214071591741926666/1741926266_905153_1344069857_a3267130f6a2a042e8c27eaa18f14876_rle_crop_3711465567_0.png.png imagette214071591741926666/1741926491_116491_1344070141_ae756b1c8e4cb045780c164760fa9ea4_rle_crop_3711466600_0.png.png imagette214071591741926666/1741926110_112486_1344069728_b7cf02e769c77d06b86905a0d5354380_rle_crop_3711463970_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5539eaaee57b2bc0865273b835b81d7f_87734262.png imagette214071591741926666 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21407147 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21407161,21407162,21407163,21407164,21407165,21407166,21407167,21407168,21407169,21407170,21407171,21407172?tags=plastique,metal,mal_croppe,papier,environnement,Carton_gris,cartonnette,autre_refus,flou,Teint_Dans_La_Masse,Carton_brun,kraft your option no_mail is active, we will not send the real mail to your client args[1344070339] : ('0.08035678991917955',) no score found for photo 1344070339 We are sending mail with results at report@fotonower.com args[1344070337] : ('0.08035678991917955',) no score found for photo 1344070337 We are sending mail with results at report@fotonower.com args[1344070335] : ('0.08035678991917955',) no score found for photo 1344070335 We are sending mail with results at report@fotonower.com args[1344070332] : ('0.08035678991917955',) no score found for photo 1344070332 We are sending mail with results at report@fotonower.com args[1344070327] : ('0.08035678991917955',) no score found for photo 1344070327 We are sending mail with results at report@fotonower.com args[1344070304] : ('0.08035678991917955',) no score found for photo 1344070304 We are sending mail with results at report@fotonower.com args[1344070300] : ('0.08035678991917955',) no score found for photo 1344070300 We are sending mail with results at report@fotonower.com args[1344070288] : ('0.08035678991917955',) no score found for photo 1344070288 We are sending mail with results at report@fotonower.com args[1344070277] : ('0.08035678991917955',) no score found for photo 1344070277 We are sending mail with results at report@fotonower.com args[1344070273] : ('0.08035678991917955',) no score found for photo 1344070273 We are sending mail with results at report@fotonower.com args[1344070259] : ('0.08035678991917955',) no score found for photo 1344070259 We are sending mail with results at report@fotonower.com refus_total : 0.08035678991917955 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=21407147 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_P21407147_14-03-2025_05_31_00.pdf results_Auto_P21407147_14-03-2025_05_31_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21407147_14-03-2025_05_31_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21407147','results_Auto_P21407147_14-03-2025_05_31_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21407147_14-03-2025_05_31_00.pdf','pdf','','0.38','0.08035678991917955') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21407147]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259] map_info['map_portfolio_photo'] : {21407147: [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259, 1344070229, 1344070227, 1344070223, 1344070219, 1344070204, 1344070198, 1344070181, 1344070179, 1344070177, 1344070175, 1344070145, 1344070141, 1344070138, 1344070136, 1344070133, 1344070069, 1344070066, 1344070061, 1344070055, 1344069995, 1344069989, 1344069983, 1344069978, 1344069974, 1344069971, 1344069898, 1344069890, 1344069886, 1344069885, 1344069868, 1344069862, 1344069859, 1344069857, 1344069854, 1344069840, 1344069836, 1344069832, 1344069831, 1344069830, 1344069827, 1344069821, 1344069799, 1344069798, 1344069797, 1344069781, 1344069766, 1344069731, 1344069728, 1344069726, 1344069724, 1344069659, 1344069656, 1344069655, 1344069651, 1344069638, 1344069634, 1344069610, 1344069608, 1344069604]} final : False mtd_id 4302 list_pids : [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259] 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, '2667683') ('4302', '21407147', '1344070339', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070337', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070335', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070332', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070327', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070304', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070300', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070288', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070277', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070273', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070259', None, None, None, None, None, '2667683') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '21407147', '1344070339', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070337', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070335', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070332', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070327', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070304', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070300', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070288', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070277', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070273', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070259', None, None, None, None, None, '2667683')] time used for this insertion : 0.5795588493347168 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.892866849899292 time spend to save output : 0.5799353122711182 total time spend for step 4 : 9.47280216217041 step5:split_time_score Fri Mar 14 05:31:09 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 : ['21407147'] 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 : [('21407147',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21407147) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1344070337: {'path': 'temp/1741926659_2160345_1344070337_b06c80a89789cbf39d93a5f23d79966f.jpg', 'extension': 'jpg'}, 1344070339: {'path': 'temp/1741926659_2160345_1344070339_f15cca696cb14705a119ed32bc2f766d.jpg', 'extension': 'jpg'}, 1344070259: {'path': 'temp/1741926659_2160345_1344070259_e11b3bbde6af1fea297b9581dc48b2c8.jpg', 'extension': 'jpg'}, 1344070273: {'path': 'temp/1741926659_2160345_1344070273_4d9e5c5478dc99ca61161f97a6d0f5fb.jpg', 'extension': 'jpg'}, 1344070277: {'path': 'temp/1741926659_2160345_1344070277_85d4ac091751fdffae36060b86f05618.jpg', 'extension': 'jpg'}, 1344070327: {'path': 'temp/1741926659_2160345_1344070327_cc70d32411818f4c52a4086d16d4e281.jpg', 'extension': 'jpg'}, 1344070332: {'path': 'temp/1741926659_2160345_1344070332_58f03b7e481f8a06d83dc229be0f4a8d.jpg', 'extension': 'jpg'}, 1344070335: {'path': 'temp/1741926659_2160345_1344070335_6666bbe0bca293a35b83a1410cc9e79b.jpg', 'extension': 'jpg'}, 1344070288: {'path': 'temp/1741926659_2160345_1344070288_5e57302e0fdb9797d086ec884dff5c17.jpg', 'extension': 'jpg'}, 1344070300: {'path': 'temp/1741926659_2160345_1344070300_e6ce1ebd0047273b20752b64cb7e988c.jpg', 'extension': 'jpg'}, 1344070304: {'path': 'temp/1741926659_2160345_1344070304_19916e0a82922a1b7a35613a9564d8a1.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 = 21407147; (('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 = 21407147 group by h (('05', 70),) 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=21407147 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 (21407147) 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 (21407147) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14032025 21407147 Nombre de photos uploadées : 70 / 23040 (0%) 14032025 21407147 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 14032025 21407147 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1344069610, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e0403887581b6413504c15a94cad0cf7.jpg', 'username': None, 'uploaded_at': 1741925865, 'text': 'image_14032025_05_16_24_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344069608, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5d4d927eb56b7c873f79e89fd65d5f5d.jpg', 'username': None, 'uploaded_at': 1741925865, 'text': 'image_14032025_05_16_34_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344069604, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7922410a6c7d3f74a9f735b6ef649b8b.jpg', 'username': None, 'uploaded_at': 1741925865, 'text': 'image_14032025_05_16_44_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344069659, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2329f2fef886aad4d08e3893c94e53bf.jpg', 'username': None, 'uploaded_at': 1741925925, 'text': 'image_14032025_05_16_54_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.291534423828125e-06 elapsed_time : order_list_meta_photo_and_scores 2.3126602172851562e-05 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0037119388580322266 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21407147, '2025-03-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1667162,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025278568267822266 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= 1667162 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1667162, 'dashboard_run_id': 1675290, 'mtr_portfolio_id': 21407147, 'dashboard_result_id': 9433840, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21407147_14-03-2025_05_29_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21407149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21407150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21407151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21407152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21407153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21407154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21407155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21407156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21407157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21407158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21407159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21407160, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21407147 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667683, 'mtr_portfolio_id': 21407147, 'created_at': datetime.datetime(2025, 3, 14, 5, 30, 59), 'result': '0.08035678991917955', 'result_long': None, 'result_double': None}] Qualite : 0.08035678991917955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21407147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21407147_14-03-2025_05_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21407147 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21407147_14-03-2025_05_31_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21407149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21407150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21407151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21407152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21407153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21407154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21407155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21407156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21407157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21407158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21407159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21407160, 'pht': 3726}}" where mtr_portfolio_id = 21407147 and dashboard_run_id = 1675290 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21407147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433840, 0.08035678991917955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21407147_14-03-2025_05_31_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21407149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21407150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21407151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21407152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21407153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21407154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21407155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21407156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21407157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21407158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21407159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21407160, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21407147) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14032025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21407147]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259] map_info['map_portfolio_photo'] : {21407147: [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259, 1344070229, 1344070227, 1344070223, 1344070219, 1344070204, 1344070198, 1344070181, 1344070179, 1344070177, 1344070175, 1344070145, 1344070141, 1344070138, 1344070136, 1344070133, 1344070069, 1344070066, 1344070061, 1344070055, 1344069995, 1344069989, 1344069983, 1344069978, 1344069974, 1344069971, 1344069898, 1344069890, 1344069886, 1344069885, 1344069868, 1344069862, 1344069859, 1344069857, 1344069854, 1344069840, 1344069836, 1344069832, 1344069831, 1344069830, 1344069827, 1344069821, 1344069799, 1344069798, 1344069797, 1344069781, 1344069766, 1344069731, 1344069728, 1344069726, 1344069724, 1344069659, 1344069656, 1344069655, 1344069651, 1344069638, 1344069634, 1344069610, 1344069608, 1344069604]} final : True mtd_id 4302 list_pids : [1344070339, 1344070337, 1344070335, 1344070332, 1344070327, 1344070304, 1344070300, 1344070288, 1344070277, 1344070273, 1344070259] Looping around the photos to save general results len do output : 1 /21407147Didn'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, '2667683') ('4302', '21407147', '1344070339', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070337', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070335', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070332', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070327', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070304', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070300', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070288', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070277', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070273', None, None, None, None, None, '2667683') ('4302', None, None, None, None, None, None, None, '2667683') ('4302', '21407147', '1344070259', None, None, None, None, None, '2667683') 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', None, '21407147', 'None', None, None, None, None, '2667683'), ('4302', '21407147', '1344070339', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070337', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070335', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070332', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070327', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070304', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070300', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070288', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070277', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070273', None, None, None, None, None, '2667683'), ('4302', '21407147', '1344070259', None, None, None, None, None, '2667683')] time used for this insertion : 0.6698520183563232 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24938702583312988 time spend to save output : 0.6701605319976807 total time spend for step 5 : 0.9195475578308105 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 (2667683) 2.43user 2.55system 0:15.60elapsed 31%CPU (0avgtext+0avgdata 157828maxresident)k 21720inputs+20696outputs (67major+75206minor)pagefaults 0swaps